{"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(name, amount, date, code)\n receivables_log(salary, level, amount, type)\nTask: Select name from area_registry that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(status, name, level, code)\n sales_registry(status, value, salary, level)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(value, status, name, amount)\n portfolio_index(date, id, level, value)\nTask: Find salary from activity_log where salary exceeds the minimum amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(status, amount, salary, code)\n stock_catalog(value, amount, salary, id)\nTask: Retrieve salary from stocking_sites whose type is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(code, id, name, amount)\n attribute_groups(amount, level, type, name)\nTask: Select name from receivables_log where salary is greater than the count of of value in attribute_groups for matching code.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(level, name, date, type)\n sales_registry(value, type, name, amount)\nTask: Find amount from cost_centers where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, type, id, salary)\n sales_queue(date, salary, code, value)\nTask: Find name from portfolio_index where status appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, value, salary, amount)\n receivables_log(id, name, amount, date)\nTask: Select code from dispatch_queue that have at least one matching row in receivables_log for the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(value, id, status, type)\n sales_queue(name, type, amount, date)\nTask: Select value from engagement_log where status exists in sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(type, value, level, id)\n stock_catalog(level, value, code, date)\nTask: Select value from facility_registry where amount is greater than the maximum of salary in stock_catalog for matching id.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(amount, id, type, date)\n dispatch_queue(salary, code, level, name)\nTask: Select salary from sales_registry that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(date, level, name, salary)\n portfolio_index(code, name, value, level)\nTask: Select salary from stocking_sites that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(type, code, amount, status)\n stocking_sites(name, salary, date, type)\nTask: Select value from sourcing_list where salary is greater than the maximum of value in stocking_sites for matching status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE salary > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(id, salary, name, date)\n sourcing_list(value, status, salary, level)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(value, salary, level, amount)\n acquisition_log(code, salary, value, date)\nTask: Select amount from facility_registry where code exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(salary, value, status, id)\n stocking_sites(id, name, salary, level)\nTask: Select value from cost_centers where id exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(code, status, amount, salary)\n receivables_log(date, salary, id, value)\nTask: Retrieve salary from sales_queue whose status is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "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}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(level, salary, code, amount)\n workforce_data(type, salary, level, value)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(code, id, status, salary)\n stock_catalog(value, salary, status, type)\nTask: Find salary from workforce_data where salary exceeds the maximum value from stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE salary > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(value, salary, amount, name)\n sales_registry(salary, date, code, name)\nTask: Find salary from acquisition_log where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(date, status, amount, code)\n area_registry(name, level, amount, id)\nTask: Find value from journal_entries where code appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(level, type, name, date)\n facility_registry(amount, salary, code, date)\nTask: Select code from workforce_data where type exists in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(level, code, amount, value)\n dispatch_queue(id, level, name, code)\nTask: Find code from journal_entries where level appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(level, code, type, id)\n attribute_groups(id, value, amount, name)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(name, value, code, level)\n workforce_data(date, code, level, amount)\nTask: Find id from stock_catalog where salary exceeds the count of amount from workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(level, id, value, amount)\n activity_log(amount, status, date, value)\nTask: Retrieve name from workforce_data with salary above the MAX(amount) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(date, level, status, amount)\n journal_entries(id, salary, type, date)\nTask: Find id from stock_catalog where salary exceeds the maximum value from journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS inv\nWHERE salary > (\n SELECT MAX(value) FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(id, status, code, level)\n acquisition_log(date, id, type, level)\nTask: Select value from cost_centers where salary is greater than the minimum of value in acquisition_log for matching id.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE salary > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, code, amount, status)\n sourcing_list(name, salary, level, type)\nTask: Select value from stock_catalog where status exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(value, level, amount, date)\n activity_log(date, name, id, salary)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(code, id, level, status)\n sourcing_list(type, id, date, name)\nTask: Select amount from activity_log where salary is greater than the average of amount in sourcing_list for matching level.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "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}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(status, value, level, id)\n workforce_data(name, id, amount, value)\nTask: Select name from engagement_log where salary is greater than the minimum of value in workforce_data for matching id.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE salary > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(level, amount, id, type)\n stock_catalog(type, id, level, code)\nTask: Select salary from sourcing_list where level exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS ord\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(value, salary, date, level)\n personnel_registry(amount, level, value, code)\nTask: Select value from engagement_log that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(name, salary, amount, code)\n portfolio_index(type, id, status, value)\nTask: Retrieve name from receivables_log with salary above the COUNT(value) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(amount, code, id, level)\n stocking_sites(id, amount, type, value)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(name, status, amount, salary)\n stock_catalog(amount, name, id, type)\nTask: Find value from acquisition_log where code appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(type, level, id, salary)\n personnel_registry(date, value, level, id)\nTask: Select value from portfolio_index that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(value, status, type, id)\n sourcing_list(name, status, date, salary)\nTask: Select amount from attribute_groups where amount is greater than the total of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(amount, code, salary, value)\n receivables_log(level, date, type, value)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in receivables_log sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(status, name, code, id)\n cost_centers(value, status, id, type)\nTask: Find id from portfolio_index where value exceeds the count of value from cost_centers for the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE value > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(name, level, value, code)\n receivables_log(amount, date, level, code)\nTask: Select code from sales_queue where code exists in receivables_log for the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(type, amount, status, date)\n workforce_data(type, status, salary, level)\nTask: Select amount from dispatch_queue where amount is greater than the minimum of value in workforce_data for matching status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(status, name, id, level)\n activity_log(salary, value, date, id)\nTask: Retrieve amount from cost_centers whose id is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(type, date, value, salary)\n personnel_registry(name, date, level, salary)\nTask: Find value from facility_registry where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(code, salary, type, date)\n dispatch_queue(status, type, code, amount)\nTask: Find name from attribute_groups where id appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(amount, value, type, code)\n acquisition_log(level, id, code, status)\nTask: Select value from receivables_log where salary is greater than the maximum of salary in acquisition_log for matching level.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE salary > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(status, level, type, code)\n personnel_registry(code, salary, id, value)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(id, date, name, salary)\n acquisition_log(date, salary, name, type)\nTask: Find value from receivables_log where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(date, type, level, name)\n portfolio_index(date, code, amount, id)\nTask: Find code from stock_catalog where type appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(id, status, level, name)\n portfolio_index(type, value, date, id)\nTask: Find value from sales_registry where value exceeds the average salary from portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(status, name, value, amount)\n portfolio_index(level, code, date, value)\nTask: Find name from area_registry where salary exceeds the total salary from portfolio_index for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(salary, date, status, id)\n sourcing_list(level, name, salary, date)\nTask: Find value from activity_log where status appears in sourcing_list entries with matching type.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(code, id, name, amount)\n activity_log(salary, value, status, id)\nTask: Find name from sales_queue where id appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(id, code, name, status)\n workforce_data(id, status, code, amount)\nTask: Retrieve code from sales_registry whose type is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(status, value, salary, name)\n activity_log(name, type, id, date)\nTask: Find value from personnel_registry where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(code, date, salary, value)\n cost_centers(level, id, type, code)\nTask: Find id from stocking_sites where value exceeds the average amount from cost_centers for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS emp\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(status, salary, level, date)\n cost_centers(amount, type, date, code)\nTask: Select name from facility_registry where value is greater than the total of value in cost_centers for matching id.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE value > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(name, amount, level, salary)\n sales_registry(name, salary, status, level)\nTask: Select code from sales_queue where code exists in sales_registry for the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(value, status, date, name)\n stock_catalog(code, date, id, amount)\nTask: Select id from sales_registry where amount is greater than the average of amount in stock_catalog for matching type.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(name, salary, value, type)\n area_registry(status, type, salary, id)\nTask: Select value from sourcing_list where id exists in area_registry for the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(date, code, value, type)\n receivables_log(level, code, type, date)\nTask: Select code from sales_registry where amount is greater than the total of value in receivables_log for matching id.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE amount > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(code, name, type, level)\n journal_entries(date, type, code, salary)\nTask: Select name from personnel_registry that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(date, amount, value, id)\n stocking_sites(level, amount, value, status)\nTask: Find code from personnel_registry where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(date, id, name, level)\n sales_queue(amount, level, name, type)\nTask: Retrieve code from area_registry with amount above the COUNT(amount) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(name, salary, amount, code)\n receivables_log(id, type, date, amount)\nTask: Find name from area_registry where status appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, status, level, value)\n workforce_data(id, value, amount, level)\nTask: Select salary from dispatch_queue where salary is greater than the total of salary in workforce_data for matching status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(type, status, value, code)\n sourcing_list(date, id, value, type)\nTask: Select name from stock_catalog that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(level, name, id, salary)\n sales_queue(name, amount, id, salary)\nTask: Select id from engagement_log where salary is greater than the total of salary in sales_queue for matching status.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(date, id, level, amount)\n sales_queue(type, level, id, salary)\nTask: Select id from acquisition_log that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(value, level, id, salary)\n engagement_log(name, code, salary, value)\nTask: Select value from activity_log where amount is greater than the maximum of value in engagement_log for matching level.\nSQL:", "sql": "SELECT value FROM activity_log AS dept\nWHERE amount > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(id, code, date, level)\n area_registry(id, salary, name, date)\nTask: Retrieve id from activity_log whose id is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(type, id, code, level)\n sales_registry(code, amount, salary, status)\nTask: Find id from activity_log where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(name, value, salary, type)\n sourcing_list(code, date, value, level)\nTask: Select salary from stocking_sites where level exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(date, salary, value, level)\n sales_queue(status, date, value, type)\nTask: Find amount from attribute_groups where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(id, amount, salary, date)\n facility_registry(date, name, status, salary)\nTask: Retrieve code from portfolio_index with value above the MAX(value) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE value > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(status, salary, value, code)\n workforce_data(date, code, status, name)\nTask: Retrieve amount from stock_catalog whose level is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(code, level, name, value)\n stocking_sites(id, date, code, value)\nTask: Find code from attribute_groups where status appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(salary, value, type, name)\n journal_entries(type, date, id, code)\nTask: Retrieve salary from activity_log with amount above the COUNT(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(date, id, type, salary)\n engagement_log(salary, status, code, amount)\nTask: Find amount from journal_entries where value exceeds the minimum salary from engagement_log for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE value > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(name, value, id, type)\n portfolio_index(status, code, date, type)\nTask: Select salary from attribute_groups where level exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(salary, status, level, date)\n area_registry(salary, level, status, name)\nTask: Select name from sales_queue where id exists in area_registry for the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(value, salary, level, code)\n dispatch_queue(code, date, salary, id)\nTask: Retrieve id from stock_catalog whose id is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(salary, type, name, value)\n workforce_data(type, name, amount, id)\nTask: Find id from stock_catalog where code appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(date, name, code, id)\n activity_log(salary, code, value, date)\nTask: Select value from personnel_registry that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(status, salary, name, value)\n workforce_data(value, status, code, name)\nTask: Find amount from sales_registry where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(level, code, amount, name)\n acquisition_log(name, value, date, level)\nTask: Find value from stock_catalog where amount exceeds the count of value from acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, status, code, date)\n area_registry(amount, id, level, date)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(value, salary, name, type)\n personnel_registry(value, amount, level, status)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(name, amount, value, code)\n workforce_data(name, code, date, status)\nTask: Retrieve salary from sales_queue with value above the MAX(value) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE value > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(type, date, amount, status)\n journal_entries(id, level, value, name)\nTask: Find code from stocking_sites where type appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(value, id, amount, salary)\n area_registry(amount, type, date, salary)\nTask: Retrieve salary from sales_registry with salary above the MIN(value) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE salary > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(value, salary, amount, name)\n stocking_sites(date, name, salary, status)\nTask: Find salary from receivables_log where status appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(type, level, salary, status)\n acquisition_log(date, salary, level, id)\nTask: Select value from portfolio_index where salary is greater than the average of salary in acquisition_log for matching type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(date, name, status, code)\n facility_registry(status, id, code, level)\nTask: Find salary from sales_registry where status appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(value, status, code, level)\n stocking_sites(salary, value, status, amount)\nTask: Select code from personnel_registry where id exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(value, salary, date, type)\n area_registry(name, salary, id, level)\nTask: Find name from journal_entries where salary exceeds the total amount from area_registry for the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(name, code, level, salary)\n sales_registry(id, date, code, value)\nTask: Find id from area_registry where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(level, salary, amount, date)\n journal_entries(name, amount, level, salary)\nTask: Retrieve name from area_registry that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(status, amount, id, type)\n receivables_log(id, code, value, amount)\nTask: Find name from sourcing_list where type appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(level, status, name, code)\n portfolio_index(date, status, amount, type)\nTask: Find code from journal_entries where value exceeds the minimum amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE value > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, level, code, status)\n attribute_groups(type, level, salary, id)\nTask: Retrieve amount from dispatch_queue whose type is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(name, status, id, code)\n sales_queue(name, id, date, amount)\nTask: Retrieve name from cost_centers whose id is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(amount, value, type, date)\n receivables_log(salary, id, status, name)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, type, level, name)\n engagement_log(code, amount, level, date)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(name, code, status, salary)\n journal_entries(code, status, type, level)\nTask: Retrieve amount from activity_log whose code is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(value, code, status, id)\n sales_registry(id, salary, date, status)\nTask: Find code from sourcing_list where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(type, status, level, name)\n engagement_log(amount, name, date, salary)\nTask: Retrieve salary from acquisition_log whose level is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(id, level, amount, status)\n stock_catalog(amount, value, salary, type)\nTask: Find salary from cost_centers where code appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(date, status, amount, level)\n sales_queue(date, id, type, name)\nTask: Find salary from journal_entries where amount exceeds the maximum amount from sales_queue for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(level, status, salary, value)\n attribute_groups(date, type, level, status)\nTask: Find salary from dispatch_queue where a matching record exists in attribute_groups with the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(amount, level, code, value)\n workforce_data(value, name, code, salary)\nTask: Retrieve amount from attribute_groups whose level is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(amount, id, name, level)\n sales_queue(status, level, date, value)\nTask: Retrieve code from attribute_groups with value above the AVG(salary) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE value > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, date, type, code)\n activity_log(name, value, salary, id)\nTask: Select code from receivables_log that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(status, amount, id, salary)\n engagement_log(amount, value, type, level)\nTask: Select name from stock_catalog where level exists in engagement_log for the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(date, level, salary, name)\n dispatch_queue(name, value, salary, type)\nTask: Find code from sourcing_list where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(date, id, amount, name)\n portfolio_index(amount, level, code, type)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(status, value, type, salary)\n activity_log(type, status, salary, code)\nTask: Select name from receivables_log that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(level, name, status, amount)\n stock_catalog(amount, salary, status, id)\nTask: Retrieve id from personnel_registry whose type is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, salary, date, status)\n receivables_log(status, date, id, level)\nTask: Find code from dispatch_queue where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(id, status, code, type)\n sourcing_list(code, amount, salary, type)\nTask: Select amount from activity_log where salary is greater than the minimum of amount in sourcing_list for matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(status, code, value, id)\n engagement_log(status, value, salary, type)\nTask: Retrieve amount from area_registry whose id is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(code, status, salary, date)\n sourcing_list(salary, code, id, status)\nTask: Find code from facility_registry where level appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(code, amount, id, date)\n attribute_groups(type, code, status, level)\nTask: Select salary from area_registry that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(amount, name, value, code)\n activity_log(level, value, date, amount)\nTask: Select value from sourcing_list that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(code, name, amount, date)\n cost_centers(amount, id, value, salary)\nTask: Select amount from portfolio_index where type exists in cost_centers for the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(value, date, salary, amount)\n stocking_sites(code, name, value, type)\nTask: Select salary from attribute_groups that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(id, status, name, type)\n engagement_log(status, date, name, type)\nTask: Select amount from journal_entries where code exists in engagement_log for the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(date, salary, level, amount)\n receivables_log(level, date, value, salary)\nTask: Retrieve value from cost_centers with amount above the MAX(amount) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE amount > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(type, code, level, status)\n stock_catalog(status, salary, type, level)\nTask: Retrieve value from engagement_log with salary above the MIN(amount) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(status, value, date, salary)\n stock_catalog(id, type, status, code)\nTask: Retrieve salary from dispatch_queue whose status is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(code, status, salary, date)\n sales_registry(type, status, id, level)\nTask: Retrieve salary from attribute_groups whose status is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(amount, date, code, name)\n sales_queue(salary, level, date, value)\nTask: Select salary from area_registry that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(status, code, value, level)\n portfolio_index(status, id, date, type)\nTask: Select name from receivables_log where type exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(id, type, amount, salary)\n activity_log(amount, value, status, level)\nTask: Find amount from personnel_registry where level appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(value, id, amount, date)\n dispatch_queue(date, value, type, code)\nTask: Select id from acquisition_log where value is greater than the total of salary in dispatch_queue for matching level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE value > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(level, id, date, status)\n portfolio_index(status, amount, code, date)\nTask: Find code from stock_catalog where level appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(id, level, salary, amount)\n acquisition_log(date, amount, status, name)\nTask: Select id from attribute_groups where status exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(code, value, id, amount)\n sales_queue(status, name, type, amount)\nTask: Select id from personnel_registry that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(date, name, value, code)\n portfolio_index(date, level, id, code)\nTask: Find id from sales_queue where value exceeds the total salary from portfolio_index for the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE value > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(name, code, id, salary)\n area_registry(type, level, value, id)\nTask: Select code from portfolio_index that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(type, name, id, amount)\n activity_log(level, name, status, id)\nTask: Select code from stocking_sites where amount is greater than the average of amount in activity_log for matching type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE amount > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(type, date, level, salary)\n sales_queue(type, salary, status, code)\nTask: Find id from engagement_log where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(type, code, name, status)\n area_registry(level, salary, name, value)\nTask: Find code from activity_log where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(level, amount, type, name)\n workforce_data(amount, type, id, date)\nTask: Retrieve amount from activity_log whose code is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(status, amount, code, type)\n journal_entries(salary, id, type, amount)\nTask: Retrieve value from sourcing_list with value above the AVG(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE value > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(name, id, salary, code)\n facility_registry(date, name, type, salary)\nTask: Select value from personnel_registry where status exists in facility_registry for the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(value, date, id, salary)\n receivables_log(code, value, type, date)\nTask: Select value from journal_entries that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(level, type, salary, value)\n receivables_log(salary, type, date, id)\nTask: Find name from dispatch_queue where value exceeds the average amount from receivables_log for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE value > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(type, salary, amount, value)\n stock_catalog(level, amount, type, status)\nTask: Find amount from dispatch_queue where status appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(amount, id, level, salary)\n stock_catalog(date, type, amount, id)\nTask: Retrieve name from engagement_log whose level is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(amount, status, name, date)\n sourcing_list(date, status, type, code)\nTask: Retrieve name from sales_queue with salary above the SUM(value) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE salary > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "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}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(amount, status, date, code)\n acquisition_log(level, name, status, code)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(name, status, salary, id)\n engagement_log(id, code, value, level)\nTask: Find id from personnel_registry where salary exceeds the minimum salary from engagement_log for the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(date, level, salary, value)\n dispatch_queue(status, salary, name, value)\nTask: Select name from sales_queue where level exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(amount, code, date, value)\n portfolio_index(salary, date, name, level)\nTask: Select value from receivables_log where status exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, code, amount, date)\n sales_registry(id, salary, amount, type)\nTask: Retrieve name from stocking_sites whose type is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(name, id, salary, type)\n dispatch_queue(status, name, date, amount)\nTask: Retrieve value from portfolio_index whose code is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, amount, name, id)\n facility_registry(type, value, id, status)\nTask: Retrieve salary from portfolio_index with salary above the MAX(salary) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(status, type, level, name)\n dispatch_queue(value, id, amount, level)\nTask: Retrieve id from journal_entries whose level is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(salary, level, status, value)\n portfolio_index(type, salary, status, value)\nTask: Select name from sales_registry where value is greater than the total of salary in portfolio_index for matching type.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE value > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(level, id, date, salary)\n stock_catalog(level, value, name, amount)\nTask: Retrieve id from sales_queue with amount above the SUM(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(level, value, amount, name)\n facility_registry(id, salary, date, name)\nTask: Find salary from area_registry where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(type, status, date, value)\n journal_entries(level, code, date, amount)\nTask: Select id from sourcing_list where salary is greater than the average of value in journal_entries for matching code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE salary > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(amount, type, id, salary)\n engagement_log(name, type, level, code)\nTask: Find code from receivables_log where type appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT code FROM receivables_log AS inv\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(code, date, salary, name)\n sales_registry(id, code, status, salary)\nTask: Find code from engagement_log where status appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(date, status, code, type)\n cost_centers(id, code, name, level)\nTask: Retrieve id from sourcing_list that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, code, value, status)\n facility_registry(status, code, value, type)\nTask: Select salary from personnel_registry where code exists in facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(id, status, amount, salary)\n engagement_log(id, status, type, amount)\nTask: Retrieve name from activity_log that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(date, code, name, amount)\n acquisition_log(amount, status, code, date)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(type, id, name, salary)\n dispatch_queue(type, amount, date, status)\nTask: Find value from cost_centers where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(id, name, date, type)\n stock_catalog(level, salary, id, value)\nTask: Retrieve salary from sales_queue with salary above the COUNT(value) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(status, id, code, date)\n journal_entries(type, salary, value, level)\nTask: Retrieve value from dispatch_queue whose code is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(value, salary, level, amount)\n area_registry(value, name, code, date)\nTask: Find code from engagement_log where salary exceeds the minimum value from area_registry for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE salary > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, id, type, name)\n facility_registry(id, name, value, amount)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(name, level, status, date)\n workforce_data(level, date, amount, id)\nTask: Retrieve id from personnel_registry with salary above the SUM(amount) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(id, amount, level, date)\n receivables_log(value, level, salary, status)\nTask: Find value from engagement_log where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(level, name, amount, salary)\n engagement_log(level, amount, name, salary)\nTask: Select id from personnel_registry where amount is greater than the total of salary in engagement_log for matching type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(id, value, code, status)\n personnel_registry(level, status, name, id)\nTask: Retrieve salary from cost_centers with salary above the AVG(salary) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(name, date, level, id)\n cost_centers(type, value, name, amount)\nTask: Select salary from sales_queue where value is greater than the total of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE value > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(date, status, value, level)\n stock_catalog(value, type, salary, id)\nTask: Select name from journal_entries that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(level, amount, status, name)\n personnel_registry(code, type, amount, salary)\nTask: Find salary from area_registry where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(value, status, type, level)\n activity_log(name, salary, id, date)\nTask: Select value from attribute_groups where salary is greater than the average of amount in activity_log for matching level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(code, value, status, id)\n receivables_log(value, date, status, level)\nTask: Select salary from sales_queue where value is greater than the count of of salary in receivables_log for matching level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(status, name, level, salary)\n activity_log(code, value, level, amount)\nTask: Select id from sourcing_list where value is greater than the minimum of amount in activity_log for matching type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE value > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(level, code, id, date)\n sourcing_list(code, salary, status, level)\nTask: Retrieve id from acquisition_log whose status is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(id, name, level, value)\n portfolio_index(value, id, salary, status)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(level, salary, amount, code)\n area_registry(amount, id, value, salary)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, id, type, value)\n stocking_sites(name, amount, type, salary)\nTask: Select value from sourcing_list where code exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(type, code, id, amount)\n portfolio_index(amount, date, id, type)\nTask: Retrieve name from attribute_groups with value above the AVG(value) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE value > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(salary, date, value, id)\n activity_log(value, name, code, status)\nTask: Retrieve value from sales_queue whose id is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(id, status, name, value)\n workforce_data(salary, id, level, status)\nTask: Find id from sales_queue where value exceeds the average amount from workforce_data for the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE value > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(status, code, value, salary)\n cost_centers(code, name, type, status)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(level, salary, date, value)\n dispatch_queue(status, level, code, type)\nTask: Find code from sales_registry where value exceeds the maximum amount from dispatch_queue for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(value, type, amount, id)\n journal_entries(status, id, date, code)\nTask: Retrieve code from sales_registry with salary above the MAX(salary) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(id, type, amount, name)\n area_registry(level, code, value, id)\nTask: Retrieve code from engagement_log whose status is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, code, type, level)\n journal_entries(status, name, code, id)\nTask: Find salary from sourcing_list where code appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, name, salary, id)\n facility_registry(type, name, status, amount)\nTask: Select id from journal_entries where id exists in facility_registry for the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(id, value, code, level)\n dispatch_queue(type, status, id, date)\nTask: Find value from sourcing_list where amount exceeds the maximum value from dispatch_queue for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE amount > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(date, value, name, code)\n sales_registry(code, name, id, salary)\nTask: Select id from portfolio_index that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(level, value, amount, name)\n receivables_log(value, amount, type, level)\nTask: Find amount from dispatch_queue where value exceeds the maximum amount from receivables_log for the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(amount, type, value, code)\n facility_registry(salary, code, amount, id)\nTask: Find name from workforce_data where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, amount, name, level)\n acquisition_log(code, amount, status, name)\nTask: Retrieve name from stocking_sites whose status is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, amount, date, level)\n sourcing_list(date, code, amount, value)\nTask: Select salary from acquisition_log where salary is greater than the count of of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(date, id, code, level)\n stocking_sites(amount, name, id, date)\nTask: Retrieve id from sourcing_list with salary above the SUM(salary) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(level, value, name, amount)\n activity_log(code, id, name, value)\nTask: Retrieve id from attribute_groups that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(date, amount, level, id)\n dispatch_queue(level, value, status, type)\nTask: Select amount from sales_queue where salary is greater than the count of of salary in dispatch_queue for matching code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(name, id, code, amount)\n sales_queue(name, type, value, id)\nTask: Find value from facility_registry where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, level, amount, name)\n activity_log(salary, id, value, code)\nTask: Select code from attribute_groups that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(date, id, type, name)\n sales_queue(id, level, amount, date)\nTask: Retrieve value from cost_centers whose status is found in sales_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(value, name, salary, type)\n journal_entries(date, salary, status, type)\nTask: Retrieve name from sourcing_list whose id is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(level, salary, code, date)\n portfolio_index(name, date, code, value)\nTask: Find code from activity_log where salary exceeds the average salary from portfolio_index for the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, type, salary, value)\n portfolio_index(amount, code, salary, name)\nTask: Select value from dispatch_queue where status exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(code, status, type, id)\n personnel_registry(date, status, level, name)\nTask: Retrieve id from sales_registry whose code is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(value, type, name, amount)\n portfolio_index(code, status, date, name)\nTask: Select value from stock_catalog where value is greater than the count of of salary in portfolio_index for matching level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(id, value, type, salary)\n workforce_data(amount, id, type, value)\nTask: Find code from acquisition_log where value exceeds the count of salary from workforce_data for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE value > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(code, status, salary, value)\n portfolio_index(date, level, name, amount)\nTask: Retrieve code from area_registry with amount above the SUM(value) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(type, name, amount, date)\n sourcing_list(name, code, type, date)\nTask: Retrieve name from sales_queue with salary above the AVG(salary) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(code, status, salary, id)\n workforce_data(value, salary, type, date)\nTask: Retrieve code from activity_log whose status is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(salary, type, level, name)\n dispatch_queue(value, code, date, name)\nTask: Find id from activity_log where salary exceeds the total amount from dispatch_queue for the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(status, id, salary, value)\n workforce_data(status, code, amount, name)\nTask: Retrieve name from sourcing_list whose level is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(value, status, level, amount)\n journal_entries(amount, date, name, salary)\nTask: Retrieve id from stock_catalog whose code is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS inv\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(level, status, date, type)\n receivables_log(value, type, date, code)\nTask: Select code from sourcing_list where amount is greater than the total of value in receivables_log for matching status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE amount > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(status, value, type, id)\n sourcing_list(name, level, id, value)\nTask: Select code from dispatch_queue where value is greater than the average of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE value > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(value, code, name, salary)\n personnel_registry(value, salary, id, amount)\nTask: Select salary from stocking_sites where id exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(name, value, amount, date)\n receivables_log(name, level, id, status)\nTask: Find value from workforce_data where type appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(salary, amount, status, value)\n portfolio_index(id, date, value, status)\nTask: Retrieve value from workforce_data with value above the SUM(amount) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE value > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, status, amount, code)\n facility_registry(id, amount, salary, type)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(value, amount, type, name)\n area_registry(type, date, name, value)\nTask: Find value from sales_registry where value exceeds the maximum salary from area_registry for the same level.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE value > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, salary, code, name)\n stocking_sites(level, date, status, salary)\nTask: Find salary from personnel_registry where value exceeds the minimum value from stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE value > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(type, amount, level, value)\n area_registry(type, amount, code, value)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(value, level, code, type)\n facility_registry(name, salary, value, level)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(level, amount, name, id)\n activity_log(status, level, salary, id)\nTask: Retrieve value from area_registry whose level is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(level, amount, salary, id)\n engagement_log(level, salary, amount, status)\nTask: Select value from facility_registry where amount is greater than the maximum of salary in engagement_log for matching status.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE amount > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(status, code, type, level)\n cost_centers(id, code, value, amount)\nTask: Retrieve salary from attribute_groups whose id is found in cost_centers rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(id, amount, value, salary)\n sourcing_list(date, id, name, salary)\nTask: Find code from sales_queue where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, amount, type, id)\n activity_log(value, status, salary, code)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(value, level, salary, date)\n receivables_log(name, amount, salary, code)\nTask: Select amount from workforce_data where level exists in receivables_log for the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS empl\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(name, salary, type, amount)\n facility_registry(name, code, salary, level)\nTask: Retrieve id from cost_centers whose type is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(name, code, type, level)\n journal_entries(id, date, code, level)\nTask: Retrieve name from sourcing_list with amount above the SUM(value) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE amount > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(level, name, code, type)\n acquisition_log(status, code, id, level)\nTask: Find name from activity_log where amount exceeds the total salary from acquisition_log for the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(date, amount, code, level)\n facility_registry(level, id, salary, status)\nTask: Find id from receivables_log where level appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(name, value, status, amount)\n facility_registry(value, level, name, code)\nTask: Select code from activity_log where id exists in facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(id, value, type, code)\n sales_registry(status, name, date, id)\nTask: Retrieve code from activity_log whose code is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, amount, level, salary)\n engagement_log(date, name, id, status)\nTask: Find value from stock_catalog where status appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(level, amount, date, id)\n dispatch_queue(status, amount, name, level)\nTask: Find salary from area_registry where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(level, type, date, amount)\n sales_registry(name, amount, id, status)\nTask: Find salary from facility_registry where level appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(status, level, amount, salary)\n personnel_registry(amount, code, status, name)\nTask: Retrieve amount from sales_registry whose type is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, value, id, name)\n sales_queue(type, amount, id, code)\nTask: Select id from cost_centers that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(code, type, amount, salary)\n sourcing_list(status, level, id, value)\nTask: Retrieve salary from facility_registry with salary above the SUM(salary) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(status, id, salary, date)\n facility_registry(date, code, salary, type)\nTask: Select value from sales_registry where id exists in facility_registry for the same code.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(amount, name, code, type)\n workforce_data(date, level, value, name)\nTask: Retrieve value from sales_queue whose code is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(name, code, id, amount)\n workforce_data(status, name, id, value)\nTask: Find id from acquisition_log where status appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, type, name, status)\n dispatch_queue(id, code, level, date)\nTask: Find id from stock_catalog where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, level, id, code)\n facility_registry(date, code, amount, level)\nTask: Retrieve code from dispatch_queue whose id is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(salary, id, type, amount)\n sales_registry(id, value, code, salary)\nTask: Find value from sales_queue where id appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, date, value, salary)\n stocking_sites(type, code, amount, salary)\nTask: Retrieve value from dispatch_queue with value above the MAX(salary) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE value > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(name, level, type, code)\n activity_log(code, status, level, amount)\nTask: Select value from facility_registry that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(level, id, date, salary)\n attribute_groups(id, name, value, date)\nTask: Retrieve value from sales_queue that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(status, name, id, code)\n dispatch_queue(code, value, id, salary)\nTask: Find amount from engagement_log where value exceeds the total value from dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE value > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(name, level, amount, date)\n cost_centers(type, name, status, value)\nTask: Select name from personnel_registry that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(type, level, amount, status)\n stock_catalog(id, date, salary, code)\nTask: Find amount from journal_entries where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(amount, salary, id, date)\n sales_queue(status, salary, code, date)\nTask: Find salary from dispatch_queue where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(level, value, status, code)\n cost_centers(date, status, salary, type)\nTask: Select code from activity_log where salary is greater than the maximum of salary in cost_centers for matching status.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(status, salary, amount, level)\n attribute_groups(value, amount, salary, type)\nTask: Find id from portfolio_index where value exceeds the count of value from attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE value > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(status, amount, date, type)\n dispatch_queue(type, id, value, name)\nTask: Find value from receivables_log where salary exceeds the total amount from dispatch_queue for the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(code, value, status, name)\n activity_log(code, value, salary, id)\nTask: Retrieve name from cost_centers whose type is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(amount, status, value, level)\n activity_log(status, id, code, amount)\nTask: Retrieve name from engagement_log with salary above the SUM(amount) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(status, level, code, value)\n cost_centers(id, value, status, type)\nTask: Find id from personnel_registry where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(id, code, status, level)\n stocking_sites(level, status, name, salary)\nTask: Select salary from sales_registry where type exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, level, name, value)\n acquisition_log(type, level, salary, name)\nTask: Find id from dispatch_queue where status appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(level, name, value, type)\n engagement_log(status, name, salary, code)\nTask: Find amount from area_registry where status appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(amount, type, date, id)\n workforce_data(id, level, type, name)\nTask: Select value from sourcing_list that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(value, level, name, amount)\n stocking_sites(code, date, type, salary)\nTask: Find id from workforce_data where value exceeds the maximum salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE value > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(date, salary, amount, status)\n personnel_registry(amount, name, code, value)\nTask: Select name from workforce_data where salary is greater than the minimum of value in personnel_registry for matching code.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE salary > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(amount, name, value, id)\n sourcing_list(date, amount, status, level)\nTask: Find amount from engagement_log where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(code, date, level, status)\n sales_registry(status, date, salary, level)\nTask: Find id from receivables_log where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(code, salary, type, name)\n workforce_data(salary, status, name, date)\nTask: Find id from personnel_registry where value exceeds the average amount from workforce_data for the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE value > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(salary, value, name, level)\n stock_catalog(status, name, amount, level)\nTask: Retrieve name from activity_log that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(type, date, status, level)\n area_registry(amount, level, id, code)\nTask: Select id from attribute_groups where value is greater than the minimum of salary in area_registry for matching status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE value > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, type, name, id)\n workforce_data(salary, date, type, id)\nTask: Find code from portfolio_index where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(value, level, name, code)\n portfolio_index(date, status, name, value)\nTask: Find name from sourcing_list where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(date, value, level, type)\n receivables_log(salary, type, id, amount)\nTask: Retrieve value from journal_entries whose status is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(status, level, code, value)\n activity_log(id, code, level, date)\nTask: Select salary from area_registry where value is greater than the total of value in activity_log for matching type.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE value > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(level, type, salary, date)\n sales_queue(level, value, amount, type)\nTask: Select value from acquisition_log where value is greater than the maximum of value in sales_queue for matching id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE value > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(date, id, amount, code)\n facility_registry(salary, code, type, level)\nTask: Find amount from portfolio_index where code appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(amount, salary, type, name)\n workforce_data(code, amount, level, value)\nTask: Retrieve amount from dispatch_queue whose level is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(salary, value, type, id)\n facility_registry(value, level, date, code)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(date, name, code, salary)\n sales_queue(code, value, date, type)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(id, name, level, amount)\n stocking_sites(salary, code, value, date)\nTask: Retrieve code from personnel_registry whose code is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(name, id, amount, value)\n receivables_log(value, salary, date, code)\nTask: Find amount from journal_entries where status appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(code, level, value, type)\n workforce_data(date, amount, value, status)\nTask: Find code from sourcing_list where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(code, status, amount, id)\n acquisition_log(date, value, id, amount)\nTask: Select name from journal_entries where id exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(salary, id, type, value)\n engagement_log(type, level, name, date)\nTask: Find name from sales_registry where amount exceeds the maximum value from engagement_log for the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE amount > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(type, code, salary, level)\n area_registry(name, type, level, date)\nTask: Retrieve name from sales_queue whose type is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(date, amount, salary, value)\n sourcing_list(id, type, name, status)\nTask: Select amount from personnel_registry that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(date, value, amount, salary)\n facility_registry(date, code, level, value)\nTask: Select name from engagement_log where salary is greater than the maximum of salary in facility_registry for matching type.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE salary > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(date, level, status, salary)\n personnel_registry(name, code, level, date)\nTask: Find salary from sales_queue where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(type, level, id, salary)\n acquisition_log(type, level, amount, salary)\nTask: Select code from attribute_groups that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(type, name, salary, level)\n stock_catalog(status, value, type, code)\nTask: Find code from attribute_groups where id appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(value, status, id, salary)\n portfolio_index(date, amount, code, id)\nTask: Select salary from workforce_data where amount is greater than the count of of value in portfolio_index for matching status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(salary, date, name, id)\n sales_queue(status, salary, code, value)\nTask: Find amount from area_registry where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(level, code, status, name)\n engagement_log(salary, type, status, level)\nTask: Select salary from personnel_registry where salary is greater than the count of of salary in engagement_log for matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(value, type, status, date)\n journal_entries(value, date, id, name)\nTask: Select name from personnel_registry where amount is greater than the maximum of value in journal_entries for matching id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE amount > (\n SELECT MAX(value) FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(name, amount, code, level)\n stocking_sites(name, amount, code, type)\nTask: Retrieve salary from journal_entries whose code is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(status, code, date, salary)\n stock_catalog(name, amount, code, id)\nTask: Retrieve name from workforce_data whose level is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM workforce_data AS inv\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, name, level, type)\n portfolio_index(date, level, code, salary)\nTask: Retrieve id from dispatch_queue with amount above the MAX(amount) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(level, status, id, name)\n workforce_data(id, amount, type, date)\nTask: Find id from attribute_groups where value exceeds the maximum amount from workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE value > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(level, date, amount, code)\n personnel_registry(code, name, status, value)\nTask: Find code from attribute_groups where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(code, id, status, salary)\n facility_registry(id, level, status, date)\nTask: Find id from sales_registry where amount exceeds the minimum salary from facility_registry for the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(name, code, salary, type)\n sales_registry(code, name, id, salary)\nTask: Find salary from stocking_sites where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(value, date, code, salary)\n sales_queue(type, status, amount, name)\nTask: Retrieve value from facility_registry whose id is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(status, type, date, salary)\n workforce_data(level, type, code, amount)\nTask: Find name from acquisition_log where id appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS emp\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(level, salary, value, status)\n sales_queue(value, level, code, date)\nTask: Find id from area_registry where salary exceeds the minimum amount from sales_queue for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, level, status, type)\n facility_registry(amount, value, name, salary)\nTask: Select code from stocking_sites where value is greater than the count of of value in facility_registry for matching status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE value > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(date, salary, status, value)\n portfolio_index(name, type, id, date)\nTask: Retrieve amount from cost_centers that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(date, name, type, amount)\n sales_registry(date, code, level, amount)\nTask: Select value from facility_registry where value is greater than the count of of salary in sales_registry for matching type.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(name, date, salary, id)\n portfolio_index(code, value, level, name)\nTask: Find id from journal_entries where amount exceeds the maximum amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, id, value, status)\n acquisition_log(id, level, name, code)\nTask: Find code from dispatch_queue where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(name, id, value, date)\n dispatch_queue(amount, salary, code, status)\nTask: Find amount from journal_entries where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(code, status, value, level)\n sales_registry(type, code, salary, value)\nTask: Select name from receivables_log where amount is greater than the maximum of salary in sales_registry for matching level.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(code, date, value, salary)\n activity_log(name, amount, status, type)\nTask: Find name from portfolio_index where salary exceeds the average amount from activity_log for the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(code, id, amount, name)\n attribute_groups(date, level, value, amount)\nTask: Find id from engagement_log where status appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, type, value, status)\n stock_catalog(salary, status, name, type)\nTask: Select amount from portfolio_index where value is greater than the maximum of salary in stock_catalog for matching code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE value > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(level, id, name, date)\n stock_catalog(code, level, value, status)\nTask: Find amount from workforce_data where level appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(status, level, code, type)\n workforce_data(code, name, level, status)\nTask: Find name from personnel_registry where type appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(salary, code, id, type)\n area_registry(name, type, amount, date)\nTask: Find id from sales_queue where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(date, code, name, value)\n sourcing_list(salary, date, value, type)\nTask: Retrieve code from attribute_groups with salary above the SUM(salary) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(salary, type, amount, id)\n receivables_log(name, code, salary, type)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(value, id, name, code)\n stocking_sites(name, type, id, amount)\nTask: Select amount from activity_log that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(status, value, level, id)\n stocking_sites(code, id, status, name)\nTask: Find id from receivables_log where type appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(salary, id, name, value)\n area_registry(level, id, status, code)\nTask: Select id from sourcing_list where salary is greater than the total of amount in area_registry for matching level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(type, level, value, salary)\n cost_centers(date, value, amount, name)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(level, status, salary, amount)\n sourcing_list(level, amount, status, id)\nTask: Find salary from stocking_sites where salary exceeds the total amount from sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(value, status, salary, amount)\n stock_catalog(level, date, salary, code)\nTask: Find amount from workforce_data where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(date, id, salary, amount)\n facility_registry(id, level, salary, date)\nTask: Retrieve amount from sourcing_list with value above the AVG(salary) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(salary, level, date, name)\n portfolio_index(type, status, amount, salary)\nTask: Retrieve amount from receivables_log whose id is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(salary, status, name, amount)\n activity_log(salary, id, level, type)\nTask: Find id from receivables_log where value exceeds the maximum salary from activity_log for the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE value > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(amount, status, value, date)\n receivables_log(date, id, type, level)\nTask: Retrieve salary from journal_entries with value above the COUNT(salary) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(salary, status, name, type)\n workforce_data(type, level, id, code)\nTask: Find value from journal_entries where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(date, status, value, type)\n cost_centers(value, code, date, amount)\nTask: Find value from sales_registry where status appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(name, salary, value, type)\n dispatch_queue(amount, status, value, type)\nTask: Retrieve value from engagement_log whose type is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(id, type, salary, amount)\n sales_queue(salary, value, type, name)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(level, status, date, amount)\n sales_queue(value, type, amount, salary)\nTask: Select id from area_registry that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(id, level, code, status)\n activity_log(id, status, date, value)\nTask: Select amount from personnel_registry where status exists in activity_log for the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(type, value, id, level)\n personnel_registry(salary, amount, value, id)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(name, date, salary, amount)\n receivables_log(level, amount, id, name)\nTask: Select value from area_registry where status exists in receivables_log for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, amount, value, salary)\n portfolio_index(date, code, value, status)\nTask: Select amount from sourcing_list where amount is greater than the minimum of amount in portfolio_index for matching status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(id, code, status, level)\n workforce_data(salary, status, name, value)\nTask: Find salary from cost_centers where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(value, status, id, date)\n personnel_registry(salary, level, type, date)\nTask: Retrieve value from activity_log that have at least one corresponding entry in personnel_registry sharing the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(code, level, salary, value)\n stocking_sites(code, type, name, level)\nTask: Select name from journal_entries that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(level, status, type, salary)\n receivables_log(id, status, type, value)\nTask: Select name from personnel_registry that have at least one matching row in receivables_log for the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(id, name, date, status)\n sales_registry(amount, date, level, type)\nTask: Select id from area_registry that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(name, value, level, date)\n acquisition_log(value, code, type, amount)\nTask: Select amount from area_registry where status exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, status, salary, value)\n attribute_groups(status, date, id, amount)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(id, date, amount, code)\n workforce_data(name, id, value, salary)\nTask: Retrieve id from stocking_sites whose status is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(code, id, value, type)\n facility_registry(status, name, date, level)\nTask: Find amount from attribute_groups where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, type, salary, level)\n receivables_log(code, value, salary, name)\nTask: Select salary from personnel_registry where value is greater than the average of value in receivables_log for matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE value > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(code, type, salary, date)\n receivables_log(name, code, date, type)\nTask: Find id from dispatch_queue where salary exceeds the average value from receivables_log for the same level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(level, value, name, id)\n workforce_data(status, date, type, name)\nTask: Select value from facility_registry that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(salary, status, level, amount)\n stocking_sites(code, date, amount, type)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(status, date, salary, name)\n journal_entries(name, id, value, salary)\nTask: Retrieve id from stocking_sites with value above the MAX(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE value > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(salary, id, type, level)\n facility_registry(code, type, level, status)\nTask: Retrieve name from receivables_log whose status is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(value, date, amount, salary)\n receivables_log(salary, date, amount, type)\nTask: Select value from engagement_log that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(amount, type, code, status)\n workforce_data(status, id, date, level)\nTask: Select salary from activity_log where id exists in workforce_data for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(level, name, amount, salary)\n portfolio_index(name, level, id, date)\nTask: Select amount from cost_centers where value is greater than the count of of salary in portfolio_index for matching status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(value, id, code, level)\n sales_registry(id, salary, status, name)\nTask: Select salary from facility_registry where status exists in sales_registry for the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(level, amount, id, type)\n area_registry(date, salary, status, type)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(level, salary, status, code)\n sales_registry(code, amount, value, status)\nTask: Find name from workforce_data where salary exceeds the minimum amount from sales_registry for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE salary > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(name, status, level, value)\n personnel_registry(date, code, type, salary)\nTask: Find code from stocking_sites where status appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, code, type, id)\n sales_registry(amount, salary, status, value)\nTask: Select name from attribute_groups where code exists in sales_registry for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(id, value, level, salary)\n sales_queue(level, date, code, id)\nTask: Select salary from activity_log where id exists in sales_queue for the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(id, level, code, type)\n portfolio_index(level, name, salary, amount)\nTask: Retrieve value from stocking_sites with value above the AVG(salary) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE value > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(name, value, status, level)\n sales_registry(salary, amount, status, value)\nTask: Retrieve name from stock_catalog whose status is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(type, id, date, salary)\n sales_queue(value, type, amount, salary)\nTask: Find amount from sales_registry where code appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(status, amount, value, id)\n receivables_log(status, id, salary, code)\nTask: Find salary from activity_log where id appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(type, value, date, salary)\n facility_registry(date, code, name, value)\nTask: Select code from area_registry where status exists in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(date, name, value, status)\n portfolio_index(salary, name, code, type)\nTask: Select value from stocking_sites that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(status, date, value, amount)\n personnel_registry(id, code, type, value)\nTask: Retrieve salary from stocking_sites whose code is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(level, value, date, type)\n acquisition_log(date, amount, type, id)\nTask: Select id from engagement_log where amount is greater than the total of salary in acquisition_log for matching type.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(value, date, code, name)\n engagement_log(salary, value, name, level)\nTask: Select code from sales_registry that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(salary, amount, value, name)\n cost_centers(code, status, name, level)\nTask: Find name from receivables_log where salary exceeds the total value from cost_centers for the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE salary > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(name, date, amount, salary)\n stocking_sites(code, status, date, value)\nTask: Find code from workforce_data where amount exceeds the count of amount from stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(value, amount, salary, level)\n activity_log(date, level, salary, id)\nTask: Retrieve salary from portfolio_index with salary above the MAX(value) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE salary > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(value, id, level, status)\n sales_registry(id, value, amount, level)\nTask: Retrieve id from sales_queue with value above the SUM(amount) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE value > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(level, salary, type, id)\n area_registry(level, value, id, salary)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(name, id, value, type)\n engagement_log(value, salary, amount, date)\nTask: Select value from activity_log where type exists in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, level, type, id)\n attribute_groups(level, amount, date, status)\nTask: Retrieve salary from sourcing_list whose code is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(value, name, date, id)\n acquisition_log(value, id, status, name)\nTask: Select code from stock_catalog where salary is greater than the count of of amount in acquisition_log for matching type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(salary, level, date, name)\n attribute_groups(salary, name, level, value)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(code, name, date, level)\n facility_registry(level, type, amount, salary)\nTask: Find value from attribute_groups where value exceeds the average value from facility_registry for the same type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(value, status, name, level)\n stock_catalog(id, amount, salary, level)\nTask: Select code from activity_log where value is greater than the total of amount in stock_catalog for matching status.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(value, date, level, id)\n dispatch_queue(code, salary, status, date)\nTask: Select value from attribute_groups that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(level, status, date, value)\n dispatch_queue(code, value, salary, level)\nTask: Select code from stocking_sites where salary is greater than the maximum of value in dispatch_queue for matching level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE salary > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(level, id, status, amount)\n cost_centers(level, id, status, name)\nTask: Retrieve salary from journal_entries that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(type, value, salary, id)\n dispatch_queue(date, salary, level, value)\nTask: Find code from area_registry where status appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(status, type, salary, id)\n stock_catalog(value, id, level, salary)\nTask: Find value from personnel_registry where amount exceeds the count of value from stock_catalog for the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE amount > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(salary, code, value, type)\n journal_entries(amount, code, salary, value)\nTask: Select amount from receivables_log that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, name, code, date)\n workforce_data(name, status, amount, id)\nTask: Retrieve code from dispatch_queue with value above the MIN(amount) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, name, level, status)\n receivables_log(level, salary, status, code)\nTask: Select id from dispatch_queue where amount is greater than the minimum of value in receivables_log for matching level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(amount, level, value, code)\n attribute_groups(value, id, salary, date)\nTask: Select name from cost_centers where amount is greater than the count of of value in attribute_groups for matching code.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(level, salary, code, amount)\n sourcing_list(type, level, date, amount)\nTask: Select id from stock_catalog where status exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(date, id, level, code)\n area_registry(date, value, salary, status)\nTask: Retrieve salary from receivables_log with salary above the MAX(salary) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(type, id, status, code)\n facility_registry(salary, value, level, amount)\nTask: Find name from personnel_registry where amount exceeds the maximum value from facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE amount > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(amount, type, value, status)\n facility_registry(salary, id, code, level)\nTask: Find id from journal_entries where type appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(date, amount, value, level)\n facility_registry(name, type, value, level)\nTask: Retrieve id from portfolio_index with amount above the MAX(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE amount > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, type, id, name)\n attribute_groups(status, id, amount, type)\nTask: Find salary from portfolio_index where amount exceeds the maximum value from attribute_groups for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE amount > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(salary, type, date, code)\n stock_catalog(code, type, id, amount)\nTask: Find id from activity_log where amount exceeds the minimum value from stock_catalog for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE amount > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(value, amount, name, id)\n attribute_groups(date, level, type, id)\nTask: Retrieve salary from portfolio_index whose type is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, code, salary, name)\n acquisition_log(status, value, name, date)\nTask: Select code from dispatch_queue that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(level, name, value, type)\n activity_log(status, type, code, id)\nTask: Retrieve amount from sales_registry whose type is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(status, name, type, amount)\n sales_queue(status, salary, date, type)\nTask: Find id from receivables_log where amount exceeds the average amount from sales_queue for the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(level, name, type, status)\n sourcing_list(date, status, salary, code)\nTask: Retrieve name from activity_log that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(status, amount, type, value)\n activity_log(type, salary, amount, level)\nTask: Select value from acquisition_log where salary is greater than the minimum of amount in activity_log for matching status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(id, value, code, type)\n activity_log(salary, date, status, code)\nTask: Retrieve code from stock_catalog with salary above the COUNT(amount) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(code, name, date, level)\n receivables_log(name, salary, id, level)\nTask: Retrieve code from workforce_data with value above the MAX(amount) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE value > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(type, salary, id, amount)\n receivables_log(id, value, salary, code)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(value, amount, code, level)\n portfolio_index(amount, type, status, level)\nTask: Find code from engagement_log where code appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(date, status, salary, name)\n stocking_sites(type, salary, date, id)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, amount, status, date)\n activity_log(amount, level, salary, value)\nTask: Find name from portfolio_index where type appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(amount, type, salary, level)\n sales_queue(status, id, salary, code)\nTask: Find code from facility_registry where level appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(id, level, date, salary)\n area_registry(salary, code, value, type)\nTask: Find name from sales_registry where salary exceeds the total value from area_registry for the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE salary > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(amount, name, level, salary)\n cost_centers(salary, id, level, type)\nTask: Retrieve name from personnel_registry with amount above the MAX(amount) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(value, amount, code, level)\n attribute_groups(status, type, value, name)\nTask: Select name from facility_registry where salary is greater than the minimum of amount in attribute_groups for matching id.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(date, type, level, status)\n journal_entries(level, code, value, salary)\nTask: Select id from sales_queue that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, level, date, type)\n acquisition_log(level, code, salary, date)\nTask: Select salary from attribute_groups where amount is greater than the total of amount in acquisition_log for matching type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(value, level, type, id)\n area_registry(name, amount, salary, level)\nTask: Select code from engagement_log where status exists in area_registry for the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(status, type, id, value)\n engagement_log(salary, id, name, level)\nTask: Find name from sourcing_list where status appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS ord\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, type, id, name)\n area_registry(name, level, value, salary)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(code, type, id, name)\n facility_registry(value, id, salary, level)\nTask: Find amount from personnel_registry where id appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, amount, value, date)\n portfolio_index(status, salary, value, date)\nTask: Select amount from dispatch_queue where type exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(date, status, type, code)\n stocking_sites(date, value, name, id)\nTask: Select salary from acquisition_log where salary is greater than the total of amount in stocking_sites for matching type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(value, salary, id, amount)\n stock_catalog(code, salary, amount, value)\nTask: Select value from engagement_log that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, value, code, level)\n sales_queue(salary, name, amount, level)\nTask: Find code from sourcing_list where amount exceeds the count of value from sales_queue for the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(type, salary, code, status)\n acquisition_log(level, amount, code, value)\nTask: Find code from journal_entries where amount exceeds the maximum amount from acquisition_log for the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(name, salary, id, status)\n dispatch_queue(date, value, amount, code)\nTask: Retrieve amount from attribute_groups whose id is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(amount, name, type, level)\n workforce_data(date, amount, salary, code)\nTask: Select amount from activity_log where amount is greater than the maximum of amount in workforce_data for matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(salary, type, code, status)\n portfolio_index(value, status, code, name)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, id, level, salary)\n sourcing_list(salary, name, type, id)\nTask: Select code from dispatch_queue where status exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(status, level, type, id)\n personnel_registry(salary, id, status, date)\nTask: Retrieve name from cost_centers whose level is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(level, code, date, status)\n cost_centers(amount, salary, level, date)\nTask: Retrieve code from area_registry whose level is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(amount, type, name, level)\n activity_log(amount, type, value, name)\nTask: Find name from portfolio_index where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(level, status, id, date)\n dispatch_queue(name, code, amount, level)\nTask: Select amount from personnel_registry that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(type, name, value, id)\n dispatch_queue(value, date, salary, code)\nTask: Retrieve value from portfolio_index with salary above the MIN(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(date, amount, value, type)\n engagement_log(level, date, amount, salary)\nTask: Select name from attribute_groups that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(name, id, code, amount)\n activity_log(salary, name, id, status)\nTask: Retrieve name from area_registry that have at least one corresponding entry in activity_log sharing the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(id, amount, level, code)\n sales_registry(level, status, salary, value)\nTask: Find code from portfolio_index where salary exceeds the count of value from sales_registry for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(id, name, salary, level)\n sales_registry(amount, id, name, status)\nTask: Find amount from attribute_groups where amount exceeds the total value from sales_registry for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE amount > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(date, status, amount, level)\n stocking_sites(id, code, name, level)\nTask: Retrieve id from activity_log with salary above the MIN(value) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE salary > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, date, status, type)\n activity_log(salary, level, id, status)\nTask: Retrieve amount from sourcing_list whose code is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(name, date, status, salary)\n sales_queue(level, value, type, date)\nTask: Find id from facility_registry where id appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(value, status, id, name)\n receivables_log(amount, id, level, type)\nTask: Select code from portfolio_index that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(status, salary, name, code)\n activity_log(id, code, value, date)\nTask: Retrieve id from sourcing_list whose level is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(type, amount, level, code)\n stocking_sites(level, code, id, amount)\nTask: Find code from facility_registry where value exceeds the minimum value from stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE value > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(name, amount, id, value)\n area_registry(type, salary, level, amount)\nTask: Select id from acquisition_log that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(name, salary, status, id)\n receivables_log(code, value, date, amount)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, code, date, amount)\n stock_catalog(type, level, id, date)\nTask: Select name from dispatch_queue where value is greater than the maximum of salary in stock_catalog for matching id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE value > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(type, code, amount, id)\n acquisition_log(code, salary, id, value)\nTask: Find code from attribute_groups where value exceeds the total salary from acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE value > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, date, code, level)\n receivables_log(code, value, type, id)\nTask: Select value from facility_registry that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(amount, code, level, type)\n portfolio_index(status, amount, id, salary)\nTask: Find value from cost_centers where id appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(name, date, salary, value)\n acquisition_log(salary, date, amount, name)\nTask: Retrieve code from sourcing_list whose level is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(name, status, id, level)\n area_registry(level, amount, salary, status)\nTask: Find value from portfolio_index where salary exceeds the maximum amount from area_registry for the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(code, salary, date, level)\n attribute_groups(date, name, amount, status)\nTask: Find id from acquisition_log where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(type, date, status, id)\n facility_registry(amount, status, date, salary)\nTask: Find id from personnel_registry where type appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(code, name, id, salary)\n stocking_sites(level, type, salary, name)\nTask: Retrieve code from sales_registry with value above the AVG(value) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE value > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(level, status, code, date)\n acquisition_log(date, type, status, level)\nTask: Find id from facility_registry where type appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(code, type, status, amount)\n journal_entries(status, code, id, date)\nTask: Find id from activity_log where salary exceeds the average salary from journal_entries for the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(amount, name, date, code)\n facility_registry(amount, level, type, salary)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(type, salary, name, value)\n journal_entries(type, value, id, name)\nTask: Select amount from receivables_log where id exists in journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(id, value, salary, code)\n sourcing_list(value, type, status, code)\nTask: Select value from journal_entries where status exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(amount, type, value, id)\n stock_catalog(id, name, value, status)\nTask: Select value from sales_registry where type exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, type, code, value)\n sales_registry(type, level, name, code)\nTask: Select amount from dispatch_queue where code exists in sales_registry for the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(code, date, name, amount)\n personnel_registry(code, id, value, name)\nTask: Retrieve id from stock_catalog that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(amount, status, salary, code)\n sales_registry(type, name, salary, status)\nTask: Select amount from portfolio_index where value is greater than the maximum of value in sales_registry for matching code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE value > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(name, salary, value, amount)\n acquisition_log(value, name, date, amount)\nTask: Retrieve code from workforce_data with value above the MIN(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(salary, name, id, type)\n stocking_sites(amount, id, salary, status)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(value, name, salary, status)\n attribute_groups(name, type, salary, amount)\nTask: Retrieve amount from activity_log whose type is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS emp\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(type, value, status, date)\n sales_queue(value, date, salary, id)\nTask: Select salary from area_registry where amount is greater than the average of salary in sales_queue for matching type.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(value, date, id, name)\n facility_registry(status, code, value, type)\nTask: Retrieve code from personnel_registry whose code is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(type, code, level, name)\n journal_entries(status, amount, type, level)\nTask: Find name from dispatch_queue where value exceeds the average salary from journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "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}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, type, id, date)\n stocking_sites(type, status, name, id)\nTask: Select code from cost_centers that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(type, name, value, amount)\n journal_entries(salary, type, code, name)\nTask: Select name from facility_registry that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, id, salary, type)\n attribute_groups(id, date, amount, code)\nTask: Retrieve name from stock_catalog with salary above the AVG(amount) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(salary, status, date, code)\n attribute_groups(amount, name, date, type)\nTask: Find salary from engagement_log where value exceeds the count of salary from attribute_groups for the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(id, level, status, salary)\n portfolio_index(salary, value, amount, type)\nTask: Select amount from sourcing_list that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(date, code, salary, amount)\n stock_catalog(level, date, amount, id)\nTask: Find salary from attribute_groups where amount exceeds the count of amount from stock_catalog for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, name, value, code)\n workforce_data(salary, level, id, value)\nTask: Find amount from dispatch_queue where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(status, name, salary, type)\n sales_registry(salary, level, value, type)\nTask: Retrieve id from attribute_groups with salary above the MIN(value) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE salary > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(code, salary, date, amount)\n acquisition_log(code, value, status, level)\nTask: Find code from facility_registry where value exceeds the average salary from acquisition_log for the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE value > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(id, date, amount, salary)\n area_registry(type, level, code, status)\nTask: Select code from attribute_groups where amount is greater than the maximum of value in area_registry for matching type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE amount > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(date, level, salary, name)\n sourcing_list(amount, date, name, salary)\nTask: Select amount from area_registry where status exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(type, amount, code, date)\n acquisition_log(type, level, code, salary)\nTask: Select amount from dispatch_queue where salary is greater than the average of salary in acquisition_log for matching status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(status, value, name, level)\n workforce_data(level, date, code, status)\nTask: Find name from sales_registry where status appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(amount, status, value, type)\n workforce_data(type, name, date, level)\nTask: Find name from activity_log where level appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(amount, code, date, status)\n sales_queue(value, level, salary, id)\nTask: Select amount from activity_log that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(value, amount, id, name)\n receivables_log(value, level, id, date)\nTask: Find salary from dispatch_queue where status appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(level, value, date, status)\n acquisition_log(value, amount, level, status)\nTask: Select name from sales_registry where level exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(date, amount, salary, type)\n activity_log(salary, type, code, value)\nTask: Select name from journal_entries that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, type, level, status)\n stocking_sites(name, salary, value, type)\nTask: Find value from sales_registry where amount exceeds the average salary from stocking_sites for the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(status, type, date, amount)\n attribute_groups(type, level, value, date)\nTask: Find name from activity_log where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(salary, date, value, name)\n cost_centers(code, value, level, id)\nTask: Select salary from sales_registry where salary is greater than the maximum of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(type, amount, code, date)\n journal_entries(status, name, type, id)\nTask: Find code from stocking_sites where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(salary, amount, level, name)\n engagement_log(salary, type, date, level)\nTask: Retrieve salary from facility_registry whose level is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(type, id, salary, status)\n workforce_data(salary, type, id, amount)\nTask: Select value from stock_catalog where value is greater than the count of of value in workforce_data for matching code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE value > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(salary, date, name, id)\n sales_registry(type, value, salary, code)\nTask: Select value from area_registry where salary is greater than the maximum of value in sales_registry for matching level.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE salary > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(status, type, level, code)\n stock_catalog(salary, value, amount, type)\nTask: Retrieve amount from sales_registry with amount above the MAX(amount) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(date, amount, level, value)\n stock_catalog(type, status, date, name)\nTask: Retrieve amount from sales_registry whose code is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(date, code, amount, salary)\n sales_queue(status, name, value, date)\nTask: Find code from attribute_groups where level appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(amount, status, salary, level)\n engagement_log(value, id, name, amount)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(salary, code, amount, value)\n sourcing_list(level, id, value, date)\nTask: Select amount from area_registry that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, date, status, name)\n activity_log(salary, date, type, value)\nTask: Find id from facility_registry where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(value, salary, id, date)\n acquisition_log(status, id, name, amount)\nTask: Select id from area_registry that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(type, name, salary, code)\n stocking_sites(status, salary, date, type)\nTask: Retrieve name from journal_entries whose status is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(amount, value, salary, id)\n receivables_log(amount, salary, value, code)\nTask: Retrieve code from stock_catalog with amount above the COUNT(value) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(status, type, value, id)\n facility_registry(type, name, level, amount)\nTask: Select value from stocking_sites where salary is greater than the average of value in facility_registry for matching status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE salary > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(salary, level, id, value)\n attribute_groups(date, status, code, type)\nTask: Find name from workforce_data where amount exceeds the average amount from attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(amount, level, type, status)\n sales_registry(value, code, amount, level)\nTask: Select salary from area_registry that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, date, name, status)\n attribute_groups(date, type, code, level)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(level, name, salary, id)\n dispatch_queue(type, code, value, level)\nTask: Find name from receivables_log where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(value, type, salary, status)\n cost_centers(amount, level, id, type)\nTask: Find salary from acquisition_log where code appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(salary, amount, level, status)\n workforce_data(value, salary, level, id)\nTask: Find code from sourcing_list where level appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(name, status, level, id)\n area_registry(amount, name, type, level)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(salary, id, level, name)\n engagement_log(name, value, date, id)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(date, amount, salary, level)\n stock_catalog(amount, id, status, name)\nTask: Retrieve value from workforce_data with salary above the MIN(amount) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(level, value, id, code)\n acquisition_log(code, level, value, date)\nTask: Retrieve salary from activity_log with salary above the AVG(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, date, salary, status)\n engagement_log(date, salary, name, status)\nTask: Select amount from dispatch_queue where amount is greater than the total of amount in engagement_log for matching type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(name, amount, value, code)\n cost_centers(code, type, name, id)\nTask: Select id from journal_entries that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(name, status, level, amount)\n portfolio_index(code, id, salary, level)\nTask: Find name from workforce_data where level appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT name FROM workforce_data AS dept\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(name, value, date, amount)\n portfolio_index(type, status, id, amount)\nTask: Find salary from area_registry where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(date, name, status, type)\n activity_log(name, level, status, code)\nTask: Find id from portfolio_index where level appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(type, id, value, level)\n portfolio_index(status, id, type, salary)\nTask: Retrieve id from stock_catalog with value above the AVG(amount) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE value > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(name, value, status, id)\n engagement_log(status, type, level, name)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(name, value, salary, level)\n attribute_groups(status, name, date, code)\nTask: Retrieve salary from acquisition_log whose id is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(status, level, amount, value)\n sourcing_list(salary, amount, type, value)\nTask: Select id from personnel_registry where code exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(salary, date, value, code)\n activity_log(name, id, value, level)\nTask: Select salary from engagement_log where id exists in activity_log for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(name, status, salary, level)\n sales_queue(name, type, salary, status)\nTask: Select amount from personnel_registry where code exists in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(level, name, salary, value)\n engagement_log(type, name, amount, date)\nTask: Find salary from area_registry where value exceeds the total value from engagement_log for the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE value > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(name, salary, level, value)\n acquisition_log(amount, status, date, value)\nTask: Select value from engagement_log that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(code, date, type, level)\n workforce_data(name, id, salary, type)\nTask: Select id from receivables_log that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, salary, date, id)\n stock_catalog(name, salary, level, status)\nTask: Retrieve name from acquisition_log with salary above the MIN(amount) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE salary > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(type, date, salary, name)\n cost_centers(value, status, date, code)\nTask: Select code from area_registry where level exists in cost_centers for the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(level, name, salary, amount)\n activity_log(name, id, type, date)\nTask: Select name from journal_entries that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(value, salary, date, status)\n workforce_data(id, salary, type, code)\nTask: Select code from cost_centers where value is greater than the maximum of salary in workforce_data for matching code.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE value > (\n SELECT MAX(salary) FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(date, value, salary, type)\n sourcing_list(name, type, value, id)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, date, salary, code)\n receivables_log(amount, name, salary, value)\nTask: Select amount from attribute_groups that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(id, status, code, name)\n attribute_groups(id, type, level, amount)\nTask: Select code from stocking_sites that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(name, status, code, salary)\n stocking_sites(amount, status, id, level)\nTask: Find amount from workforce_data where salary exceeds the total salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(date, id, status, level)\n workforce_data(salary, status, name, amount)\nTask: Retrieve code from activity_log that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(date, id, amount, status)\n attribute_groups(status, date, id, level)\nTask: Retrieve value from area_registry whose code is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS emp\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(type, code, level, name)\n sourcing_list(id, amount, value, code)\nTask: Retrieve salary from stock_catalog whose type is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, salary, code, type)\n workforce_data(level, salary, amount, name)\nTask: Find code from personnel_registry where id appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(name, salary, code, type)\n stocking_sites(level, status, type, salary)\nTask: Find code from sales_queue where code appears in stocking_sites entries with matching type.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(type, level, salary, code)\n portfolio_index(date, id, level, amount)\nTask: Select id from facility_registry that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, value, code, amount)\n attribute_groups(salary, id, name, code)\nTask: Retrieve code from dispatch_queue with value above the AVG(value) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(name, value, level, salary)\n facility_registry(name, amount, value, level)\nTask: Select amount from receivables_log where value is greater than the minimum of salary in facility_registry for matching type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE value > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(level, salary, name, value)\n sales_queue(salary, date, type, amount)\nTask: Select amount from workforce_data where value is greater than the count of of salary in sales_queue for matching level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(status, amount, type, date)\n sales_registry(salary, amount, level, name)\nTask: Select amount from acquisition_log where amount is greater than the minimum of value in sales_registry for matching level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(type, id, name, date)\n workforce_data(value, code, name, date)\nTask: Find id from portfolio_index where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(amount, status, type, value)\n facility_registry(code, salary, date, level)\nTask: Find id from acquisition_log where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(code, level, date, type)\n personnel_registry(level, name, code, id)\nTask: Find salary from acquisition_log where amount exceeds the count of amount from personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(date, level, code, id)\n activity_log(level, code, id, amount)\nTask: Retrieve amount from journal_entries with amount above the SUM(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(type, salary, code, level)\n area_registry(date, type, salary, id)\nTask: Select id from engagement_log where type exists in area_registry for the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, level, amount, date)\n attribute_groups(type, status, salary, code)\nTask: Find amount from stock_catalog where id appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(value, status, type, amount)\n personnel_registry(id, name, amount, value)\nTask: Find code from stock_catalog where value exceeds the total value from personnel_registry for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE value > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(id, name, type, code)\n portfolio_index(salary, status, type, name)\nTask: Find code from area_registry where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(name, value, date, status)\n stocking_sites(id, amount, code, status)\nTask: Retrieve salary from engagement_log that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(name, type, date, level)\n sales_registry(type, status, value, date)\nTask: Find id from cost_centers where id appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(salary, name, status, type)\n dispatch_queue(amount, type, value, date)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(id, type, code, date)\n activity_log(id, date, code, level)\nTask: Find value from sourcing_list where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(date, salary, value, name)\n engagement_log(salary, amount, name, date)\nTask: Find id from sales_registry where amount exceeds the average salary from engagement_log for the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(level, value, name, amount)\n dispatch_queue(name, date, level, amount)\nTask: Retrieve value from activity_log whose level is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(type, amount, value, name)\n workforce_data(code, level, status, id)\nTask: Select salary from engagement_log where code exists in workforce_data for the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(status, name, code, level)\n receivables_log(value, code, type, name)\nTask: Find code from facility_registry where amount exceeds the minimum salary from receivables_log for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(level, status, code, date)\n sales_registry(name, value, date, type)\nTask: Retrieve code from acquisition_log whose code is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(type, status, date, level)\n acquisition_log(date, type, name, code)\nTask: Find name from receivables_log where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(level, amount, salary, date)\n cost_centers(value, salary, id, amount)\nTask: Find name from sales_registry where amount exceeds the total amount from cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(code, type, level, name)\n sourcing_list(level, amount, salary, value)\nTask: Retrieve value from area_registry with salary above the MIN(salary) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, id, status, salary)\n journal_entries(amount, salary, level, type)\nTask: Find amount from attribute_groups where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(level, status, amount, code)\n acquisition_log(salary, date, type, level)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(id, code, name, amount)\n sales_queue(date, value, name, code)\nTask: Select name from attribute_groups where salary is greater than the average of value in sales_queue for matching id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE salary > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(amount, code, name, type)\n attribute_groups(date, amount, name, status)\nTask: Find id from facility_registry where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(value, date, type, name)\n cost_centers(salary, value, type, amount)\nTask: Retrieve code from journal_entries whose level is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(level, code, status, type)\n acquisition_log(salary, type, value, code)\nTask: Select id from cost_centers that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, date, name, status)\n sourcing_list(name, value, amount, type)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(id, name, code, type)\n engagement_log(id, type, level, status)\nTask: Retrieve value from activity_log that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(name, salary, level, code)\n stock_catalog(amount, type, value, level)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(name, salary, code, id)\n cost_centers(salary, name, id, amount)\nTask: Find salary from personnel_registry where salary exceeds the count of salary from cost_centers for the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(level, type, date, amount)\n cost_centers(value, date, amount, code)\nTask: Find id from acquisition_log where value exceeds the count of value from cost_centers for the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE value > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(value, level, id, status)\n facility_registry(salary, amount, status, name)\nTask: Retrieve id from journal_entries with amount above the SUM(value) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE amount > (\n SELECT SUM(value) FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(name, type, date, code)\n sales_registry(type, status, value, salary)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(name, salary, code, level)\n receivables_log(value, name, code, status)\nTask: Retrieve amount from personnel_registry with value above the SUM(value) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE value > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(name, code, date, id)\n cost_centers(code, status, date, type)\nTask: Retrieve id from sales_registry whose status is found in cost_centers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(status, value, salary, level)\n personnel_registry(status, code, salary, date)\nTask: Retrieve code from sourcing_list with salary above the MIN(amount) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(id, status, date, name)\n attribute_groups(id, type, code, amount)\nTask: Retrieve value from sourcing_list whose code is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(level, name, id, code)\n acquisition_log(amount, salary, name, value)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(value, date, type, id)\n sales_queue(id, amount, type, date)\nTask: Find salary from personnel_registry where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(level, value, date, amount)\n receivables_log(type, salary, value, id)\nTask: Select name from attribute_groups where type exists in receivables_log for the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(id, value, salary, status)\n receivables_log(date, amount, salary, status)\nTask: Find salary from area_registry where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(id, name, code, type)\n dispatch_queue(value, status, date, id)\nTask: Retrieve name from receivables_log with value above the COUNT(amount) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(salary, name, status, id)\n receivables_log(level, status, id, value)\nTask: Select code from journal_entries where level exists in receivables_log for the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(name, salary, type, level)\n journal_entries(status, value, code, name)\nTask: Select name from sales_registry where code exists in journal_entries for the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, value, date, code)\n facility_registry(name, type, amount, value)\nTask: Find code from portfolio_index where id appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(code, status, salary, name)\n sales_registry(amount, level, value, type)\nTask: Retrieve id from sourcing_list with value above the COUNT(value) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE value > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(name, type, amount, id)\n receivables_log(type, salary, id, status)\nTask: Find code from cost_centers where id appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(amount, type, name, status)\n stock_catalog(type, amount, value, level)\nTask: Find salary from workforce_data where a matching record exists in stock_catalog with the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(date, level, value, salary)\n acquisition_log(id, value, amount, code)\nTask: Select salary from journal_entries that have at least one matching row in acquisition_log for the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(code, salary, date, value)\n dispatch_queue(id, type, level, amount)\nTask: Find value from sales_registry where type appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(id, type, status, date)\n stock_catalog(salary, value, id, status)\nTask: Select id from cost_centers that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(date, name, status, id)\n portfolio_index(salary, date, level, value)\nTask: Select id from journal_entries that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(id, value, status, type)\n cost_centers(level, date, value, status)\nTask: Find amount from sales_registry where value exceeds the average salary from cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE value > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(type, amount, level, id)\n stock_catalog(code, date, level, value)\nTask: Retrieve amount from facility_registry whose type is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(status, code, date, salary)\n dispatch_queue(name, date, status, value)\nTask: Select value from sales_registry that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(value, code, amount, level)\n dispatch_queue(amount, level, name, date)\nTask: Select name from activity_log where level exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(code, id, amount, name)\n area_registry(salary, level, date, value)\nTask: Retrieve name from journal_entries whose code is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(type, date, status, id)\n receivables_log(level, status, date, salary)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(date, type, amount, code)\n sourcing_list(name, level, code, amount)\nTask: Retrieve id from attribute_groups whose id is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(date, name, value, type)\n dispatch_queue(amount, status, code, date)\nTask: Find amount from sourcing_list where id appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS mgr\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(id, name, amount, salary)\n activity_log(salary, name, level, code)\nTask: Find code from sales_registry where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(date, status, level, type)\n cost_centers(date, code, amount, value)\nTask: Retrieve name from facility_registry with amount above the COUNT(value) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, id, name, value)\n stock_catalog(name, value, status, salary)\nTask: Retrieve name from personnel_registry with salary above the COUNT(amount) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(id, date, code, type)\n attribute_groups(code, name, salary, status)\nTask: Retrieve amount from portfolio_index whose level is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(date, status, value, code)\n receivables_log(type, amount, level, status)\nTask: Retrieve value from area_registry with amount above the SUM(amount) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "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}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(date, type, salary, value)\n stock_catalog(level, amount, name, code)\nTask: Find code from engagement_log where level appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, level, type, value)\n acquisition_log(date, type, amount, salary)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(salary, id, type, name)\n journal_entries(amount, status, level, salary)\nTask: Find id from activity_log where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(value, salary, type, name)\n stock_catalog(name, date, code, value)\nTask: Find name from sales_queue where type appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, id, date, type)\n personnel_registry(code, amount, status, name)\nTask: Find amount from portfolio_index where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(type, value, status, level)\n personnel_registry(name, type, level, date)\nTask: Retrieve code from activity_log whose id is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS usr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(id, name, code, amount)\n acquisition_log(id, amount, date, name)\nTask: Select code from workforce_data where amount is greater than the count of of amount in acquisition_log for matching status.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(status, level, date, value)\n attribute_groups(type, status, level, code)\nTask: Find code from receivables_log where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(type, salary, name, status)\n area_registry(level, value, amount, code)\nTask: Retrieve salary from sales_queue whose id is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(salary, level, name, date)\n dispatch_queue(status, name, level, value)\nTask: Retrieve value from portfolio_index with salary above the SUM(amount) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(type, name, date, salary)\n portfolio_index(amount, value, salary, level)\nTask: Select code from facility_registry that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(level, id, name, date)\n cost_centers(date, type, amount, salary)\nTask: Retrieve value from portfolio_index whose type is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM portfolio_index AS inv\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(amount, level, status, salary)\n cost_centers(salary, name, value, amount)\nTask: Retrieve amount from sales_queue whose id is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS inv\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(level, id, status, value)\n activity_log(level, id, code, type)\nTask: Find value from journal_entries where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, name, status, type)\n personnel_registry(id, type, status, salary)\nTask: Retrieve code from cost_centers with salary above the SUM(salary) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(level, id, code, status)\n stocking_sites(type, salary, amount, status)\nTask: Find amount from facility_registry where value exceeds the average value from stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE value > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(level, name, date, value)\n acquisition_log(amount, code, type, level)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(name, salary, code, amount)\n engagement_log(level, salary, date, name)\nTask: Select amount from area_registry where salary is greater than the maximum of salary in engagement_log for matching code.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(amount, id, name, code)\n activity_log(id, salary, name, date)\nTask: Find name from dispatch_queue where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(status, level, date, value)\n activity_log(status, id, amount, value)\nTask: Select id from sales_registry where type exists in activity_log for the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(salary, level, type, value)\n workforce_data(code, name, value, level)\nTask: Find value from engagement_log where amount exceeds the maximum amount from workforce_data for the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(salary, amount, name, code)\n facility_registry(type, value, name, status)\nTask: Find value from area_registry where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(name, level, id, code)\n workforce_data(amount, name, level, status)\nTask: Retrieve amount from attribute_groups whose status is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(name, code, id, date)\n attribute_groups(salary, code, date, id)\nTask: Find name from facility_registry where type appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(level, status, date, code)\n workforce_data(status, salary, type, id)\nTask: Select name from activity_log where status exists in workforce_data for the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(salary, value, name, date)\n acquisition_log(id, name, code, value)\nTask: Retrieve id from sourcing_list with salary above the COUNT(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(type, amount, date, value)\n stocking_sites(type, date, amount, level)\nTask: Find salary from stock_catalog where salary exceeds the count of amount from stocking_sites for the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(code, salary, id, status)\n stocking_sites(salary, name, date, id)\nTask: Retrieve salary from sourcing_list whose type is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(level, date, salary, name)\n portfolio_index(code, value, amount, level)\nTask: Select id from receivables_log where amount is greater than the maximum of salary in portfolio_index for matching type.\nSQL:", "sql": "SELECT id FROM receivables_log AS emp\nWHERE amount > (\n SELECT MAX(salary) FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, code, name, date)\n area_registry(type, value, status, date)\nTask: Select code from acquisition_log that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(code, status, level, amount)\n sales_registry(type, salary, id, date)\nTask: Find amount from sourcing_list where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(status, amount, code, salary)\n acquisition_log(level, id, status, salary)\nTask: Retrieve code from dispatch_queue whose type is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(status, name, amount, salary)\n sales_queue(value, level, date, type)\nTask: Retrieve name from sales_registry whose code is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(amount, status, date, salary)\n workforce_data(value, status, type, level)\nTask: Find salary from stocking_sites where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(type, status, id, name)\n workforce_data(level, status, amount, salary)\nTask: Find value from receivables_log where amount exceeds the minimum amount from workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(amount, status, code, date)\n activity_log(id, date, salary, name)\nTask: Find id from cost_centers where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, date, salary, id)\n sourcing_list(value, type, date, amount)\nTask: Select value from personnel_registry that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(id, name, type, salary)\n stocking_sites(type, status, date, value)\nTask: Retrieve id from sourcing_list that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(status, value, code, id)\n area_registry(code, name, level, id)\nTask: Find value from workforce_data where type appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(name, amount, code, type)\n activity_log(status, amount, name, code)\nTask: Select id from facility_registry where type exists in activity_log for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(value, id, level, type)\n dispatch_queue(salary, value, name, type)\nTask: Find name from sales_queue where id appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(code, date, value, amount)\n stocking_sites(name, type, level, id)\nTask: Select name from activity_log where level exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, code, id, type)\n sales_queue(value, name, level, type)\nTask: Retrieve id from attribute_groups that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, name, status, type)\n journal_entries(level, code, id, type)\nTask: Retrieve amount from dispatch_queue whose level is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(value, amount, type, date)\n portfolio_index(name, level, date, code)\nTask: Retrieve salary from area_registry with amount above the MAX(value) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS ord\nWHERE amount > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(amount, name, date, value)\n journal_entries(level, type, name, date)\nTask: Find salary from sourcing_list where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(amount, date, id, salary)\n attribute_groups(status, type, name, salary)\nTask: Retrieve code from journal_entries whose type is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, salary, value, id)\n journal_entries(level, date, value, code)\nTask: Select salary from dispatch_queue where value is greater than the average of amount in journal_entries for matching type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE value > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, amount, status, name)\n cost_centers(id, amount, salary, level)\nTask: Select value from dispatch_queue where level exists in cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(level, value, id, status)\n acquisition_log(amount, date, id, code)\nTask: Select code from sales_registry where type exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(type, value, name, level)\n sourcing_list(type, amount, level, status)\nTask: Retrieve value from cost_centers whose status is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, date, id, salary)\n activity_log(name, code, level, value)\nTask: Select name from dispatch_queue that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(level, id, status, salary)\n activity_log(name, value, status, type)\nTask: Find amount from stocking_sites where type appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(type, id, salary, code)\n stock_catalog(name, salary, amount, date)\nTask: Select salary from receivables_log that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(code, status, name, value)\n sales_registry(value, amount, code, id)\nTask: Find name from engagement_log where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, date, name, id)\n cost_centers(type, status, id, code)\nTask: Select amount from acquisition_log where level exists in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(status, id, name, code)\n dispatch_queue(level, salary, type, value)\nTask: Retrieve name from engagement_log with value above the AVG(salary) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE value > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(status, id, amount, salary)\n attribute_groups(name, value, date, salary)\nTask: Find id from dispatch_queue where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, code, name, type)\n stocking_sites(type, code, name, date)\nTask: Select name from attribute_groups where value is greater than the total of value in stocking_sites for matching type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(date, type, status, name)\n receivables_log(amount, salary, code, type)\nTask: Select id from sales_queue where status exists in receivables_log for the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(name, value, amount, code)\n stocking_sites(value, code, type, name)\nTask: Retrieve salary from journal_entries with salary above the SUM(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(amount, code, type, salary)\n stock_catalog(amount, name, salary, value)\nTask: Select value from workforce_data where id exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, amount, code, type)\n sales_queue(level, value, type, amount)\nTask: Find amount from attribute_groups where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(level, salary, value, date)\n activity_log(name, value, status, level)\nTask: Select amount from sales_registry where value is greater than the count of of value in activity_log for matching level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE value > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(amount, id, status, date)\n engagement_log(code, name, type, level)\nTask: Find amount from cost_centers where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(code, status, type, name)\n stocking_sites(name, id, salary, amount)\nTask: Retrieve value from activity_log whose type is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM activity_log AS prod\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(id, salary, type, name)\n workforce_data(value, code, id, level)\nTask: Find name from personnel_registry where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(salary, type, level, name)\n acquisition_log(name, value, type, date)\nTask: Find salary from portfolio_index where amount exceeds the average salary from acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(id, value, type, name)\n portfolio_index(type, level, date, salary)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(name, status, value, id)\n sales_queue(level, salary, status, code)\nTask: Find salary from personnel_registry where status appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(level, status, name, value)\n personnel_registry(amount, value, code, name)\nTask: Find id from sales_registry where status appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(id, status, type, date)\n facility_registry(name, status, salary, date)\nTask: Select name from personnel_registry that have at least one matching row in facility_registry for the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(type, date, id, value)\n acquisition_log(value, salary, amount, date)\nTask: Find name from cost_centers where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(status, level, amount, code)\n facility_registry(amount, id, code, name)\nTask: Select id from cost_centers that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(id, status, salary, type)\n cost_centers(id, level, date, name)\nTask: Select amount from stock_catalog that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(salary, name, amount, date)\n facility_registry(date, status, amount, value)\nTask: Select name from area_registry where id exists in facility_registry for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(date, name, code, id)\n acquisition_log(name, salary, code, type)\nTask: Retrieve amount from workforce_data whose id is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(value, type, salary, name)\n cost_centers(date, amount, code, value)\nTask: Select amount from personnel_registry where amount is greater than the total of amount in cost_centers for matching status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(salary, code, type, id)\n portfolio_index(salary, date, type, id)\nTask: Find code from acquisition_log where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(status, id, date, salary)\n stocking_sites(status, level, name, date)\nTask: Find salary from workforce_data where type appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(salary, name, id, type)\n receivables_log(id, amount, level, salary)\nTask: Select value from workforce_data where value is greater than the count of of amount in receivables_log for matching level.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(amount, type, date, code)\n receivables_log(amount, level, name, id)\nTask: Find amount from cost_centers where value exceeds the minimum amount from receivables_log for the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE value > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(id, type, code, salary)\n dispatch_queue(date, value, id, name)\nTask: Find value from receivables_log where code appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(code, value, type, name)\n receivables_log(value, date, name, id)\nTask: Select code from activity_log where id exists in receivables_log for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(amount, code, salary, date)\n stocking_sites(salary, name, status, code)\nTask: Retrieve id from sales_queue with salary above the SUM(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(date, code, salary, value)\n dispatch_queue(date, status, value, type)\nTask: Retrieve name from activity_log with salary above the SUM(salary) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(name, code, date, salary)\n facility_registry(name, salary, date, status)\nTask: Select value from area_registry where amount is greater than the average of value in facility_registry for matching level.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE amount > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(type, date, name, amount)\n sourcing_list(value, id, date, level)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(type, level, name, value)\n journal_entries(code, name, id, amount)\nTask: Retrieve code from sales_registry with value above the COUNT(value) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(status, date, type, amount)\n activity_log(name, value, date, level)\nTask: Find name from sales_registry where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(code, id, salary, status)\n area_registry(value, id, type, salary)\nTask: Find name from stocking_sites where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(salary, type, name, amount)\n journal_entries(id, value, type, code)\nTask: Find id from sales_queue where amount exceeds the maximum salary from journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(level, name, salary, amount)\n area_registry(level, salary, amount, code)\nTask: Find name from engagement_log where value exceeds the minimum salary from area_registry for the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE value > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(type, name, salary, id)\n portfolio_index(salary, status, code, level)\nTask: Select salary from stock_catalog that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(salary, id, status, amount)\n journal_entries(date, amount, id, salary)\nTask: Find value from sales_queue where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(name, status, value, id)\n sales_queue(level, amount, code, status)\nTask: Find id from sourcing_list where type appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(value, salary, status, name)\n personnel_registry(date, type, code, value)\nTask: Retrieve name from attribute_groups whose code is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(amount, status, salary, level)\n workforce_data(id, amount, type, name)\nTask: Find amount from dispatch_queue where value exceeds the minimum salary from workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(name, type, value, salary)\n dispatch_queue(name, value, amount, level)\nTask: Retrieve amount from workforce_data with amount above the SUM(amount) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(level, code, status, name)\n facility_registry(level, value, amount, status)\nTask: Find id from sales_registry where salary exceeds the minimum amount from facility_registry for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(code, id, value, date)\n workforce_data(code, type, id, date)\nTask: Select value from facility_registry where status exists in workforce_data for the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, value, amount, date)\n sales_queue(id, name, level, date)\nTask: Find value from stocking_sites where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(status, type, amount, id)\n engagement_log(date, id, code, value)\nTask: Find salary from acquisition_log where code appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(level, code, date, amount)\n journal_entries(amount, name, date, type)\nTask: Retrieve id from area_registry whose status is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(value, id, name, salary)\n workforce_data(salary, id, status, code)\nTask: Select value from stocking_sites that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(value, salary, date, code)\n sourcing_list(name, type, amount, id)\nTask: Select name from area_registry that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(code, name, salary, value)\n facility_registry(date, salary, id, code)\nTask: Find amount from area_registry where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(type, name, code, salary)\n workforce_data(salary, amount, type, id)\nTask: Select salary from cost_centers where code exists in workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(status, name, date, amount)\n engagement_log(value, type, level, amount)\nTask: Select name from workforce_data that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(level, id, code, amount)\n sourcing_list(name, amount, level, code)\nTask: Find code from attribute_groups where salary exceeds the average amount from sourcing_list for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(id, status, amount, code)\n journal_entries(id, status, name, amount)\nTask: Retrieve id from activity_log whose status is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(date, salary, id, value)\n portfolio_index(status, id, salary, amount)\nTask: Select code from workforce_data where value is greater than the average of amount in portfolio_index for matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "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}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(level, value, amount, status)\n cost_centers(name, salary, amount, code)\nTask: Select id from sales_queue where amount is greater than the maximum of amount in cost_centers for matching type.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(id, type, code, amount)\n personnel_registry(level, status, id, type)\nTask: Retrieve amount from activity_log whose type is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(date, id, level, status)\n cost_centers(name, status, level, type)\nTask: Find id from acquisition_log where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(type, status, value, date)\n workforce_data(id, salary, amount, code)\nTask: Retrieve value from attribute_groups whose level is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(status, date, code, amount)\n sourcing_list(id, salary, type, value)\nTask: Find amount from sales_registry where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(code, id, value, amount)\n activity_log(salary, level, amount, type)\nTask: Retrieve value from sales_registry whose level is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(date, code, name, amount)\n facility_registry(date, id, amount, code)\nTask: Find name from journal_entries where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(amount, name, value, date)\n dispatch_queue(value, date, code, status)\nTask: Find amount from activity_log where id appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(status, amount, date, name)\n stock_catalog(status, code, id, level)\nTask: Retrieve code from sourcing_list with amount above the AVG(value) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE amount > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(amount, type, salary, status)\n stock_catalog(code, date, status, value)\nTask: Find code from dispatch_queue where id appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(level, type, value, id)\n sourcing_list(type, value, code, date)\nTask: Select salary from stock_catalog where amount is greater than the minimum of amount in sourcing_list for matching level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE amount > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(code, value, status, salary)\n area_registry(code, amount, id, date)\nTask: Find code from engagement_log where code appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(level, value, salary, amount)\n stocking_sites(date, value, id, name)\nTask: Find value from receivables_log where value exceeds the minimum value from stocking_sites for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE value > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(type, value, status, amount)\n receivables_log(date, salary, level, status)\nTask: Find id from attribute_groups where id appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(date, value, level, amount)\n sales_queue(name, status, value, type)\nTask: Select value from stock_catalog where id exists in sales_queue for the same level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(date, id, code, salary)\n dispatch_queue(id, status, type, salary)\nTask: Find code from receivables_log where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(type, status, name, id)\n engagement_log(status, level, date, salary)\nTask: Select code from stocking_sites where value is greater than the maximum of amount in engagement_log for matching id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE value > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, level, amount, status)\n area_registry(code, name, value, level)\nTask: Select name from sourcing_list where amount is greater than the average of amount in area_registry for matching code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(name, code, level, salary)\n attribute_groups(type, status, id, date)\nTask: Find value from journal_entries where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(id, name, type, status)\n personnel_registry(level, salary, date, value)\nTask: Retrieve name from receivables_log with value above the COUNT(amount) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(salary, value, id, amount)\n cost_centers(id, date, level, name)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, type, amount, name)\n acquisition_log(code, id, value, type)\nTask: Find salary from dispatch_queue where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(level, code, id, date)\n sales_queue(value, name, salary, amount)\nTask: Find id from cost_centers where id appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(value, name, date, code)\n sourcing_list(amount, id, type, value)\nTask: Select name from activity_log where salary is greater than the average of amount in sourcing_list for matching code.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(date, id, level, salary)\n sourcing_list(level, code, amount, salary)\nTask: Retrieve name from journal_entries whose code is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(code, amount, id, name)\n portfolio_index(amount, level, code, type)\nTask: Find id from area_registry where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(value, name, code, date)\n stock_catalog(value, type, id, status)\nTask: Find salary from sales_queue where code appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(amount, level, name, salary)\n receivables_log(salary, amount, level, id)\nTask: Find amount from journal_entries where a matching record exists in receivables_log with the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(date, status, level, name)\n portfolio_index(name, date, status, code)\nTask: Find code from sales_queue where value exceeds the count of salary from portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(type, date, amount, code)\n activity_log(name, status, amount, code)\nTask: Retrieve name from stocking_sites with amount above the MAX(amount) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(name, amount, type, code)\n sales_queue(salary, id, amount, level)\nTask: Select code from cost_centers where status exists in sales_queue for the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(amount, level, date, code)\n attribute_groups(salary, name, value, date)\nTask: Select id from journal_entries where id exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(id, amount, name, level)\n portfolio_index(value, id, date, name)\nTask: Find name from area_registry where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(salary, value, name, amount)\n engagement_log(value, salary, type, name)\nTask: Select salary from receivables_log where value is greater than the minimum of value in engagement_log for matching code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE value > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(amount, name, code, date)\n stock_catalog(type, amount, level, salary)\nTask: Retrieve name from receivables_log with value above the COUNT(amount) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(value, type, salary, date)\n workforce_data(level, status, code, date)\nTask: Find code from stock_catalog where level appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(code, level, date, name)\n activity_log(type, salary, date, status)\nTask: Find value from sales_queue where amount exceeds the total salary from activity_log for the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(level, amount, date, salary)\n acquisition_log(code, type, salary, value)\nTask: Select salary from activity_log that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(salary, type, level, amount)\n facility_registry(salary, name, code, value)\nTask: Retrieve name from acquisition_log with salary above the COUNT(salary) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(name, date, type, salary)\n acquisition_log(type, value, date, amount)\nTask: Find value from facility_registry where status appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(status, level, type, name)\n acquisition_log(date, id, amount, name)\nTask: Select amount from engagement_log where type exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(amount, code, name, type)\n acquisition_log(id, name, value, salary)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(type, amount, date, value)\n acquisition_log(type, value, code, date)\nTask: Retrieve amount from facility_registry whose code is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(id, name, value, code)\n sales_registry(level, code, name, value)\nTask: Retrieve amount from sourcing_list with amount above the AVG(value) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(level, code, type, date)\n cost_centers(salary, status, type, name)\nTask: Select salary from engagement_log that have at least one matching row in cost_centers for the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(salary, amount, status, date)\n receivables_log(id, amount, value, date)\nTask: Select amount from workforce_data where amount is greater than the total of amount in receivables_log for matching level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(salary, date, type, code)\n facility_registry(name, status, id, type)\nTask: Select amount from sales_queue that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(id, amount, date, code)\n area_registry(id, amount, salary, type)\nTask: Retrieve code from sourcing_list with salary above the MIN(salary) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(id, name, code, level)\n sales_queue(type, id, amount, status)\nTask: Retrieve name from area_registry with salary above the AVG(value) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS emp\nWHERE salary > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, value, salary, status)\n journal_entries(salary, value, name, date)\nTask: Find salary from attribute_groups where salary exceeds the total value from journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "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}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(status, level, amount, id)\n facility_registry(type, name, status, amount)\nTask: Find salary from acquisition_log where level appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(value, id, name, amount)\n area_registry(type, id, value, date)\nTask: Select name from sales_queue that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, code, level, status)\n acquisition_log(date, level, salary, type)\nTask: Select amount from sourcing_list that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(date, level, name, salary)\n engagement_log(amount, salary, type, value)\nTask: Find id from stocking_sites where code appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(name, code, value, status)\n attribute_groups(name, status, code, id)\nTask: Select amount from engagement_log that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(status, code, value, amount)\n portfolio_index(value, date, amount, type)\nTask: Retrieve value from journal_entries with amount above the COUNT(salary) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "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}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(code, status, date, level)\n journal_entries(level, type, status, salary)\nTask: Find name from stocking_sites where type appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(salary, type, id, date)\n facility_registry(code, amount, value, level)\nTask: Find id from sales_queue where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(date, code, status, id)\n workforce_data(type, status, date, id)\nTask: Retrieve salary from facility_registry with amount above the COUNT(value) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(code, amount, level, date)\n workforce_data(amount, status, salary, value)\nTask: Select id from stocking_sites that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(type, id, amount, value)\n sales_registry(status, level, salary, amount)\nTask: Select value from engagement_log that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(amount, level, name, value)\n sourcing_list(level, salary, status, name)\nTask: Find amount from area_registry where amount exceeds the total amount from sourcing_list for the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE amount > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, name, code, id)\n portfolio_index(code, salary, amount, level)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(salary, value, code, type)\n sales_queue(level, value, id, amount)\nTask: Retrieve name from journal_entries with salary above the COUNT(salary) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(code, salary, level, name)\n engagement_log(id, type, level, code)\nTask: Find amount from sales_queue where level appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(value, level, id, name)\n facility_registry(type, code, id, name)\nTask: Retrieve name from personnel_registry with salary above the MAX(value) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE salary > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(level, id, code, date)\n facility_registry(id, date, level, code)\nTask: Select name from cost_centers where status exists in facility_registry for the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(name, date, type, salary)\n stock_catalog(id, level, amount, salary)\nTask: Select name from sales_queue where id exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, name, amount, type)\n sales_queue(code, amount, name, level)\nTask: Find salary from dispatch_queue where salary exceeds the average salary from sales_queue for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(id, status, amount, salary)\n area_registry(status, amount, value, level)\nTask: Select salary from stock_catalog where id exists in area_registry for the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS emp\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(level, code, status, date)\n stock_catalog(level, date, code, status)\nTask: Find code from receivables_log where id appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(code, type, level, value)\n facility_registry(type, name, status, code)\nTask: Select id from receivables_log where amount is greater than the maximum of value in facility_registry for matching status.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE amount > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(salary, name, status, code)\n cost_centers(code, salary, value, type)\nTask: Find salary from receivables_log where value exceeds the count of value from cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE value > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(code, type, value, name)\n attribute_groups(level, id, date, status)\nTask: Select name from journal_entries where level exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, type, amount, value)\n activity_log(type, name, salary, code)\nTask: Select salary from personnel_registry that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(amount, id, level, code)\n portfolio_index(type, name, salary, date)\nTask: Select id from cost_centers that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(type, id, code, salary)\n personnel_registry(salary, value, status, id)\nTask: Select id from cost_centers where code exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(salary, id, status, level)\n activity_log(level, date, type, value)\nTask: Retrieve id from sourcing_list whose code is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS empl\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(type, code, value, level)\n sales_queue(salary, value, date, id)\nTask: Retrieve code from receivables_log whose level is found in sales_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(code, amount, status, name)\n sourcing_list(date, amount, status, code)\nTask: Retrieve id from sales_registry with value above the MIN(value) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE value > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(date, code, salary, amount)\n cost_centers(date, amount, level, id)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(salary, status, id, value)\n area_registry(id, name, level, code)\nTask: Find value from journal_entries where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(salary, level, id, type)\n engagement_log(salary, value, amount, type)\nTask: Retrieve value from area_registry with salary above the AVG(salary) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(name, value, status, date)\n sales_queue(amount, level, id, salary)\nTask: Retrieve name from activity_log whose status is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(level, name, status, type)\n area_registry(date, status, id, code)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(value, code, id, status)\n journal_entries(type, name, level, date)\nTask: Retrieve name from attribute_groups whose level is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(amount, status, code, value)\n stocking_sites(name, status, level, amount)\nTask: Select code from activity_log where salary is greater than the minimum of amount in stocking_sites for matching code.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(id, code, amount, salary)\n attribute_groups(amount, value, type, name)\nTask: Find amount from journal_entries where salary exceeds the count of amount from attribute_groups for the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE salary > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(code, id, salary, amount)\n dispatch_queue(type, level, id, name)\nTask: Retrieve code from area_registry whose status is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(amount, id, code, name)\n sales_registry(value, code, level, status)\nTask: Select salary from journal_entries that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(amount, salary, date, code)\n attribute_groups(type, level, value, name)\nTask: Select code from facility_registry that have at least one matching row in attribute_groups for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(code, status, id, value)\n personnel_registry(id, value, date, type)\nTask: Retrieve id from stock_catalog whose code is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(amount, date, id, salary)\n dispatch_queue(salary, value, id, status)\nTask: Find code from activity_log where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(id, code, date, status)\n stocking_sites(id, value, amount, code)\nTask: Retrieve name from journal_entries whose type is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(code, value, type, date)\n area_registry(level, status, id, name)\nTask: Select amount from sales_registry where value is greater than the minimum of amount in area_registry for matching status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE value > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(amount, level, salary, id)\n attribute_groups(amount, value, status, date)\nTask: Select salary from facility_registry where level exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(name, level, salary, amount)\n stock_catalog(code, status, id, level)\nTask: Retrieve amount from activity_log that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(salary, id, name, status)\n portfolio_index(name, amount, id, date)\nTask: Find id from receivables_log where amount exceeds the count of amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(id, salary, name, value)\n sales_registry(code, value, status, type)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(id, status, level, amount)\n sales_queue(status, name, salary, date)\nTask: Find id from facility_registry where type appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, level, type, salary)\n engagement_log(amount, id, type, salary)\nTask: Retrieve id from dispatch_queue whose level is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(name, date, value, amount)\n personnel_registry(id, salary, type, level)\nTask: Retrieve amount from journal_entries whose type is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(level, id, status, date)\n receivables_log(status, amount, date, code)\nTask: Retrieve name from engagement_log whose id is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(type, status, level, salary)\n stock_catalog(type, name, amount, salary)\nTask: Retrieve id from engagement_log whose id is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(code, salary, type, value)\n attribute_groups(status, code, name, level)\nTask: Select name from activity_log where level exists in attribute_groups for the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(level, amount, salary, name)\n stocking_sites(salary, code, status, name)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(date, amount, level, salary)\n personnel_registry(type, id, amount, date)\nTask: Select value from sales_queue where status exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(value, amount, level, status)\n personnel_registry(salary, status, code, amount)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(type, salary, level, value)\n sales_registry(salary, id, date, code)\nTask: Retrieve name from stocking_sites with value above the AVG(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS usr\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(type, salary, value, id)\n cost_centers(name, value, status, level)\nTask: Select code from area_registry where status exists in cost_centers for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(code, value, name, level)\n personnel_registry(code, salary, value, level)\nTask: Find amount from attribute_groups where type appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(name, amount, code, level)\n stock_catalog(amount, id, salary, code)\nTask: Find value from acquisition_log where type appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(type, date, name, status)\n activity_log(id, type, code, name)\nTask: Retrieve amount from stocking_sites with value above the SUM(amount) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE value > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(amount, name, id, date)\n receivables_log(salary, name, id, code)\nTask: Retrieve id from journal_entries with salary above the COUNT(salary) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(date, salary, amount, id)\n attribute_groups(type, code, date, level)\nTask: Select name from portfolio_index that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(salary, code, value, date)\n stocking_sites(level, code, id, name)\nTask: Find amount from facility_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(status, level, value, date)\n portfolio_index(code, status, amount, salary)\nTask: Retrieve code from sourcing_list with amount above the MIN(salary) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE amount > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(date, id, salary, amount)\n attribute_groups(date, salary, code, amount)\nTask: Retrieve name from personnel_registry whose level is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, level, status, type)\n stock_catalog(amount, code, value, status)\nTask: Find value from dispatch_queue where amount exceeds the average amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, amount, name, value)\n workforce_data(level, name, id, code)\nTask: Retrieve amount from sourcing_list with value above the AVG(amount) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(code, name, salary, type)\n sourcing_list(level, code, value, id)\nTask: Find salary from journal_entries where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(code, status, name, salary)\n attribute_groups(level, status, value, salary)\nTask: Find value from acquisition_log where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(name, salary, value, level)\n personnel_registry(level, date, code, status)\nTask: Retrieve salary from journal_entries that have at least one corresponding entry in personnel_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, level, date, status)\n sales_registry(salary, value, status, level)\nTask: Find salary from attribute_groups where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(level, type, salary, status)\n journal_entries(value, code, level, name)\nTask: Select name from stocking_sites that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(level, code, date, amount)\n stocking_sites(status, amount, value, name)\nTask: Select salary from personnel_registry where salary is greater than the minimum of salary in stocking_sites for matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(level, salary, id, code)\n sourcing_list(code, date, level, type)\nTask: Find amount from receivables_log where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(value, type, date, code)\n acquisition_log(salary, type, value, date)\nTask: Find salary from sales_queue where code appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(status, value, name, date)\n area_registry(level, value, code, name)\nTask: Find amount from sales_queue where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(type, salary, value, date)\n sales_queue(date, level, status, salary)\nTask: Find salary from engagement_log where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(type, status, id, date)\n acquisition_log(code, status, name, level)\nTask: Select name from journal_entries where status exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(salary, type, id, level)\n cost_centers(amount, status, id, name)\nTask: Find id from acquisition_log where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, name, type, status)\n engagement_log(status, amount, value, type)\nTask: Find name from stock_catalog where amount exceeds the minimum salary from engagement_log for the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(salary, id, amount, name)\n sales_queue(id, name, salary, level)\nTask: Find name from workforce_data where amount exceeds the maximum value from sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS inv\nWHERE amount > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(salary, code, status, name)\n stock_catalog(code, value, amount, status)\nTask: Find code from facility_registry where id appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(type, date, id, value)\n area_registry(amount, status, id, level)\nTask: Find value from cost_centers where type appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(level, type, id, value)\n engagement_log(status, value, salary, type)\nTask: Retrieve amount from stock_catalog whose code is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(status, salary, value, amount)\n stocking_sites(id, date, value, level)\nTask: Select code from attribute_groups that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(value, code, type, date)\n dispatch_queue(id, level, date, amount)\nTask: Find amount from attribute_groups where level appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(amount, date, id, status)\n workforce_data(type, amount, level, id)\nTask: Select value from activity_log where value is greater than the maximum of amount in workforce_data for matching level.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(date, value, name, status)\n attribute_groups(amount, salary, date, value)\nTask: Select value from engagement_log that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(amount, type, salary, id)\n dispatch_queue(amount, type, name, value)\nTask: Find id from sales_registry where salary exceeds the count of value from dispatch_queue for the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(id, date, code, amount)\n personnel_registry(value, level, salary, name)\nTask: Find name from sales_queue where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(name, code, id, level)\n journal_entries(code, status, salary, value)\nTask: Retrieve code from stock_catalog whose code is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(amount, salary, status, value)\n sales_queue(date, type, code, id)\nTask: Retrieve name from activity_log that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(value, code, level, name)\n receivables_log(type, name, code, value)\nTask: Find value from workforce_data where amount exceeds the minimum value from receivables_log for the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE amount > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(code, level, amount, status)\n workforce_data(date, name, salary, level)\nTask: Retrieve code from sales_queue whose level is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, date, level, code)\n stocking_sites(level, name, type, amount)\nTask: Retrieve value from stock_catalog whose status is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, type, code, salary)\n portfolio_index(date, name, status, id)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, level, amount, type)\n sales_queue(type, value, status, code)\nTask: Select salary from personnel_registry where salary is greater than the minimum of amount in sales_queue for matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(status, level, type, name)\n cost_centers(status, name, salary, type)\nTask: Select name from stock_catalog where type exists in cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(status, date, type, salary)\n personnel_registry(status, type, id, salary)\nTask: Find code from area_registry where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(status, level, code, salary)\n personnel_registry(value, status, type, date)\nTask: Retrieve id from receivables_log whose status is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(id, salary, status, code)\n cost_centers(type, id, code, salary)\nTask: Find amount from stock_catalog where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(status, date, salary, code)\n cost_centers(type, code, value, id)\nTask: Select name from activity_log that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(date, type, status, salary)\n stocking_sites(amount, date, salary, status)\nTask: Find code from sourcing_list where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(level, date, type, status)\n workforce_data(level, code, id, date)\nTask: Find id from sales_registry where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(id, type, status, amount)\n journal_entries(code, amount, type, status)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, date, level, name)\n sales_registry(date, level, name, value)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(type, amount, date, salary)\n facility_registry(salary, status, code, date)\nTask: Retrieve code from workforce_data whose status is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(name, id, level, amount)\n attribute_groups(type, name, date, amount)\nTask: Retrieve value from sales_queue with amount above the SUM(salary) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, status, date, type)\n journal_entries(id, amount, name, value)\nTask: Select name from dispatch_queue that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(name, id, amount, status)\n personnel_registry(level, date, code, name)\nTask: Find code from workforce_data where id appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM workforce_data AS dept\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(value, status, amount, name)\n sales_queue(type, salary, date, level)\nTask: Find value from attribute_groups where id appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(value, salary, name, code)\n sales_registry(code, value, type, salary)\nTask: Retrieve amount from activity_log that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(date, type, amount, name)\n sales_registry(date, level, code, value)\nTask: Select code from stocking_sites that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(name, type, amount, value)\n attribute_groups(status, level, name, id)\nTask: Select id from stocking_sites where id exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(type, id, level, amount)\n cost_centers(level, code, salary, value)\nTask: Retrieve name from acquisition_log with salary above the SUM(amount) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(value, level, code, date)\n attribute_groups(name, code, amount, salary)\nTask: Retrieve name from stocking_sites with amount above the COUNT(amount) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(date, name, type, code)\n workforce_data(amount, level, name, status)\nTask: Find name from stocking_sites where salary exceeds the total value from workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE salary > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(id, status, date, code)\n sourcing_list(code, id, date, name)\nTask: Find salary from activity_log where value exceeds the minimum value from sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE value > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(level, name, status, salary)\n stocking_sites(type, status, date, code)\nTask: Select code from journal_entries where value is greater than the minimum of value in stocking_sites for matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE value > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(date, status, level, type)\n dispatch_queue(date, name, salary, id)\nTask: Find id from engagement_log where code appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(id, date, type, name)\n dispatch_queue(salary, id, status, code)\nTask: Find salary from stock_catalog where level appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(amount, date, code, type)\n portfolio_index(code, type, status, date)\nTask: Select value from engagement_log where salary is greater than the average of value in portfolio_index for matching type.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE salary > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, date, value, type)\n acquisition_log(salary, name, amount, level)\nTask: Retrieve amount from engagement_log whose type is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(date, level, name, value)\n facility_registry(code, id, level, type)\nTask: Select amount from receivables_log where type exists in facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(level, amount, status, salary)\n area_registry(date, amount, type, salary)\nTask: Find amount from attribute_groups where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(level, id, type, amount)\n receivables_log(value, status, date, level)\nTask: Find amount from journal_entries where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(code, id, type, value)\n personnel_registry(date, salary, level, value)\nTask: Select salary from cost_centers where type exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS usr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(date, code, amount, type)\n area_registry(type, value, amount, salary)\nTask: Select name from portfolio_index where salary is greater than the count of of salary in area_registry for matching code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(date, value, id, level)\n facility_registry(status, id, code, amount)\nTask: Find value from personnel_registry where value exceeds the maximum salary from facility_registry for the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE value > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "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": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, amount, salary, name)\n cost_centers(level, type, value, name)\nTask: Select amount from stock_catalog where code exists in cost_centers for the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(id, date, salary, code)\n stocking_sites(name, code, date, salary)\nTask: Retrieve id from portfolio_index whose status is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(value, salary, type, name)\n acquisition_log(value, code, amount, id)\nTask: Find salary from attribute_groups where code appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(value, name, date, amount)\n acquisition_log(code, value, id, date)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(status, level, type, salary)\n stocking_sites(date, code, name, salary)\nTask: Select salary from activity_log where code exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(name, type, code, level)\n sourcing_list(level, name, date, type)\nTask: Find salary from workforce_data where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(value, salary, name, id)\n sourcing_list(date, code, type, name)\nTask: Retrieve value from receivables_log whose id is found in sourcing_list rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(type, code, level, salary)\n dispatch_queue(type, salary, name, id)\nTask: Select id from cost_centers where type exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(date, value, level, salary)\n portfolio_index(type, status, code, name)\nTask: Select salary from dispatch_queue where type exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(type, name, code, id)\n portfolio_index(id, date, name, type)\nTask: Retrieve code from attribute_groups with amount above the COUNT(salary) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(value, amount, name, level)\n personnel_registry(level, salary, status, amount)\nTask: Retrieve value from area_registry with salary above the COUNT(salary) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(level, amount, value, date)\n attribute_groups(value, name, date, status)\nTask: Select value from workforce_data where salary is greater than the minimum of salary in attribute_groups for matching level.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(date, type, status, code)\n attribute_groups(amount, level, salary, id)\nTask: Retrieve amount from personnel_registry that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(status, name, type, amount)\n sales_registry(level, date, amount, status)\nTask: Find code from sourcing_list where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(id, level, date, value)\n area_registry(amount, status, value, salary)\nTask: Select code from sourcing_list that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(id, amount, level, date)\n receivables_log(value, id, type, salary)\nTask: Select name from workforce_data where amount is greater than the average of value in receivables_log for matching type.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(date, salary, name, code)\n facility_registry(id, amount, code, salary)\nTask: Retrieve id from receivables_log whose status is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(type, level, status, code)\n area_registry(salary, amount, value, code)\nTask: Find id from receivables_log where value exceeds the count of value from area_registry for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS dept\nWHERE value > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(type, code, amount, status)\n workforce_data(level, name, type, code)\nTask: Find name from activity_log where level appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(status, id, level, type)\n engagement_log(code, status, amount, date)\nTask: Select name from journal_entries where amount is greater than the total of salary in engagement_log for matching type.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(id, date, type, value)\n acquisition_log(type, name, status, value)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(code, id, type, status)\n dispatch_queue(status, value, id, salary)\nTask: Find id from journal_entries where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(status, value, date, salary)\n cost_centers(value, type, code, salary)\nTask: Find name from facility_registry where code appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(date, type, value, amount)\n facility_registry(level, value, id, amount)\nTask: Select value from portfolio_index where code exists in facility_registry for the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(name, status, id, salary)\n cost_centers(type, value, id, date)\nTask: Retrieve value from sourcing_list whose id is found in cost_centers rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(level, status, id, type)\n personnel_registry(value, id, level, amount)\nTask: Find amount from activity_log where status appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(id, value, amount, type)\n stock_catalog(amount, level, type, value)\nTask: Select code from facility_registry that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(id, code, type, salary)\n stock_catalog(date, name, code, salary)\nTask: Find name from personnel_registry where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(id, code, salary, date)\n sales_registry(id, status, amount, type)\nTask: Find code from engagement_log where type appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM engagement_log AS emp\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(salary, id, status, code)\n stock_catalog(date, value, status, salary)\nTask: Find value from stocking_sites where status appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(level, name, value, date)\n portfolio_index(salary, value, date, name)\nTask: Select salary from receivables_log that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(code, salary, level, name)\n attribute_groups(salary, date, status, level)\nTask: Select value from facility_registry where amount is greater than the count of of value in attribute_groups for matching id.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(status, id, date, level)\n area_registry(type, status, amount, salary)\nTask: Find name from journal_entries where id appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(code, status, date, type)\n acquisition_log(value, name, amount, code)\nTask: Retrieve name from facility_registry with value above the MIN(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE value > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(code, type, id, status)\n journal_entries(level, name, type, value)\nTask: Select salary from engagement_log where amount is greater than the average of value in journal_entries for matching type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE amount > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(type, amount, status, level)\n attribute_groups(level, status, code, salary)\nTask: Select id from acquisition_log where amount is greater than the average of value in attribute_groups for matching id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(type, salary, amount, code)\n facility_registry(amount, status, name, id)\nTask: Find code from sales_registry where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(status, type, code, name)\n attribute_groups(date, level, code, amount)\nTask: Find value from sales_registry where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(date, id, amount, type)\n area_registry(salary, value, amount, id)\nTask: Find id from receivables_log where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(level, date, type, amount)\n cost_centers(code, type, salary, status)\nTask: Find name from journal_entries where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(date, amount, level, code)\n receivables_log(value, code, id, amount)\nTask: Find name from engagement_log where a matching record exists in receivables_log with the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(salary, level, id, name)\n personnel_registry(type, date, value, salary)\nTask: Find amount from workforce_data where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(amount, status, name, code)\n sourcing_list(status, amount, date, id)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, type, status, id)\n journal_entries(amount, date, name, status)\nTask: Find id from acquisition_log where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(value, amount, status, name)\n journal_entries(id, amount, level, name)\nTask: Find amount from activity_log where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(salary, value, date, status)\n workforce_data(code, status, value, date)\nTask: Select name from receivables_log where salary is greater than the total of salary in workforce_data for matching code.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(amount, status, date, salary)\n stock_catalog(date, level, value, code)\nTask: Select name from activity_log where type exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(salary, name, code, value)\n facility_registry(salary, level, id, amount)\nTask: Select name from stock_catalog that have at least one matching row in facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(date, id, salary, amount)\n portfolio_index(code, name, salary, type)\nTask: Find name from workforce_data where level appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, date, name, id)\n stocking_sites(value, id, code, status)\nTask: Retrieve amount from stock_catalog with value above the SUM(value) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(code, value, salary, amount)\n stock_catalog(status, type, amount, code)\nTask: Find name from workforce_data where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(id, type, code, level)\n receivables_log(code, value, id, date)\nTask: Select name from personnel_registry where value is greater than the minimum of amount in receivables_log for matching code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, id, value, type)\n sales_registry(date, value, status, code)\nTask: Select id from attribute_groups where code exists in sales_registry for the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(amount, type, value, status)\n sourcing_list(name, status, type, value)\nTask: Select value from personnel_registry where type exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(status, salary, amount, id)\n workforce_data(value, type, name, code)\nTask: Select id from personnel_registry where id exists in workforce_data for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(date, amount, type, id)\n receivables_log(code, name, status, id)\nTask: Select salary from acquisition_log where code exists in receivables_log for the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(name, date, status, type)\n facility_registry(type, value, status, code)\nTask: Select code from dispatch_queue where code exists in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(salary, status, date, id)\n workforce_data(value, type, amount, status)\nTask: Find value from sales_queue where type appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(type, id, status, value)\n facility_registry(id, level, type, amount)\nTask: Find salary from receivables_log where amount exceeds the maximum value from facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE amount > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(id, code, status, amount)\n facility_registry(status, salary, type, level)\nTask: Find id from area_registry where amount exceeds the minimum value from facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE amount > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(salary, code, date, status)\n workforce_data(salary, date, type, amount)\nTask: Select id from journal_entries that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(amount, value, status, salary)\n facility_registry(value, status, salary, amount)\nTask: Retrieve amount from sales_registry with salary above the MAX(value) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE salary > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(value, code, name, level)\n attribute_groups(date, level, status, amount)\nTask: Find value from facility_registry where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(type, amount, status, date)\n journal_entries(amount, date, type, salary)\nTask: Select name from acquisition_log where amount is greater than the maximum of salary in journal_entries for matching id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE amount > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(status, type, salary, code)\n facility_registry(code, value, salary, status)\nTask: Find salary from cost_centers where value exceeds the average salary from facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(type, level, status, id)\n sourcing_list(id, value, type, status)\nTask: Retrieve code from area_registry whose id is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(code, level, amount, type)\n attribute_groups(salary, type, code, name)\nTask: Find value from engagement_log where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(level, id, type, status)\n stocking_sites(name, value, date, amount)\nTask: Select id from area_registry that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(id, date, level, name)\n personnel_registry(code, date, amount, name)\nTask: Select amount from engagement_log that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(level, value, id, date)\n engagement_log(value, name, code, amount)\nTask: Select id from sales_registry where status exists in engagement_log for the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(value, type, salary, name)\n activity_log(level, id, code, amount)\nTask: Find amount from personnel_registry where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(code, amount, type, salary)\n workforce_data(value, salary, date, name)\nTask: Select id from stocking_sites where amount is greater than the minimum of value in workforce_data for matching status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE amount > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(date, status, type, name)\n cost_centers(name, status, id, value)\nTask: Find id from sourcing_list where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(code, date, status, amount)\n facility_registry(name, code, id, amount)\nTask: Select amount from area_registry where id exists in facility_registry for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(status, salary, code, id)\n engagement_log(value, code, level, amount)\nTask: Find code from acquisition_log where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(level, id, date, amount)\n acquisition_log(type, salary, value, code)\nTask: Retrieve name from stocking_sites whose code is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(type, code, value, amount)\n portfolio_index(date, name, salary, amount)\nTask: Retrieve id from area_registry that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(salary, name, status, code)\n engagement_log(amount, value, status, code)\nTask: Select salary from portfolio_index where value is greater than the total of value in engagement_log for matching code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE value > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(code, id, level, type)\n stock_catalog(id, level, date, name)\nTask: Find code from facility_registry where a matching record exists in stock_catalog with the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(code, level, name, id)\n attribute_groups(salary, amount, status, type)\nTask: Retrieve amount from workforce_data with value above the MIN(amount) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE value > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(id, date, code, type)\n activity_log(date, amount, level, status)\nTask: Retrieve salary from portfolio_index with value above the MAX(salary) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE value > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(type, status, salary, code)\n stocking_sites(level, date, amount, type)\nTask: Find amount from cost_centers where salary exceeds the count of value from stocking_sites for the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, code, name, level)\n stocking_sites(value, amount, status, salary)\nTask: Find code from dispatch_queue where amount exceeds the count of value from stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(id, level, code, date)\n cost_centers(status, value, amount, type)\nTask: Retrieve code from facility_registry whose id is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS inv\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(value, type, salary, id)\n dispatch_queue(name, code, type, amount)\nTask: Find code from receivables_log where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(name, code, id, value)\n acquisition_log(amount, name, id, date)\nTask: Retrieve id from sourcing_list whose status is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(status, id, code, value)\n journal_entries(amount, value, date, salary)\nTask: Select value from sales_queue that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(code, value, date, type)\n journal_entries(code, name, id, status)\nTask: Select amount from activity_log that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(level, date, name, code)\n receivables_log(id, code, salary, type)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, amount, type, status)\n sourcing_list(value, level, id, code)\nTask: Find code from dispatch_queue where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(name, value, amount, id)\n workforce_data(id, value, code, salary)\nTask: Select name from sales_queue where id exists in workforce_data for the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(code, id, level, amount)\n receivables_log(name, salary, date, status)\nTask: Select value from sales_queue where id exists in receivables_log for the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(salary, status, id, date)\n sales_queue(salary, date, amount, type)\nTask: Select amount from journal_entries that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(status, amount, name, id)\n receivables_log(name, level, salary, id)\nTask: Find salary from sales_queue where amount exceeds the total amount from receivables_log for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(amount, name, date, level)\n facility_registry(id, date, status, salary)\nTask: Select code from cost_centers where code exists in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(date, id, type, level)\n facility_registry(type, amount, status, id)\nTask: Select amount from area_registry that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(date, value, type, amount)\n journal_entries(salary, amount, code, name)\nTask: Find code from portfolio_index where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, name, status, value)\n acquisition_log(name, date, value, type)\nTask: Retrieve salary from stocking_sites with salary above the MAX(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(level, status, name, value)\n attribute_groups(type, date, name, id)\nTask: Retrieve id from stock_catalog with salary above the AVG(amount) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, date, level, name)\n journal_entries(id, salary, date, code)\nTask: Select code from portfolio_index where level exists in journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(type, id, code, amount)\n portfolio_index(date, value, name, code)\nTask: Find value from receivables_log where salary exceeds the minimum salary from portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, type, code, status)\n cost_centers(status, code, value, date)\nTask: Select id from sourcing_list that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(salary, value, level, name)\n stocking_sites(name, level, code, id)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(type, date, code, amount)\n workforce_data(id, amount, type, code)\nTask: Retrieve name from sales_queue that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(date, value, salary, name)\n sales_queue(value, level, amount, status)\nTask: Select salary from area_registry where code exists in sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(value, date, type, status)\n portfolio_index(salary, level, date, name)\nTask: Retrieve name from area_registry that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(status, code, name, level)\n personnel_registry(value, amount, id, code)\nTask: Find amount from activity_log where code appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(date, id, value, code)\n portfolio_index(id, status, name, amount)\nTask: Find id from acquisition_log where value exceeds the minimum value from portfolio_index for the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE value > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(status, level, type, salary)\n sales_registry(value, amount, level, salary)\nTask: Select salary from workforce_data where salary is greater than the count of of amount in sales_registry for matching id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(date, type, salary, level)\n activity_log(salary, id, status, code)\nTask: Find id from acquisition_log where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(salary, status, amount, value)\n acquisition_log(value, amount, date, id)\nTask: Select salary from cost_centers where amount is greater than the average of value in acquisition_log for matching level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS emp\nWHERE amount > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(id, date, salary, value)\n dispatch_queue(date, status, id, level)\nTask: Find code from stock_catalog where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(type, name, code, id)\n stocking_sites(type, amount, id, value)\nTask: Retrieve id from acquisition_log with salary above the MAX(amount) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(type, name, id, salary)\n sales_registry(status, id, amount, salary)\nTask: Select name from facility_registry where code exists in sales_registry for the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(amount, value, code, id)\n personnel_registry(id, status, name, amount)\nTask: Select amount from receivables_log where amount is greater than the maximum of amount in personnel_registry for matching code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(status, salary, type, amount)\n facility_registry(level, type, date, value)\nTask: Retrieve name from activity_log whose type is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(date, name, level, type)\n stocking_sites(type, salary, value, name)\nTask: Retrieve id from personnel_registry with salary above the COUNT(value) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(id, level, status, salary)\n sales_queue(salary, code, amount, status)\nTask: Retrieve value from workforce_data with amount above the MAX(value) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE amount > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(level, id, code, date)\n dispatch_queue(value, name, id, status)\nTask: Find value from stock_catalog where level appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(status, id, amount, code)\n area_registry(type, code, status, date)\nTask: Find amount from portfolio_index where type appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(id, code, level, status)\n attribute_groups(type, code, name, amount)\nTask: Select salary from journal_entries where value is greater than the count of of value in attribute_groups for matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE value > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(status, code, level, date)\n sourcing_list(name, type, salary, code)\nTask: Retrieve name from area_registry that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(id, status, date, value)\n cost_centers(type, name, amount, salary)\nTask: Select amount from stock_catalog where salary is greater than the average of value in cost_centers for matching code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS empl\nWHERE salary > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(name, amount, code, date)\n stock_catalog(status, name, value, salary)\nTask: Select value from sourcing_list that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(type, level, name, salary)\n facility_registry(level, name, amount, value)\nTask: Find id from acquisition_log where id appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(value, id, type, code)\n stock_catalog(amount, code, id, level)\nTask: Find value from facility_registry where status appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(status, level, value, salary)\n receivables_log(date, type, amount, value)\nTask: Select name from sales_queue where id exists in receivables_log for the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(salary, id, amount, type)\n engagement_log(id, type, code, amount)\nTask: Retrieve amount from cost_centers with amount above the MAX(salary) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(amount, salary, status, date)\n sourcing_list(amount, value, salary, code)\nTask: Select id from sales_queue that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, salary, level, name)\n portfolio_index(level, value, salary, status)\nTask: Find salary from acquisition_log where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(code, id, level, type)\n sales_queue(date, code, id, name)\nTask: Retrieve code from portfolio_index whose level is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(status, amount, salary, value)\n attribute_groups(name, date, value, level)\nTask: Select amount from activity_log where code exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(name, id, date, type)\n personnel_registry(code, date, value, level)\nTask: Find salary from dispatch_queue where value exceeds the average value from personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE value > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, value, name, level)\n portfolio_index(value, salary, name, type)\nTask: Retrieve salary from cost_centers with salary above the MIN(amount) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE salary > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(code, salary, type, amount)\n dispatch_queue(code, name, value, id)\nTask: Select amount from sales_registry where code exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(salary, value, name, type)\n personnel_registry(code, level, salary, name)\nTask: Retrieve id from portfolio_index whose level is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(name, status, type, value)\n activity_log(level, amount, name, status)\nTask: Find amount from journal_entries where code appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(value, type, amount, status)\n sales_queue(level, value, amount, date)\nTask: Select amount from stock_catalog that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(date, id, code, level)\n attribute_groups(value, name, code, level)\nTask: Select id from personnel_registry where value is greater than the count of of value in attribute_groups for matching type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE value > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(name, salary, amount, code)\n sales_queue(amount, type, status, value)\nTask: Select value from personnel_registry where salary is greater than the count of of amount in sales_queue for matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(type, id, date, salary)\n activity_log(level, salary, type, amount)\nTask: Find name from dispatch_queue where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(code, level, salary, amount)\n sourcing_list(value, date, status, code)\nTask: Retrieve salary from journal_entries with salary above the MIN(value) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE salary > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(level, code, status, type)\n acquisition_log(status, date, id, type)\nTask: Select value from portfolio_index where amount is greater than the count of of value in acquisition_log for matching id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, salary, level, type)\n receivables_log(type, salary, id, level)\nTask: Select id from personnel_registry where id exists in receivables_log for the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(date, type, amount, code)\n sourcing_list(type, code, salary, name)\nTask: Find name from engagement_log where type appears in sourcing_list entries with matching type.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(type, date, level, name)\n workforce_data(type, status, value, level)\nTask: Find name from journal_entries where id appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(value, amount, type, level)\n stocking_sites(status, code, salary, name)\nTask: Find name from cost_centers where code appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(amount, date, salary, name)\n facility_registry(amount, level, type, salary)\nTask: Retrieve name from personnel_registry with amount above the COUNT(amount) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(name, status, id, amount)\n stocking_sites(amount, type, id, code)\nTask: Find salary from stock_catalog where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(level, amount, id, salary)\n personnel_registry(status, value, date, id)\nTask: Retrieve name from portfolio_index whose id is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(id, amount, salary, value)\n receivables_log(code, value, level, id)\nTask: Select value from acquisition_log that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(name, code, value, id)\n sales_registry(id, date, level, type)\nTask: Retrieve name from workforce_data whose id is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(level, type, date, salary)\n stocking_sites(salary, id, name, type)\nTask: Select salary from stock_catalog where code exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(type, amount, status, value)\n stocking_sites(level, id, status, code)\nTask: Find id from stock_catalog where level appears in stocking_sites entries with matching type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(salary, name, value, date)\n stock_catalog(salary, status, amount, value)\nTask: Retrieve id from sales_queue with amount above the COUNT(value) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(salary, id, value, date)\n workforce_data(salary, name, code, id)\nTask: Find name from cost_centers where type appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT name FROM cost_centers AS emp\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(value, name, type, salary)\n acquisition_log(type, value, amount, status)\nTask: Select salary from workforce_data that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(name, status, amount, salary)\n engagement_log(amount, salary, code, value)\nTask: Find amount from acquisition_log where id appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(status, type, date, id)\n acquisition_log(salary, status, code, level)\nTask: Select salary from attribute_groups where amount is greater than the count of of value in acquisition_log for matching status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, code, id, date)\n portfolio_index(status, name, value, code)\nTask: Retrieve amount from dispatch_queue with salary above the MIN(salary) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "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}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(date, status, level, type)\n workforce_data(id, type, amount, code)\nTask: Find amount from engagement_log where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(type, date, name, amount)\n workforce_data(value, name, status, salary)\nTask: Find code from journal_entries where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(status, value, code, salary)\n area_registry(id, salary, name, level)\nTask: Find value from sales_registry where amount exceeds the average value from area_registry for the same level.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE amount > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(name, salary, code, level)\n cost_centers(name, type, level, id)\nTask: Select value from engagement_log where salary is greater than the average of salary in cost_centers for matching type.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(type, status, amount, name)\n journal_entries(amount, type, level, id)\nTask: Retrieve code from stock_catalog whose code is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, amount, level, name)\n dispatch_queue(name, id, status, date)\nTask: Find value from receivables_log where a matching record exists in dispatch_queue with the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(id, type, code, salary)\n stock_catalog(amount, value, name, code)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(level, code, status, salary)\n sourcing_list(value, level, amount, status)\nTask: Find amount from journal_entries where id appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(name, salary, code, status)\n activity_log(code, id, date, name)\nTask: Retrieve value from stocking_sites with amount above the COUNT(amount) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(type, code, value, name)\n workforce_data(amount, date, value, salary)\nTask: Select salary from receivables_log where level exists in workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(salary, status, level, amount)\n portfolio_index(name, id, status, type)\nTask: Retrieve value from journal_entries whose level is found in portfolio_index rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(code, date, name, status)\n dispatch_queue(name, id, status, date)\nTask: Select code from acquisition_log where amount is greater than the total of amount in dispatch_queue for matching id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(value, code, salary, type)\n area_registry(salary, status, name, value)\nTask: Select salary from activity_log where value is greater than the total of salary in area_registry for matching level.\nSQL:", "sql": "SELECT salary FROM activity_log AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(level, name, salary, status)\n cost_centers(value, type, salary, name)\nTask: Select name from sourcing_list that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(salary, amount, value, status)\n portfolio_index(id, value, amount, status)\nTask: Find id from area_registry where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(salary, value, status, level)\n stock_catalog(salary, type, amount, date)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(level, value, name, type)\n facility_registry(status, date, value, amount)\nTask: Find name from dispatch_queue where amount exceeds the minimum value from facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(level, value, code, name)\n attribute_groups(code, value, id, level)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(status, level, salary, value)\n stocking_sites(value, type, date, status)\nTask: Retrieve id from personnel_registry whose level is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(salary, value, id, type)\n area_registry(type, date, status, value)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in area_registry sharing the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(id, code, type, value)\n personnel_registry(salary, amount, value, type)\nTask: Select code from facility_registry where value is greater than the total of amount in personnel_registry for matching id.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE value > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(id, type, salary, date)\n cost_centers(type, name, salary, status)\nTask: Select amount from receivables_log where id exists in cost_centers for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(name, status, code, level)\n portfolio_index(id, code, name, status)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(type, name, value, level)\n facility_registry(date, status, value, name)\nTask: Retrieve value from area_registry that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(type, date, amount, value)\n acquisition_log(value, id, amount, type)\nTask: Find code from activity_log where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(level, salary, date, code)\n dispatch_queue(amount, level, name, status)\nTask: Retrieve id from attribute_groups whose level is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(type, name, code, amount)\n cost_centers(id, salary, status, value)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(status, level, salary, value)\n sales_queue(level, date, id, value)\nTask: Find salary from facility_registry where type appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(id, type, salary, amount)\n journal_entries(type, level, value, salary)\nTask: Select value from stock_catalog where id exists in journal_entries for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(id, type, value, name)\n sales_queue(name, type, level, amount)\nTask: Select name from attribute_groups where id exists in sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(type, date, salary, id)\n area_registry(status, name, salary, amount)\nTask: Find amount from workforce_data where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, value, status, name)\n journal_entries(value, code, id, name)\nTask: Retrieve salary from acquisition_log whose type is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(name, status, salary, amount)\n sales_queue(code, amount, level, salary)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(type, code, status, id)\n engagement_log(salary, id, value, code)\nTask: Select name from attribute_groups that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(amount, status, id, date)\n dispatch_queue(code, type, id, date)\nTask: Find value from sales_queue where a matching record exists in dispatch_queue with the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(status, level, id, code)\n sourcing_list(id, status, salary, amount)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(level, code, salary, id)\n activity_log(status, amount, type, salary)\nTask: Select code from attribute_groups that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(id, value, amount, salary)\n sales_registry(id, type, value, date)\nTask: Retrieve code from workforce_data whose type is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(salary, level, id, value)\n area_registry(amount, level, id, type)\nTask: Select amount from acquisition_log where level exists in area_registry for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(type, date, status, salary)\n acquisition_log(level, id, type, code)\nTask: Find code from attribute_groups where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(id, amount, type, code)\n receivables_log(name, level, id, salary)\nTask: Find code from facility_registry where a matching record exists in receivables_log with the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(name, code, value, status)\n facility_registry(value, amount, name, salary)\nTask: Select amount from stocking_sites where type exists in facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(name, code, amount, status)\n activity_log(status, amount, type, code)\nTask: Find name from journal_entries where status appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(status, name, value, code)\n workforce_data(date, status, amount, id)\nTask: Select code from attribute_groups where amount is greater than the count of of value in workforce_data for matching code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(date, type, code, status)\n receivables_log(name, amount, status, type)\nTask: Select code from sales_queue that have at least one matching row in receivables_log for the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(amount, type, code, name)\n engagement_log(status, name, date, level)\nTask: Select amount from activity_log where level exists in engagement_log for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(status, value, name, type)\n facility_registry(date, code, name, id)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, status, name, amount)\n workforce_data(amount, status, name, level)\nTask: Select id from stocking_sites that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(amount, code, salary, date)\n sales_registry(type, level, name, amount)\nTask: Retrieve id from portfolio_index whose level is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(level, amount, salary, status)\n dispatch_queue(type, level, status, name)\nTask: Select salary from portfolio_index where value is greater than the maximum of salary in dispatch_queue for matching code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE value > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(name, id, date, amount)\n engagement_log(value, date, salary, amount)\nTask: Find value from workforce_data where id appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(value, status, type, id)\n sales_queue(amount, code, id, status)\nTask: Find salary from sourcing_list where salary exceeds the maximum salary from sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(status, type, value, code)\n activity_log(amount, level, name, date)\nTask: Find value from attribute_groups where value exceeds the count of salary from activity_log for the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(date, type, status, level)\n sourcing_list(code, id, status, salary)\nTask: Retrieve value from area_registry that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, status, id, code)\n sales_registry(value, salary, level, amount)\nTask: Find salary from stock_catalog where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(id, salary, level, amount)\n facility_registry(id, level, salary, code)\nTask: Select id from stock_catalog that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(code, amount, id, salary)\n workforce_data(type, date, salary, amount)\nTask: Find salary from sourcing_list where value exceeds the total salary from workforce_data for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE value > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(id, type, status, value)\n dispatch_queue(type, amount, salary, level)\nTask: Select salary from receivables_log where amount is greater than the minimum of salary in dispatch_queue for matching status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(type, date, salary, id)\n engagement_log(code, status, id, type)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(value, level, code, salary)\n sales_queue(id, amount, value, status)\nTask: Select id from stock_catalog that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(date, status, salary, id)\n area_registry(status, value, date, type)\nTask: Find name from stocking_sites where code appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(amount, type, code, value)\n attribute_groups(date, status, level, salary)\nTask: Select salary from receivables_log where status exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(id, name, value, amount)\n sourcing_list(date, value, level, name)\nTask: Retrieve name from dispatch_queue with value above the MAX(amount) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE value > (\n SELECT MAX(amount) FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(type, name, salary, level)\n receivables_log(level, amount, salary, date)\nTask: Select code from workforce_data where salary is greater than the maximum of amount in receivables_log for matching level.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(code, salary, level, id)\n personnel_registry(date, value, id, amount)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(level, salary, amount, code)\n stock_catalog(id, value, name, status)\nTask: Select code from cost_centers where status exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS dept\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(amount, level, date, type)\n sales_registry(code, level, value, name)\nTask: Find amount from cost_centers where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(code, type, id, level)\n acquisition_log(salary, level, code, amount)\nTask: Find salary from workforce_data where amount exceeds the maximum salary from acquisition_log for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE amount > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(value, code, type, status)\n portfolio_index(salary, amount, status, code)\nTask: Retrieve value from area_registry that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(value, id, level, date)\n sourcing_list(status, name, code, value)\nTask: Retrieve code from activity_log with amount above the COUNT(salary) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE amount > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(type, status, value, level)\n cost_centers(amount, level, date, salary)\nTask: Find salary from stock_catalog where level appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(id, amount, salary, value)\n stock_catalog(id, date, name, level)\nTask: Find id from receivables_log where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(type, id, name, status)\n receivables_log(id, date, value, level)\nTask: Find id from area_registry where salary exceeds the total salary from receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE salary > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, name, salary, amount)\n area_registry(status, value, code, name)\nTask: Select amount from dispatch_queue where value is greater than the minimum of value in area_registry for matching status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(id, code, status, type)\n cost_centers(amount, level, date, status)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(amount, type, name, level)\n sales_queue(id, value, name, salary)\nTask: Find value from dispatch_queue where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, code, salary, level)\n stocking_sites(code, status, name, value)\nTask: Retrieve value from sourcing_list whose code is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(type, date, value, code)\n engagement_log(value, level, type, name)\nTask: Find salary from sales_queue where value exceeds the average salary from engagement_log for the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(date, salary, id, value)\n workforce_data(date, salary, name, code)\nTask: Retrieve code from sales_queue whose type is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(level, name, salary, date)\n portfolio_index(date, value, salary, name)\nTask: Find salary from personnel_registry where code appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(type, amount, date, code)\n stocking_sites(salary, status, value, id)\nTask: Find id from area_registry where value exceeds the count of value from stocking_sites for the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS inv\nWHERE value > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(type, code, amount, salary)\n cost_centers(code, status, name, salary)\nTask: Retrieve amount from receivables_log with salary above the MIN(salary) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(name, type, value, salary)\n personnel_registry(date, id, salary, name)\nTask: Find id from dispatch_queue where amount exceeds the count of amount from personnel_registry for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(id, status, name, type)\n sourcing_list(salary, code, id, type)\nTask: Find salary from portfolio_index where type appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(date, type, value, name)\n workforce_data(value, code, name, date)\nTask: Retrieve name from receivables_log with salary above the MAX(amount) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE salary > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(code, status, name, value)\n stock_catalog(code, value, amount, id)\nTask: Select name from area_registry where status exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(id, name, type, amount)\n receivables_log(salary, date, type, level)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(level, status, name, code)\n sourcing_list(id, salary, value, level)\nTask: Select id from personnel_registry where amount is greater than the total of salary in sourcing_list for matching id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(date, status, value, id)\n portfolio_index(salary, id, type, status)\nTask: Find id from cost_centers where id appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(date, type, amount, value)\n facility_registry(name, type, code, status)\nTask: Find id from personnel_registry where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(type, code, amount, name)\n receivables_log(code, level, date, type)\nTask: Retrieve code from journal_entries with amount above the SUM(salary) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "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}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(value, level, id, amount)\n acquisition_log(date, code, name, value)\nTask: Retrieve name from area_registry that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(code, salary, date, type)\n stocking_sites(id, type, date, code)\nTask: Select id from facility_registry where amount is greater than the minimum of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(type, status, salary, date)\n personnel_registry(level, id, type, salary)\nTask: Select value from area_registry where level exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(id, level, date, status)\n dispatch_queue(salary, type, code, value)\nTask: Select code from stock_catalog that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(level, status, date, name)\n workforce_data(id, amount, value, type)\nTask: Find id from journal_entries where id appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(code, level, id, type)\n stock_catalog(level, date, code, name)\nTask: Select value from area_registry where type exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(status, amount, value, code)\n stocking_sites(amount, type, level, code)\nTask: Find id from portfolio_index where amount exceeds the total amount from stocking_sites for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(value, salary, code, date)\n stocking_sites(value, type, status, amount)\nTask: Select id from activity_log where type exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(code, amount, level, status)\n sourcing_list(id, status, amount, salary)\nTask: Select id from facility_registry where amount is greater than the maximum of amount in sourcing_list for matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(type, name, code, date)\n activity_log(amount, value, type, id)\nTask: Find id from cost_centers where value exceeds the maximum salary from activity_log for the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE value > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(id, type, salary, amount)\n portfolio_index(code, id, date, value)\nTask: Retrieve amount from acquisition_log whose id is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(level, code, date, id)\n journal_entries(value, code, level, salary)\nTask: Select amount from activity_log where amount is greater than the count of of value in journal_entries for matching id.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(type, amount, salary, id)\n sales_queue(name, amount, value, id)\nTask: Find amount from activity_log where status appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(level, code, date, salary)\n portfolio_index(salary, status, level, date)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(type, amount, value, id)\n stocking_sites(name, type, code, salary)\nTask: Select code from workforce_data that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(date, value, level, type)\n receivables_log(name, level, value, date)\nTask: Select name from personnel_registry where level exists in receivables_log for the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(date, id, level, status)\n activity_log(amount, name, date, salary)\nTask: Select name from dispatch_queue that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(salary, value, date, level)\n facility_registry(level, value, type, name)\nTask: Find id from receivables_log where level appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(name, code, value, amount)\n journal_entries(amount, type, salary, code)\nTask: Find value from portfolio_index where value exceeds the maximum amount from journal_entries for the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE value > (\n SELECT MAX(amount) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(value, amount, code, salary)\n attribute_groups(id, code, level, name)\nTask: Find code from dispatch_queue where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(amount, type, date, id)\n receivables_log(level, code, salary, id)\nTask: Find salary from workforce_data where value exceeds the minimum amount from receivables_log for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, type, name, level)\n acquisition_log(status, level, id, type)\nTask: Retrieve salary from activity_log whose id is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(level, type, status, date)\n receivables_log(level, name, type, salary)\nTask: Retrieve code from stock_catalog with amount above the COUNT(amount) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(value, code, level, amount)\n cost_centers(name, level, code, date)\nTask: Find name from facility_registry where salary exceeds the count of salary from cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(amount, name, status, value)\n area_registry(level, id, salary, type)\nTask: Retrieve salary from journal_entries with value above the SUM(salary) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE value > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(name, id, value, amount)\n portfolio_index(name, type, id, status)\nTask: Select id from journal_entries where type exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, level, salary, status)\n sales_queue(code, name, level, type)\nTask: Select code from dispatch_queue where type exists in sales_queue for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(name, status, id, code)\n stock_catalog(name, amount, type, value)\nTask: Find salary from cost_centers where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(code, date, value, name)\n personnel_registry(amount, id, date, level)\nTask: Find salary from area_registry where value exceeds the maximum amount from personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE value > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(date, value, status, code)\n area_registry(code, salary, level, status)\nTask: Retrieve code from receivables_log whose level is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(status, type, id, salary)\n sales_queue(id, value, amount, level)\nTask: Retrieve id from workforce_data with salary above the SUM(value) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE salary > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(code, type, value, id)\n area_registry(amount, status, code, name)\nTask: Select id from stock_catalog where code exists in area_registry for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(status, value, date, name)\n stock_catalog(value, date, status, type)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(name, amount, code, status)\n stocking_sites(status, amount, type, id)\nTask: Find salary from personnel_registry where value exceeds the minimum amount from stocking_sites for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE value > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(amount, name, salary, code)\n personnel_registry(level, code, type, status)\nTask: Find amount from facility_registry where level appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(id, level, date, salary)\n personnel_registry(date, name, value, code)\nTask: Retrieve salary from sales_registry with value above the MAX(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(salary, name, date, level)\n cost_centers(id, date, code, name)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(type, value, id, status)\n acquisition_log(value, salary, amount, code)\nTask: Retrieve code from portfolio_index with salary above the AVG(salary) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(level, value, code, type)\n facility_registry(value, amount, salary, type)\nTask: Find id from acquisition_log where value exceeds the average value from facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, date, id, amount)\n journal_entries(date, id, salary, amount)\nTask: Select value from activity_log where type exists in journal_entries for the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS inv\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(amount, code, name, type)\n stock_catalog(id, level, name, value)\nTask: Find salary from facility_registry where code appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, name, id, code)\n receivables_log(status, date, id, type)\nTask: Find amount from portfolio_index where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(value, date, name, amount)\n sourcing_list(level, id, code, value)\nTask: Find amount from journal_entries where value exceeds the minimum salary from sourcing_list for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE value > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(name, type, status, amount)\n stock_catalog(name, type, value, level)\nTask: Select id from area_registry where value is greater than the count of of amount in stock_catalog for matching type.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(code, value, salary, level)\n portfolio_index(type, date, amount, name)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, id, level, date)\n cost_centers(level, name, id, amount)\nTask: Select value from dispatch_queue where salary is greater than the average of amount in cost_centers for matching id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(salary, date, status, amount)\n stocking_sites(type, amount, level, id)\nTask: Retrieve id from area_registry with amount above the COUNT(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, status, value, code)\n stock_catalog(date, amount, code, name)\nTask: Find id from sourcing_list where amount exceeds the average value from stock_catalog for the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE amount > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(amount, level, id, type)\n acquisition_log(name, type, date, status)\nTask: Find salary from workforce_data where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(name, type, amount, date)\n facility_registry(value, name, type, code)\nTask: Find amount from receivables_log where type appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, value, name, level)\n journal_entries(amount, name, value, status)\nTask: Select code from sourcing_list that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(code, name, id, amount)\n stock_catalog(type, amount, code, value)\nTask: Select salary from journal_entries where id exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(id, status, date, level)\n stock_catalog(value, id, name, salary)\nTask: Find name from workforce_data where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(amount, code, id, name)\n attribute_groups(type, level, code, amount)\nTask: Select name from facility_registry that have at least one matching row in attribute_groups for the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(name, status, date, code)\n workforce_data(id, level, amount, type)\nTask: Select value from acquisition_log that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(value, type, name, salary)\n engagement_log(date, type, code, status)\nTask: Find amount from sales_registry where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(name, type, id, date)\n workforce_data(amount, value, id, code)\nTask: Retrieve value from dispatch_queue whose type is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(date, salary, value, type)\n cost_centers(level, code, name, value)\nTask: Retrieve code from activity_log that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(status, date, salary, name)\n dispatch_queue(code, level, id, status)\nTask: Retrieve id from area_registry with salary above the MIN(value) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE salary > (\n SELECT MIN(value) FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, salary, value, status)\n activity_log(id, salary, status, type)\nTask: Select amount from stock_catalog where value is greater than the average of value in activity_log for matching code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE value > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(value, code, id, name)\n activity_log(date, type, level, id)\nTask: Retrieve salary from cost_centers whose code is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(name, id, status, salary)\n attribute_groups(value, status, type, level)\nTask: Retrieve value from stock_catalog whose id is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(type, amount, code, status)\n receivables_log(value, type, amount, name)\nTask: Find value from sales_registry where salary exceeds the total amount from receivables_log for the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(value, type, amount, code)\n receivables_log(salary, code, date, name)\nTask: Retrieve salary from sourcing_list with amount above the SUM(salary) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(code, type, id, value)\n receivables_log(value, id, level, status)\nTask: Select name from activity_log where code exists in receivables_log for the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(level, amount, salary, id)\n area_registry(value, level, date, amount)\nTask: Select name from cost_centers where amount is greater than the minimum of salary in area_registry for matching status.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(code, amount, salary, id)\n personnel_registry(type, status, amount, name)\nTask: Find id from activity_log where amount exceeds the average salary from personnel_registry for the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(status, salary, date, id)\n personnel_registry(type, value, name, id)\nTask: Select code from stocking_sites where amount is greater than the count of of amount in personnel_registry for matching code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(code, date, name, level)\n acquisition_log(amount, name, code, value)\nTask: Find amount from sales_registry where level appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(type, amount, salary, value)\n sourcing_list(id, salary, name, value)\nTask: Find salary from receivables_log where value exceeds the count of value from sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE value > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(value, code, id, amount)\n engagement_log(date, value, status, code)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, id, salary, type)\n personnel_registry(id, code, level, date)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(value, date, salary, amount)\n engagement_log(level, type, date, status)\nTask: Select name from sales_queue where id exists in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(id, name, type, salary)\n sales_registry(amount, id, code, date)\nTask: Find id from stocking_sites where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(level, value, status, name)\n stocking_sites(code, type, name, id)\nTask: Select amount from activity_log where salary is greater than the average of salary in stocking_sites for matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(name, type, level, id)\n area_registry(amount, date, status, level)\nTask: Select salary from personnel_registry where value is greater than the maximum of salary in area_registry for matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE value > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(id, value, type, status)\n sales_registry(level, status, name, type)\nTask: Find id from stock_catalog where type appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(id, value, name, type)\n activity_log(status, name, date, value)\nTask: Find id from workforce_data where id appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT id FROM workforce_data AS mgr\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(amount, code, status, salary)\n engagement_log(salary, id, type, level)\nTask: Select value from personnel_registry where type exists in engagement_log for the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(value, level, status, type)\n stock_catalog(date, type, value, amount)\nTask: Find code from facility_registry where a matching record exists in stock_catalog with the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(date, code, salary, amount)\n activity_log(id, code, date, type)\nTask: Select code from dispatch_queue where salary is greater than the minimum of amount in activity_log for matching code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(status, value, amount, name)\n sales_registry(salary, type, status, code)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(type, salary, amount, id)\n portfolio_index(level, id, type, name)\nTask: Find value from facility_registry where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(type, date, name, id)\n stock_catalog(amount, date, code, value)\nTask: Retrieve id from area_registry whose code is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS inv\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(code, type, status, level)\n journal_entries(date, level, status, code)\nTask: Find code from sales_registry where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(level, code, date, amount)\n attribute_groups(amount, salary, date, id)\nTask: Find id from workforce_data where amount exceeds the total value from attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE amount > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(value, amount, level, id)\n area_registry(type, code, amount, id)\nTask: Select value from cost_centers where type exists in area_registry for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(value, salary, amount, level)\n engagement_log(id, name, value, type)\nTask: Select salary from stock_catalog that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, id, name, status)\n stocking_sites(code, value, id, salary)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(type, date, status, value)\n stocking_sites(date, value, amount, type)\nTask: Find id from stock_catalog where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(level, code, status, value)\n activity_log(level, type, code, amount)\nTask: Select amount from area_registry that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(salary, level, id, status)\n activity_log(code, value, date, type)\nTask: Find code from stock_catalog where value exceeds the total amount from activity_log for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE value > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, id, type, status)\n engagement_log(amount, date, level, value)\nTask: Find name from dispatch_queue where type appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(code, name, date, level)\n sourcing_list(date, level, status, id)\nTask: Find amount from sales_registry where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(id, amount, value, name)\n receivables_log(amount, level, salary, code)\nTask: Select value from activity_log where status exists in receivables_log for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS prod\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, value, name, code)\n attribute_groups(value, name, date, status)\nTask: Select code from acquisition_log that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(code, value, level, id)\n cost_centers(status, level, type, name)\nTask: Find code from stock_catalog where value exceeds the average value from cost_centers for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE value > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(value, type, id, status)\n personnel_registry(date, name, value, status)\nTask: Retrieve id from workforce_data whose status is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(status, date, code, value)\n engagement_log(date, code, amount, type)\nTask: Retrieve name from portfolio_index that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(level, value, amount, name)\n acquisition_log(salary, date, status, code)\nTask: Retrieve id from activity_log whose status is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(name, code, level, id)\n stock_catalog(code, name, salary, id)\nTask: Find amount from sales_queue where value exceeds the minimum value from stock_catalog for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE value > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(salary, name, amount, code)\n area_registry(status, salary, name, amount)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(code, id, level, salary)\n acquisition_log(id, amount, level, type)\nTask: Select value from sourcing_list that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(date, id, type, amount)\n sales_registry(code, amount, level, salary)\nTask: Find name from personnel_registry where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(type, id, date, name)\n engagement_log(level, date, name, amount)\nTask: Find salary from sourcing_list where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(date, id, level, code)\n workforce_data(value, amount, status, salary)\nTask: Find salary from personnel_registry where value exceeds the average value from workforce_data for the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE value > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(id, salary, status, value)\n sales_queue(value, status, id, name)\nTask: Select code from area_registry where type exists in sales_queue for the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(salary, status, name, level)\n facility_registry(salary, value, amount, date)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(id, name, salary, amount)\n receivables_log(id, name, value, code)\nTask: Find value from activity_log where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(amount, type, value, id)\n portfolio_index(name, salary, value, date)\nTask: Find code from sourcing_list where value exceeds the minimum amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE value > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(id, value, date, type)\n workforce_data(salary, amount, date, id)\nTask: Find value from journal_entries where amount exceeds the minimum salary from workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(salary, code, value, id)\n cost_centers(level, salary, name, id)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(amount, level, id, salary)\n stock_catalog(amount, code, value, salary)\nTask: Find code from cost_centers where value exceeds the minimum amount from stock_catalog for the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE value > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(code, level, salary, id)\n area_registry(code, type, status, date)\nTask: Select value from workforce_data where amount is greater than the total of value in area_registry for matching type.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE amount > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(level, name, code, salary)\n sourcing_list(status, name, value, amount)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(amount, level, salary, date)\n stocking_sites(type, value, code, id)\nTask: Find amount from receivables_log where status appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(level, amount, name, type)\n engagement_log(level, date, type, id)\nTask: Find id from facility_registry where level appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(salary, value, code, id)\n area_registry(code, amount, type, value)\nTask: Retrieve code from facility_registry whose level is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, code, id, name)\n sourcing_list(type, code, salary, status)\nTask: Select amount from facility_registry where code exists in sourcing_list for the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(code, level, value, id)\n sales_queue(name, date, salary, amount)\nTask: Select name from sales_registry that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(status, level, name, date)\n activity_log(name, code, id, status)\nTask: Retrieve name from personnel_registry whose status is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(code, salary, status, value)\n area_registry(value, amount, level, status)\nTask: Retrieve salary from portfolio_index with salary above the MAX(amount) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, id, level, amount)\n workforce_data(date, amount, value, type)\nTask: Find name from dispatch_queue where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(id, amount, name, type)\n sourcing_list(id, name, code, amount)\nTask: Retrieve amount from receivables_log whose type is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(value, code, date, type)\n receivables_log(id, date, code, amount)\nTask: Retrieve id from stock_catalog whose id is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(level, value, date, salary)\n area_registry(value, id, salary, level)\nTask: Retrieve name from cost_centers whose level is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(name, code, amount, value)\n cost_centers(status, amount, salary, value)\nTask: Retrieve salary from area_registry with value above the SUM(value) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE value > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(amount, id, name, level)\n portfolio_index(value, status, code, id)\nTask: Find value from area_registry where salary exceeds the count of amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE salary > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(id, code, type, value)\n journal_entries(id, date, level, type)\nTask: Find id from portfolio_index where status appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(status, name, type, salary)\n personnel_registry(id, salary, level, date)\nTask: Retrieve id from acquisition_log with amount above the AVG(salary) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(code, name, status, type)\n activity_log(value, status, salary, name)\nTask: Find id from facility_registry where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(name, code, id, salary)\n activity_log(type, amount, salary, level)\nTask: Retrieve value from stocking_sites whose level is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(amount, value, name, status)\n sales_queue(code, level, type, value)\nTask: Find id from sales_registry where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(level, type, code, amount)\n attribute_groups(level, name, id, value)\nTask: Find name from cost_centers where value exceeds the count of amount from attribute_groups for the same id.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(code, salary, type, name)\n engagement_log(salary, date, code, type)\nTask: Select id from receivables_log where salary is greater than the total of salary in engagement_log for matching level.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE salary > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(value, salary, type, date)\n dispatch_queue(level, value, code, name)\nTask: Select value from area_registry where level exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, name, amount, status)\n facility_registry(status, level, id, date)\nTask: Retrieve id from sales_queue whose id is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(code, value, status, amount)\n journal_entries(status, level, name, type)\nTask: Select code from sales_registry where type exists in journal_entries for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(value, amount, date, id)\n activity_log(date, level, salary, type)\nTask: Select amount from sales_queue where salary is greater than the total of value in activity_log for matching id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, id, status, level)\n cost_centers(type, date, level, amount)\nTask: Select value from stocking_sites where value is greater than the total of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE value > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(salary, level, type, value)\n area_registry(code, level, salary, type)\nTask: Select amount from sourcing_list where salary is greater than the count of of salary in area_registry for matching id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(value, amount, date, name)\n personnel_registry(id, code, type, name)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(date, code, status, level)\n attribute_groups(value, level, type, date)\nTask: Find name from portfolio_index where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, name, value, code)\n attribute_groups(level, type, value, name)\nTask: Select name from sourcing_list where amount is greater than the average of amount in attribute_groups for matching status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(salary, code, id, value)\n journal_entries(value, salary, status, code)\nTask: Find value from engagement_log where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(name, status, level, amount)\n journal_entries(type, status, level, name)\nTask: Select value from sourcing_list that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(value, status, id, amount)\n activity_log(code, level, value, type)\nTask: Find amount from receivables_log where amount exceeds the minimum salary from activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(value, status, code, date)\n stocking_sites(value, status, amount, id)\nTask: Find value from engagement_log where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(id, salary, type, amount)\n acquisition_log(salary, level, type, amount)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(name, value, amount, status)\n acquisition_log(code, amount, salary, value)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(type, name, value, level)\n personnel_registry(date, type, amount, level)\nTask: Select value from journal_entries that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(date, amount, level, name)\n journal_entries(name, type, code, date)\nTask: Select value from cost_centers where type exists in journal_entries for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(amount, date, status, id)\n activity_log(type, amount, date, salary)\nTask: Find code from journal_entries where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, date, type, amount)\n journal_entries(value, status, code, salary)\nTask: Select amount from dispatch_queue where value is greater than the total of amount in journal_entries for matching status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE value > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(status, id, name, value)\n sourcing_list(code, status, date, type)\nTask: Retrieve name from sales_registry with salary above the MIN(amount) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, date, type, value)\n sales_queue(type, salary, value, name)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(value, name, date, amount)\n area_registry(code, level, status, id)\nTask: Find id from portfolio_index where id appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(type, value, id, amount)\n journal_entries(code, status, type, date)\nTask: Select name from area_registry where amount is greater than the count of of value in journal_entries for matching code.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(code, value, type, amount)\n engagement_log(date, type, level, salary)\nTask: Find id from activity_log where salary exceeds the maximum value from engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE salary > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(name, amount, date, status)\n attribute_groups(code, status, value, level)\nTask: Find amount from sales_queue where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(level, salary, type, value)\n personnel_registry(salary, amount, level, date)\nTask: Select amount from activity_log where id exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(id, type, date, status)\n area_registry(value, salary, amount, status)\nTask: Find amount from personnel_registry where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(amount, salary, status, type)\n cost_centers(code, type, name, status)\nTask: Select salary from receivables_log where amount is greater than the minimum of value in cost_centers for matching id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(name, level, amount, status)\n sourcing_list(value, id, name, level)\nTask: Retrieve id from receivables_log with salary above the COUNT(salary) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(date, name, salary, type)\n personnel_registry(status, name, id, value)\nTask: Retrieve name from sourcing_list with salary above the AVG(value) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS ord\nWHERE salary > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(id, value, status, amount)\n engagement_log(code, amount, salary, id)\nTask: Retrieve salary from receivables_log with value above the AVG(salary) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(code, salary, name, status)\n portfolio_index(status, value, type, code)\nTask: Find code from facility_registry where level appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(name, type, salary, level)\n attribute_groups(name, amount, type, code)\nTask: Select code from receivables_log where code exists in attribute_groups for the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(level, value, type, code)\n sales_registry(date, level, status, amount)\nTask: Select name from area_registry where id exists in sales_registry for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(id, level, code, value)\n sales_queue(value, type, id, status)\nTask: Find salary from personnel_registry where salary exceeds the maximum value from sales_queue for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE salary > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(type, amount, status, name)\n sales_registry(code, status, id, name)\nTask: Select amount from journal_entries that have at least one matching row in sales_registry for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(value, salary, level, code)\n stocking_sites(value, type, amount, id)\nTask: Find amount from receivables_log where salary exceeds the minimum salary from stocking_sites for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(value, status, date, salary)\n facility_registry(level, amount, salary, code)\nTask: Retrieve id from sales_queue with value above the SUM(amount) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE value > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(value, amount, status, date)\n receivables_log(type, status, salary, name)\nTask: Retrieve amount from personnel_registry whose id is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(type, amount, salary, date)\n stocking_sites(status, code, amount, value)\nTask: Find amount from facility_registry where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(code, salary, id, level)\n sales_registry(id, date, status, code)\nTask: Retrieve salary from engagement_log whose type is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(level, value, salary, type)\n engagement_log(status, value, amount, salary)\nTask: Find id from stock_catalog where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(date, type, value, level)\n dispatch_queue(code, type, value, id)\nTask: Select code from activity_log that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(level, date, value, amount)\n stock_catalog(salary, level, code, status)\nTask: Find code from workforce_data where status appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(code, name, value, type)\n portfolio_index(name, code, level, date)\nTask: Retrieve id from acquisition_log whose id is found in portfolio_index rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(status, id, amount, date)\n workforce_data(salary, status, name, date)\nTask: Select id from sales_queue that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(salary, level, date, value)\n portfolio_index(code, type, amount, name)\nTask: Find name from area_registry where value exceeds the average amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS emp\nWHERE value > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(salary, id, code, name)\n activity_log(name, date, id, status)\nTask: Retrieve name from journal_entries with salary above the AVG(value) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE salary > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(code, value, type, status)\n facility_registry(amount, value, name, salary)\nTask: Select amount from sales_registry where level exists in facility_registry for the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, level, status, salary)\n journal_entries(name, id, value, level)\nTask: Select salary from attribute_groups that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(salary, value, status, level)\n stock_catalog(id, salary, status, type)\nTask: Select id from workforce_data where code exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(amount, salary, date, id)\n activity_log(date, name, type, salary)\nTask: Select salary from workforce_data where type exists in activity_log for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(date, amount, code, level)\n attribute_groups(code, type, id, date)\nTask: Retrieve amount from personnel_registry that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, type, status, salary)\n dispatch_queue(name, value, date, type)\nTask: Find name from journal_entries where status appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(level, salary, type, id)\n stock_catalog(salary, level, amount, name)\nTask: Select amount from area_registry where level exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, date, name, value)\n attribute_groups(id, date, name, type)\nTask: Find amount from personnel_registry where value exceeds the average value from attribute_groups for the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS mgr\nWHERE value > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(id, status, amount, salary)\n journal_entries(id, salary, name, status)\nTask: Select amount from stocking_sites where status exists in journal_entries for the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(name, type, level, salary)\n engagement_log(amount, name, code, status)\nTask: Retrieve value from stock_catalog whose type is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(salary, status, id, amount)\n engagement_log(level, value, name, salary)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(date, salary, name, code)\n workforce_data(type, date, level, id)\nTask: Retrieve code from cost_centers whose level is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(value, salary, name, level)\n stocking_sites(type, level, date, name)\nTask: Select name from facility_registry that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, status, id, amount)\n journal_entries(salary, code, value, amount)\nTask: Select code from dispatch_queue where value is greater than the average of value in journal_entries for matching type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE value > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(level, value, id, code)\n receivables_log(date, code, amount, level)\nTask: Find code from facility_registry where amount exceeds the average value from receivables_log for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE amount > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(type, date, id, status)\n journal_entries(level, type, date, value)\nTask: Select amount from cost_centers where salary is greater than the average of value in journal_entries for matching level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE salary > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(date, name, status, id)\n journal_entries(status, date, value, name)\nTask: Select salary from sourcing_list where id exists in journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(date, status, code, salary)\n stocking_sites(level, id, code, amount)\nTask: Find salary from stock_catalog where status appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(type, value, salary, level)\n dispatch_queue(amount, type, code, salary)\nTask: Find name from activity_log where value exceeds the maximum value from dispatch_queue for the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE value > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, date, level, id)\n portfolio_index(code, name, amount, type)\nTask: Find code from stocking_sites where salary exceeds the average amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(level, salary, name, value)\n acquisition_log(code, amount, value, status)\nTask: Find salary from sales_registry where value exceeds the maximum amount from acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE value > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(date, salary, amount, type)\n sales_queue(date, name, level, id)\nTask: Find name from cost_centers where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(salary, level, name, type)\n personnel_registry(status, name, amount, salary)\nTask: Find name from sales_queue where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(type, code, level, value)\n portfolio_index(value, status, type, salary)\nTask: Select id from dispatch_queue where status exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(name, code, type, status)\n sales_registry(level, date, name, id)\nTask: Retrieve id from acquisition_log with amount above the AVG(value) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(type, status, date, salary)\n dispatch_queue(code, salary, date, level)\nTask: Retrieve code from stock_catalog whose status is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(date, level, value, name)\n receivables_log(level, salary, value, code)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, level, date, code)\n engagement_log(salary, name, value, level)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(date, code, id, salary)\n sourcing_list(level, amount, value, name)\nTask: Select code from engagement_log where salary is greater than the total of value in sourcing_list for matching code.\nSQL:", "sql": "SELECT code FROM engagement_log AS empl\nWHERE salary > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(id, status, code, value)\n sourcing_list(level, date, code, id)\nTask: Find id from workforce_data where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(status, code, date, amount)\n sourcing_list(code, value, id, type)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(salary, name, level, type)\n facility_registry(level, id, date, salary)\nTask: Retrieve value from area_registry whose status is found in facility_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(status, level, code, date)\n stock_catalog(amount, type, id, name)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(salary, amount, name, status)\n sales_registry(level, name, id, date)\nTask: Find code from area_registry where amount exceeds the total salary from sales_registry for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(id, date, salary, status)\n cost_centers(level, date, value, salary)\nTask: Find name from workforce_data where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(type, name, status, salary)\n personnel_registry(type, salary, name, level)\nTask: Find salary from stock_catalog where salary exceeds the total value from personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE salary > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, level, name, id)\n activity_log(date, value, status, amount)\nTask: Find salary from portfolio_index where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(id, date, status, level)\n acquisition_log(name, amount, status, type)\nTask: Find value from dispatch_queue where salary exceeds the minimum amount from acquisition_log for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(type, date, status, id)\n sales_queue(code, amount, salary, id)\nTask: Find amount from attribute_groups where level appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(code, level, status, name)\n portfolio_index(level, value, salary, status)\nTask: Find amount from dispatch_queue where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, id, salary, amount)\n stocking_sites(salary, id, level, code)\nTask: Find value from dispatch_queue where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(code, status, amount, id)\n attribute_groups(date, amount, name, id)\nTask: Retrieve salary from engagement_log that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, value, name, id)\n facility_registry(code, level, value, type)\nTask: Select salary from attribute_groups where level exists in facility_registry for the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS inv\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(date, name, salary, status)\n sales_queue(code, salary, name, value)\nTask: Retrieve name from portfolio_index whose level is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(date, value, amount, level)\n stocking_sites(code, level, type, amount)\nTask: Find salary from acquisition_log where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(type, level, name, value)\n stocking_sites(date, value, code, salary)\nTask: Retrieve value from engagement_log with salary above the COUNT(value) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(id, amount, type, status)\n stock_catalog(level, amount, id, value)\nTask: Select id from acquisition_log where code exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(status, name, code, salary)\n area_registry(amount, id, status, level)\nTask: Retrieve value from stocking_sites with salary above the SUM(value) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE salary > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(amount, type, salary, code)\n dispatch_queue(value, date, code, name)\nTask: Retrieve salary from journal_entries whose type is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS inv\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(salary, value, date, type)\n area_registry(date, id, name, code)\nTask: Retrieve code from receivables_log with salary above the AVG(salary) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(type, level, status, salary)\n cost_centers(id, salary, date, amount)\nTask: Find amount from workforce_data where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, code, id, salary)\n portfolio_index(value, code, name, type)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(status, value, level, name)\n area_registry(status, id, amount, type)\nTask: Find name from engagement_log where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(value, level, name, status)\n activity_log(type, id, amount, level)\nTask: Find name from sourcing_list where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(salary, status, id, amount)\n workforce_data(type, name, amount, code)\nTask: Retrieve code from engagement_log with amount above the MIN(amount) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(name, id, level, type)\n stocking_sites(level, type, value, code)\nTask: Find code from area_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(id, name, salary, status)\n journal_entries(name, status, type, id)\nTask: Select code from stocking_sites where value is greater than the count of of salary in journal_entries for matching level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(value, level, salary, date)\n attribute_groups(salary, date, status, code)\nTask: Find amount from journal_entries where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(code, type, status, id)\n personnel_registry(salary, date, status, id)\nTask: Select code from area_registry where salary is greater than the average of amount in personnel_registry for matching level.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(name, value, code, level)\n sales_registry(amount, type, id, name)\nTask: Find value from receivables_log where value exceeds the minimum salary from sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE value > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(code, amount, id, value)\n dispatch_queue(value, salary, status, name)\nTask: Select salary from sales_queue where status exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS empl\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(salary, id, value, name)\n activity_log(status, amount, code, name)\nTask: Select id from facility_registry where code exists in activity_log for the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(level, value, type, code)\n attribute_groups(id, date, status, name)\nTask: Retrieve value from stocking_sites with amount above the MAX(amount) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(level, code, salary, date)\n area_registry(type, date, level, status)\nTask: Retrieve value from stocking_sites with value above the AVG(value) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE value > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(value, code, level, salary)\n sourcing_list(level, name, type, amount)\nTask: Retrieve name from engagement_log with salary above the MIN(salary) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(name, code, value, level)\n workforce_data(type, status, level, salary)\nTask: Retrieve amount from activity_log whose code is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS emp\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, level, status, code)\n sourcing_list(level, id, code, amount)\nTask: Retrieve amount from dispatch_queue with value above the AVG(amount) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE value > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(name, amount, date, value)\n engagement_log(status, value, id, date)\nTask: Retrieve name from stocking_sites whose level is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS usr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(level, date, name, id)\n area_registry(status, value, date, type)\nTask: Find id from sales_registry where salary exceeds the minimum salary from area_registry for the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(type, id, code, date)\n sales_registry(date, code, type, id)\nTask: Retrieve value from dispatch_queue whose id is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(id, code, date, level)\n dispatch_queue(date, id, name, amount)\nTask: Select id from sales_registry where value is greater than the average of value in dispatch_queue for matching type.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE value > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(salary, name, amount, level)\n sales_registry(level, status, name, code)\nTask: Select value from personnel_registry that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(amount, name, salary, date)\n workforce_data(salary, date, code, id)\nTask: Retrieve id from attribute_groups that have at least one corresponding entry in workforce_data sharing the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(code, salary, amount, level)\n facility_registry(level, amount, status, type)\nTask: Find name from receivables_log where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(level, value, name, id)\n engagement_log(salary, name, type, id)\nTask: Find id from area_registry where status appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(amount, id, level, type)\n activity_log(date, amount, salary, id)\nTask: Retrieve amount from facility_registry whose id is found in activity_log rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(code, value, id, date)\n journal_entries(value, id, status, type)\nTask: Retrieve code from personnel_registry whose level is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(status, date, salary, name)\n portfolio_index(id, status, level, code)\nTask: Select value from attribute_groups where level exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, value, level, type)\n dispatch_queue(level, salary, amount, status)\nTask: Retrieve value from sourcing_list with amount above the MIN(salary) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(code, id, date, type)\n cost_centers(name, status, value, type)\nTask: Select name from activity_log where code exists in cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(status, date, type, amount)\n workforce_data(status, value, code, date)\nTask: Retrieve name from journal_entries with value above the COUNT(value) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE value > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(date, level, name, status)\n portfolio_index(type, value, salary, status)\nTask: Select code from sales_queue where amount is greater than the count of of amount in portfolio_index for matching id.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(level, date, amount, value)\n stocking_sites(name, value, date, amount)\nTask: Find id from engagement_log where code appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(date, status, code, name)\n dispatch_queue(salary, code, id, name)\nTask: Retrieve value from area_registry that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(code, level, id, amount)\n receivables_log(value, amount, date, id)\nTask: Select code from engagement_log where level exists in receivables_log for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "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}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(code, name, level, date)\n portfolio_index(level, value, id, date)\nTask: Retrieve name from activity_log with salary above the MIN(value) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE salary > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(type, date, level, amount)\n attribute_groups(value, level, name, code)\nTask: Find salary from portfolio_index where type appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, id, amount, date)\n acquisition_log(value, level, type, status)\nTask: Retrieve amount from dispatch_queue whose code is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(status, name, type, value)\n stock_catalog(level, amount, salary, status)\nTask: Find code from sourcing_list where code appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(value, amount, date, salary)\n attribute_groups(date, status, salary, amount)\nTask: Retrieve amount from portfolio_index with salary above the AVG(salary) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, name, value, level)\n activity_log(date, type, level, id)\nTask: Find amount from acquisition_log where type appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(value, salary, level, code)\n facility_registry(code, name, type, id)\nTask: Retrieve name from personnel_registry with salary above the AVG(amount) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(level, name, type, status)\n receivables_log(type, level, name, date)\nTask: Retrieve code from area_registry whose level is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(level, amount, status, date)\n sourcing_list(code, type, value, id)\nTask: Retrieve amount from workforce_data with amount above the SUM(salary) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(amount, level, name, date)\n portfolio_index(status, amount, type, name)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(date, amount, status, id)\n personnel_registry(status, id, level, date)\nTask: Find id from engagement_log where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(status, id, name, code)\n workforce_data(value, id, amount, salary)\nTask: Select value from personnel_registry where status exists in workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS dept\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(name, status, salary, level)\n acquisition_log(amount, date, status, salary)\nTask: Find name from personnel_registry where salary exceeds the minimum amount from acquisition_log for the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(value, status, id, amount)\n area_registry(salary, type, level, code)\nTask: Retrieve value from sales_registry whose level is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(value, type, level, salary)\n acquisition_log(type, value, level, name)\nTask: Select amount from journal_entries that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(date, status, code, level)\n stocking_sites(code, value, id, amount)\nTask: Retrieve code from attribute_groups whose status is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS emp\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(status, type, code, amount)\n activity_log(name, amount, date, id)\nTask: Find salary from area_registry where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(value, type, amount, name)\n sales_registry(level, amount, value, status)\nTask: Find value from journal_entries where status appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(name, value, code, salary)\n area_registry(code, value, date, id)\nTask: Retrieve name from dispatch_queue with value above the MAX(value) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE value > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(id, amount, level, value)\n cost_centers(level, amount, code, id)\nTask: Select code from personnel_registry where status exists in cost_centers for the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(level, salary, id, type)\n personnel_registry(code, id, value, date)\nTask: Select name from attribute_groups where type exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(amount, code, level, name)\n sales_registry(id, code, date, amount)\nTask: Select amount from area_registry where code exists in sales_registry for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(id, amount, date, type)\n activity_log(level, id, name, amount)\nTask: Select name from receivables_log where status exists in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(amount, date, value, id)\n journal_entries(level, id, type, name)\nTask: Retrieve code from dispatch_queue with salary above the COUNT(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(date, level, amount, name)\n stock_catalog(code, status, date, value)\nTask: Find code from area_registry where a matching record exists in stock_catalog with the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, level, value, date)\n acquisition_log(date, id, value, code)\nTask: Select salary from dispatch_queue that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(id, date, code, name)\n sales_registry(date, id, salary, name)\nTask: Select id from workforce_data where value is greater than the average of amount in sales_registry for matching type.\nSQL:", "sql": "SELECT id FROM workforce_data AS dept\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "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}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(amount, code, level, value)\n cost_centers(status, value, id, salary)\nTask: Retrieve value from workforce_data with value above the AVG(value) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE value > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(salary, code, type, status)\n cost_centers(id, name, date, code)\nTask: Select value from receivables_log where code exists in cost_centers for the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, value, salary, code)\n sales_queue(name, status, salary, type)\nTask: Find value from acquisition_log where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(date, name, status, value)\n attribute_groups(amount, date, name, code)\nTask: Select name from personnel_registry where salary is greater than the minimum of value in attribute_groups for matching type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE salary > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(level, code, id, value)\n sales_registry(level, name, type, code)\nTask: Select id from engagement_log where salary is greater than the minimum of salary in sales_registry for matching level.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(date, type, status, value)\n receivables_log(level, value, date, type)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(value, salary, status, id)\n stocking_sites(salary, level, name, amount)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(value, id, type, level)\n attribute_groups(date, id, name, status)\nTask: Select id from portfolio_index where value is greater than the count of of amount in attribute_groups for matching type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(salary, amount, date, id)\n cost_centers(status, id, name, level)\nTask: Retrieve id from personnel_registry whose type is found in cost_centers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(name, status, salary, id)\n journal_entries(status, id, date, amount)\nTask: Find name from stocking_sites where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(value, code, salary, level)\n stocking_sites(date, salary, id, amount)\nTask: Retrieve salary from personnel_registry with salary above the COUNT(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(type, date, id, code)\n stocking_sites(status, name, amount, level)\nTask: Find name from workforce_data where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(amount, date, name, status)\n area_registry(type, salary, value, status)\nTask: Retrieve amount from journal_entries with salary above the MAX(salary) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(salary, status, code, date)\n area_registry(id, name, date, code)\nTask: Select code from receivables_log where salary is greater than the count of of salary in area_registry for matching level.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(name, level, value, type)\n personnel_registry(level, amount, date, status)\nTask: Retrieve value from sourcing_list whose level is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(value, status, salary, type)\n sales_registry(type, status, value, date)\nTask: Find amount from engagement_log where status appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(name, code, date, amount)\n dispatch_queue(id, status, salary, date)\nTask: Retrieve id from sales_queue with value above the COUNT(amount) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(code, level, amount, name)\n facility_registry(code, salary, type, amount)\nTask: Select salary from engagement_log where salary is greater than the count of of salary in facility_registry for matching code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(level, status, value, date)\n cost_centers(name, status, value, id)\nTask: Find value from stocking_sites where code appears in cost_centers entries with matching type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(status, date, name, type)\n area_registry(date, type, name, amount)\nTask: Find value from activity_log where id appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(value, date, id, status)\n stock_catalog(level, date, name, id)\nTask: Select name from sales_queue where type exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(id, type, level, amount)\n sourcing_list(date, name, code, id)\nTask: Select amount from activity_log that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(value, status, amount, name)\n sales_queue(code, id, value, name)\nTask: Find code from personnel_registry where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(code, amount, status, salary)\n facility_registry(id, date, value, level)\nTask: Select code from acquisition_log that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(date, name, id, value)\n cost_centers(status, value, type, amount)\nTask: Find amount from stock_catalog where amount exceeds the maximum salary from cost_centers for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE amount > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(salary, code, date, amount)\n stock_catalog(salary, type, level, status)\nTask: Retrieve id from area_registry whose type is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(level, salary, date, name)\n acquisition_log(date, type, status, level)\nTask: Retrieve id from journal_entries whose status is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(status, salary, name, level)\n sourcing_list(value, salary, status, amount)\nTask: Select id from attribute_groups where value is greater than the maximum of salary in sourcing_list for matching level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE value > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(level, salary, name, id)\n stock_catalog(id, value, code, amount)\nTask: Retrieve value from sourcing_list with amount above the AVG(salary) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE amount > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(status, salary, id, name)\n sales_registry(status, salary, date, level)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(id, status, name, type)\n dispatch_queue(name, code, status, value)\nTask: Select name from stock_catalog where salary is greater than the average of value in dispatch_queue for matching status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE salary > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(salary, code, type, date)\n attribute_groups(status, date, level, value)\nTask: Find id from stock_catalog where id appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(date, type, code, status)\n facility_registry(level, value, salary, code)\nTask: Retrieve amount from dispatch_queue whose type is found in facility_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(salary, value, amount, level)\n activity_log(code, date, level, name)\nTask: Find salary from personnel_registry where amount exceeds the maximum value from activity_log for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE amount > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(date, salary, amount, name)\n dispatch_queue(salary, date, value, name)\nTask: Retrieve value from cost_centers that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(status, name, code, amount)\n acquisition_log(value, status, date, type)\nTask: Retrieve id from area_registry whose level is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(value, code, amount, status)\n dispatch_queue(code, level, amount, name)\nTask: Find name from facility_registry where salary exceeds the total salary from dispatch_queue for the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(code, date, amount, status)\n personnel_registry(name, level, amount, type)\nTask: Find value from facility_registry where code appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(name, type, date, id)\n engagement_log(amount, level, id, status)\nTask: Retrieve amount from sales_queue with amount above the MIN(salary) of engagement_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(date, level, amount, value)\n stock_catalog(amount, value, salary, type)\nTask: Retrieve amount from sourcing_list with salary above the AVG(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(id, level, code, amount)\n portfolio_index(status, salary, code, name)\nTask: Retrieve code from dispatch_queue with value above the MAX(amount) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(salary, amount, level, value)\n dispatch_queue(level, name, status, id)\nTask: Select id from facility_registry where value is greater than the maximum of salary in dispatch_queue for matching id.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE value > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(amount, value, status, type)\n activity_log(code, value, level, name)\nTask: Retrieve id from attribute_groups with amount above the SUM(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(date, type, level, salary)\n stocking_sites(value, code, type, date)\nTask: Retrieve amount from activity_log with salary above the MAX(amount) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, status, date, code)\n area_registry(level, date, amount, name)\nTask: Find value from acquisition_log where salary exceeds the count of salary from area_registry for the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(id, code, name, value)\n personnel_registry(salary, type, amount, level)\nTask: Select value from journal_entries where status exists in personnel_registry for the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(code, status, date, value)\n personnel_registry(type, code, id, level)\nTask: Retrieve code from facility_registry with amount above the AVG(value) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(status, code, value, id)\n journal_entries(type, salary, code, value)\nTask: Select amount from receivables_log where level exists in journal_entries for the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(code, amount, type, name)\n sourcing_list(amount, value, salary, id)\nTask: Retrieve salary from portfolio_index whose type is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(name, code, level, id)\n sales_queue(type, status, level, date)\nTask: Retrieve id from stock_catalog whose type is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(id, name, type, salary)\n sales_registry(type, level, date, value)\nTask: Retrieve name from engagement_log with salary above the MIN(salary) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, status, id, date)\n stock_catalog(status, name, value, id)\nTask: Retrieve value from cost_centers that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(id, amount, status, value)\n attribute_groups(date, salary, value, amount)\nTask: Find amount from sourcing_list where level appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(date, id, status, name)\n sales_registry(level, name, type, value)\nTask: Select name from sales_queue where amount is greater than the maximum of value in sales_registry for matching type.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE amount > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(name, amount, level, code)\n sales_registry(name, level, date, code)\nTask: Retrieve salary from engagement_log with amount above the COUNT(value) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(value, salary, date, name)\n engagement_log(type, amount, date, code)\nTask: Select name from sourcing_list where code exists in engagement_log for the same status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(type, amount, salary, value)\n facility_registry(name, code, value, date)\nTask: Select salary from workforce_data where id exists in facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(level, type, status, id)\n sales_registry(status, salary, amount, date)\nTask: Select code from workforce_data where amount is greater than the total of salary in sales_registry for matching level.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(id, amount, date, status)\n attribute_groups(code, date, type, status)\nTask: Select value from sales_registry that have at least one matching row in attribute_groups for the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(status, value, type, salary)\n sales_registry(name, level, code, type)\nTask: Select salary from sales_queue that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(code, amount, id, name)\n facility_registry(status, salary, code, name)\nTask: Select name from stock_catalog where type exists in facility_registry for the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(code, date, value, type)\n receivables_log(amount, value, level, type)\nTask: Find code from workforce_data where code appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(name, status, value, code)\n portfolio_index(value, status, type, code)\nTask: Select value from sales_queue where value is greater than the total of amount in portfolio_index for matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE value > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(id, code, type, salary)\n acquisition_log(value, code, salary, id)\nTask: Find value from personnel_registry where level appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS emp\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(amount, type, salary, status)\n attribute_groups(amount, salary, date, level)\nTask: Find id from cost_centers where amount exceeds the average amount from attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, id, date, name)\n engagement_log(type, status, date, id)\nTask: Retrieve code from acquisition_log with value above the COUNT(salary) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE value > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(status, level, name, id)\n receivables_log(status, id, level, amount)\nTask: Find salary from acquisition_log where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(amount, code, level, date)\n journal_entries(salary, level, name, amount)\nTask: Retrieve id from sales_registry with value above the AVG(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE value > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(status, level, id, code)\n workforce_data(salary, level, code, value)\nTask: Find name from stocking_sites where code appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(status, salary, code, id)\n sales_registry(value, status, level, code)\nTask: Select id from receivables_log where value is greater than the count of of value in sales_registry for matching level.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE value > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(amount, salary, value, code)\n attribute_groups(value, date, salary, name)\nTask: Find id from workforce_data where salary exceeds the average salary from attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(value, code, id, date)\n area_registry(level, value, date, name)\nTask: Find value from cost_centers where value exceeds the average amount from area_registry for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE value > (\n SELECT AVG(amount) FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(date, name, id, status)\n journal_entries(name, type, date, id)\nTask: Select code from engagement_log where type exists in journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(status, code, name, id)\n stocking_sites(salary, id, code, amount)\nTask: Select code from sales_queue where type exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, code, amount, status)\n sourcing_list(type, date, amount, code)\nTask: Select id from stocking_sites where code exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(value, code, salary, name)\n journal_entries(salary, value, name, date)\nTask: Select id from facility_registry where level exists in journal_entries for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(level, date, status, name)\n journal_entries(level, type, name, amount)\nTask: Select code from sales_registry where amount is greater than the average of amount in journal_entries for matching code.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, amount, level, value)\n activity_log(value, date, amount, type)\nTask: Find salary from dispatch_queue where level appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(amount, status, id, code)\n sourcing_list(value, amount, salary, level)\nTask: Select value from engagement_log where status exists in sourcing_list for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(date, name, status, value)\n acquisition_log(id, status, code, salary)\nTask: Select name from cost_centers that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(id, amount, status, level)\n portfolio_index(salary, amount, name, type)\nTask: Select id from sales_queue that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(date, amount, salary, name)\n activity_log(value, salary, amount, date)\nTask: Select code from attribute_groups that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(status, value, salary, id)\n engagement_log(code, level, value, salary)\nTask: Find value from cost_centers where id appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(amount, code, id, status)\n cost_centers(status, date, id, value)\nTask: Select code from acquisition_log where code exists in cost_centers for the same level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(value, status, salary, code)\n portfolio_index(type, value, date, id)\nTask: Select name from personnel_registry where type exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(value, name, salary, date)\n workforce_data(date, level, type, name)\nTask: Select code from portfolio_index where level exists in workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(type, level, date, status)\n stocking_sites(name, salary, type, level)\nTask: Retrieve value from workforce_data with salary above the MAX(salary) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(value, level, code, status)\n activity_log(level, value, amount, status)\nTask: Select salary from acquisition_log that have at least one matching row in activity_log for the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(date, code, value, amount)\n sales_registry(value, status, date, name)\nTask: Retrieve id from portfolio_index whose id is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(date, id, value, salary)\n acquisition_log(level, salary, name, status)\nTask: Retrieve name from receivables_log with salary above the MAX(amount) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(amount, id, value, name)\n engagement_log(status, code, type, date)\nTask: Retrieve code from facility_registry with amount above the MIN(amount) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, date, salary, name)\n sales_registry(type, name, status, id)\nTask: Retrieve code from stocking_sites whose status is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(type, level, id, amount)\n sales_registry(type, level, date, name)\nTask: Select name from area_registry where value is greater than the maximum of value in sales_registry for matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS emp\nWHERE value > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(name, level, amount, code)\n sales_registry(salary, name, id, amount)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(status, code, level, type)\n area_registry(name, salary, code, status)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(id, value, salary, code)\n sales_registry(date, salary, id, code)\nTask: Select id from portfolio_index where type exists in sales_registry for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(date, id, name, type)\n acquisition_log(name, code, level, date)\nTask: Select code from receivables_log where salary is greater than the average of amount in acquisition_log for matching type.\nSQL:", "sql": "SELECT code FROM receivables_log AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(type, id, status, level)\n receivables_log(status, code, amount, level)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(code, amount, status, date)\n cost_centers(id, type, code, amount)\nTask: Find salary from activity_log where id appears in cost_centers entries with matching type.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(date, salary, code, name)\n sourcing_list(date, status, salary, id)\nTask: Select salary from stock_catalog where salary is greater than the total of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(status, code, date, level)\n area_registry(value, name, type, id)\nTask: Find value from sales_queue where salary exceeds the total amount from area_registry for the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(salary, id, code, amount)\n journal_entries(salary, value, type, level)\nTask: Find value from facility_registry where salary exceeds the maximum value from journal_entries for the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE salary > (\n SELECT MAX(value) FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(value, id, code, name)\n cost_centers(value, amount, salary, name)\nTask: Retrieve salary from receivables_log whose type is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(type, amount, value, level)\n engagement_log(level, date, status, code)\nTask: Select salary from journal_entries where id exists in engagement_log for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, amount, level, date)\n acquisition_log(amount, code, level, name)\nTask: Select value from dispatch_queue where level exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(type, code, salary, name)\n attribute_groups(status, code, id, name)\nTask: Select value from acquisition_log where status exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS prod\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, value, type, level)\n sales_registry(value, date, id, code)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(id, amount, code, date)\n portfolio_index(amount, status, date, level)\nTask: Select amount from engagement_log where level exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(amount, status, salary, value)\n stocking_sites(amount, type, id, status)\nTask: Find name from workforce_data where value exceeds the count of salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(id, date, status, name)\n journal_entries(amount, type, salary, value)\nTask: Find salary from sales_registry where amount exceeds the maximum amount from journal_entries for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(type, id, date, amount)\n engagement_log(salary, id, date, level)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(value, status, salary, date)\n activity_log(salary, code, name, value)\nTask: Find salary from workforce_data where salary exceeds the average amount from activity_log for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(status, level, value, type)\n acquisition_log(code, amount, value, level)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, salary, value, name)\n sales_registry(amount, status, code, id)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(id, date, status, salary)\n acquisition_log(value, id, status, type)\nTask: Retrieve salary from portfolio_index with salary above the SUM(value) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE salary > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(name, type, id, status)\n dispatch_queue(level, salary, id, type)\nTask: Select salary from attribute_groups where type exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(level, type, date, value)\n activity_log(type, code, date, status)\nTask: Select code from sales_queue where value is greater than the total of salary in activity_log for matching level.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE value > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(code, level, salary, value)\n sales_queue(type, status, salary, name)\nTask: Find salary from portfolio_index where amount exceeds the average salary from sales_queue for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(salary, name, amount, type)\n sales_registry(salary, code, name, status)\nTask: Select id from acquisition_log where level exists in sales_registry for the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(code, date, salary, status)\n journal_entries(amount, value, code, id)\nTask: Retrieve salary from engagement_log whose status is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(status, date, level, type)\n activity_log(name, status, code, value)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(level, name, amount, id)\n engagement_log(amount, id, value, name)\nTask: Select name from dispatch_queue where id exists in engagement_log for the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(type, code, status, salary)\n cost_centers(status, name, value, date)\nTask: Retrieve code from area_registry whose code is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(salary, type, id, value)\n sales_queue(type, level, amount, salary)\nTask: Find value from area_registry where level appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT value FROM area_registry AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(id, type, salary, value)\n portfolio_index(name, value, type, level)\nTask: Select name from area_registry where salary is greater than the maximum of value in portfolio_index for matching status.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE salary > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(code, type, amount, date)\n area_registry(value, amount, level, id)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(level, date, status, id)\n stock_catalog(level, value, status, name)\nTask: Select value from sales_registry where salary is greater than the average of amount in stock_catalog for matching level.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(salary, name, status, value)\n sales_registry(code, amount, level, id)\nTask: Select value from cost_centers that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(status, salary, value, amount)\n sales_queue(name, date, level, code)\nTask: Retrieve value from facility_registry with value above the COUNT(amount) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE value > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(level, date, status, amount)\n activity_log(type, amount, salary, status)\nTask: Find name from facility_registry where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(salary, name, date, type)\n workforce_data(name, value, level, status)\nTask: Retrieve salary from personnel_registry whose status is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(date, amount, value, type)\n portfolio_index(salary, type, level, id)\nTask: Find id from cost_centers where id appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, amount, value, date)\n area_registry(code, value, level, salary)\nTask: Find id from sourcing_list where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, date, amount, salary)\n activity_log(level, name, salary, date)\nTask: Select value from dispatch_queue where type exists in activity_log for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(value, amount, code, status)\n activity_log(amount, date, id, value)\nTask: Find value from dispatch_queue where amount exceeds the average salary from activity_log for the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(amount, status, value, date)\n workforce_data(salary, status, id, value)\nTask: Retrieve code from sales_queue whose type is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, status, value, id)\n dispatch_queue(name, level, date, value)\nTask: Find amount from stocking_sites where salary exceeds the total value from dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE salary > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(amount, level, id, name)\n engagement_log(value, code, amount, id)\nTask: Select value from sales_registry where amount is greater than the minimum of value in engagement_log for matching code.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE amount > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, type, amount, level)\n acquisition_log(amount, id, salary, status)\nTask: Find code from dispatch_queue where salary exceeds the maximum salary from acquisition_log for the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(level, amount, id, status)\n portfolio_index(date, salary, id, amount)\nTask: Select salary from attribute_groups where amount is greater than the total of amount in portfolio_index for matching status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE amount > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(status, amount, level, value)\n attribute_groups(name, value, date, salary)\nTask: Find code from acquisition_log where code appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(name, amount, type, value)\n engagement_log(name, status, value, type)\nTask: Find id from receivables_log where amount exceeds the minimum amount from engagement_log for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS dept\nWHERE amount > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(type, salary, date, name)\n dispatch_queue(code, id, level, date)\nTask: Retrieve code from facility_registry with value above the AVG(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE value > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, level, amount, type)\n sourcing_list(salary, amount, code, type)\nTask: Select value from dispatch_queue where status exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, level, id, name)\n stocking_sites(salary, amount, value, name)\nTask: Select id from receivables_log where type exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(type, amount, date, level)\n journal_entries(code, amount, date, name)\nTask: Find value from workforce_data where type appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, amount, code, date)\n receivables_log(type, value, name, id)\nTask: Select value from acquisition_log where value is greater than the average of value in receivables_log for matching level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS usr\nWHERE value > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(date, status, name, amount)\n stocking_sites(value, code, name, amount)\nTask: Retrieve value from cost_centers with value above the MAX(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(level, id, amount, status)\n dispatch_queue(amount, name, salary, id)\nTask: Select amount from receivables_log that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(name, code, level, type)\n acquisition_log(id, level, date, status)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(type, salary, level, date)\n personnel_registry(name, salary, status, id)\nTask: Find id from portfolio_index where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(name, type, date, status)\n activity_log(code, name, amount, value)\nTask: Retrieve code from portfolio_index whose code is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(name, date, value, amount)\n engagement_log(id, salary, code, date)\nTask: Find code from sales_registry where value exceeds the average value from engagement_log for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE value > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(level, name, salary, amount)\n acquisition_log(code, name, type, status)\nTask: Find value from area_registry where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(amount, value, level, type)\n stock_catalog(status, name, value, type)\nTask: Select name from activity_log where status exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(status, name, salary, code)\n journal_entries(value, amount, code, status)\nTask: Select value from portfolio_index where value is greater than the maximum of value in journal_entries for matching type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE value > (\n SELECT MAX(value) FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(type, id, amount, salary)\n activity_log(value, status, date, id)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, date, id, status)\n sourcing_list(date, amount, value, name)\nTask: Select name from facility_registry where status exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(date, id, type, level)\n workforce_data(code, date, salary, id)\nTask: Find id from sales_registry where id appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT id FROM sales_registry AS emp\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(amount, date, level, value)\n engagement_log(status, date, name, id)\nTask: Select amount from stock_catalog that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(code, name, id, date)\n sales_registry(amount, value, name, id)\nTask: Retrieve name from personnel_registry with value above the MIN(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE value > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(code, id, name, status)\n sales_queue(code, level, value, name)\nTask: Retrieve name from area_registry that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, code, status, amount)\n workforce_data(amount, name, level, type)\nTask: Select value from sourcing_list where amount is greater than the minimum of value in workforce_data for matching level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(level, id, salary, type)\n portfolio_index(status, id, salary, value)\nTask: Find name from facility_registry where level appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(code, level, amount, name)\n receivables_log(salary, code, status, date)\nTask: Select salary from journal_entries where id exists in receivables_log for the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(id, status, name, code)\n receivables_log(code, amount, status, value)\nTask: Find name from portfolio_index where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(code, id, salary, value)\n facility_registry(value, level, status, salary)\nTask: Find code from journal_entries where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(level, id, status, salary)\n attribute_groups(status, id, name, type)\nTask: Find salary from sales_queue where type appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(salary, value, amount, id)\n workforce_data(level, type, id, date)\nTask: Find code from facility_registry where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(status, level, amount, salary)\n stock_catalog(code, salary, level, id)\nTask: Retrieve id from journal_entries with value above the SUM(value) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE value > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(type, value, status, code)\n activity_log(salary, value, status, date)\nTask: Find name from personnel_registry where status appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(level, name, value, salary)\n activity_log(code, level, salary, date)\nTask: Find code from portfolio_index where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(salary, amount, name, id)\n stocking_sites(type, code, status, salary)\nTask: Select code from personnel_registry that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(value, status, id, code)\n stocking_sites(value, code, id, status)\nTask: Find value from stock_catalog where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(amount, date, type, id)\n stock_catalog(amount, code, name, id)\nTask: Select name from facility_registry where type exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(level, date, salary, id)\n attribute_groups(value, id, type, amount)\nTask: Retrieve name from acquisition_log whose code is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(id, status, code, amount)\n activity_log(salary, code, type, name)\nTask: Select amount from cost_centers where type exists in activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(status, level, value, amount)\n area_registry(code, amount, type, name)\nTask: Select value from workforce_data where code exists in area_registry for the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(salary, level, id, type)\n attribute_groups(id, level, amount, name)\nTask: Select id from receivables_log where type exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(date, type, salary, amount)\n stocking_sites(amount, level, value, status)\nTask: Find id from acquisition_log where value exceeds the minimum salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE value > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(date, name, salary, level)\n journal_entries(code, name, type, status)\nTask: Select value from attribute_groups that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(status, salary, name, amount)\n area_registry(salary, level, status, type)\nTask: Find id from engagement_log where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(code, id, level, salary)\n personnel_registry(date, id, amount, value)\nTask: Select value from engagement_log where value is greater than the total of value in personnel_registry for matching code.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE value > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(value, name, amount, salary)\n receivables_log(name, type, code, date)\nTask: Find name from sales_registry where status appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(amount, type, salary, status)\n attribute_groups(salary, status, id, name)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(name, date, type, salary)\n acquisition_log(status, level, value, type)\nTask: Select code from stock_catalog where level exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(date, id, level, status)\n stock_catalog(status, id, type, value)\nTask: Find code from sales_registry where salary exceeds the minimum amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(salary, amount, name, type)\n sales_registry(salary, date, name, status)\nTask: Find value from journal_entries where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(status, date, level, salary)\n journal_entries(salary, value, type, code)\nTask: Retrieve code from facility_registry whose type is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, id, date, amount)\n area_registry(code, amount, type, name)\nTask: Find id from stocking_sites where id appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(date, amount, status, value)\n activity_log(salary, code, name, date)\nTask: Find id from personnel_registry where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(level, salary, code, type)\n stock_catalog(level, salary, type, value)\nTask: Select salary from acquisition_log where id exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS dept\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(type, value, status, salary)\n portfolio_index(date, type, salary, value)\nTask: Find id from sourcing_list where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, date, id, name)\n portfolio_index(date, code, level, type)\nTask: Find name from personnel_registry where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(value, code, id, status)\n workforce_data(amount, level, id, type)\nTask: Retrieve id from portfolio_index whose id is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(code, date, name, type)\n area_registry(value, type, date, status)\nTask: Select id from sales_queue that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(salary, type, id, status)\n stocking_sites(id, date, name, code)\nTask: Select salary from sales_queue where status exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(value, status, name, code)\n workforce_data(name, value, amount, type)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(level, date, type, id)\n journal_entries(name, date, level, id)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(code, status, value, id)\n journal_entries(salary, id, type, date)\nTask: Retrieve amount from engagement_log whose status is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(date, type, code, salary)\n portfolio_index(salary, code, type, level)\nTask: Retrieve amount from cost_centers that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(amount, code, level, date)\n attribute_groups(value, salary, code, name)\nTask: Select id from engagement_log that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(salary, date, amount, id)\n area_registry(status, amount, level, name)\nTask: Select amount from activity_log where value is greater than the count of of value in area_registry for matching id.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE value > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(name, level, salary, date)\n area_registry(type, date, id, amount)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, value, amount, salary)\n journal_entries(amount, level, salary, type)\nTask: Select salary from personnel_registry where value is greater than the count of of value in journal_entries for matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(type, amount, status, code)\n engagement_log(id, name, level, date)\nTask: Find code from cost_centers where status appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(code, id, value, type)\n journal_entries(amount, level, name, date)\nTask: Retrieve amount from attribute_groups with amount above the MAX(value) of journal_entries rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE amount > (\n SELECT MAX(value) FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(name, level, value, code)\n stocking_sites(salary, status, date, amount)\nTask: Select salary from sourcing_list where salary is greater than the average of value in stocking_sites for matching code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE salary > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(value, salary, name, code)\n attribute_groups(code, value, id, date)\nTask: Find name from activity_log where value exceeds the minimum amount from attribute_groups for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE value > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, amount, level, code)\n facility_registry(code, level, salary, id)\nTask: Retrieve salary from sourcing_list with salary above the MIN(salary) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(value, id, salary, amount)\n sales_queue(salary, value, amount, name)\nTask: Find amount from attribute_groups where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(type, level, status, code)\n personnel_registry(id, name, type, code)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(value, level, salary, type)\n personnel_registry(code, id, level, name)\nTask: Retrieve salary from acquisition_log whose level is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(id, value, amount, level)\n acquisition_log(amount, salary, value, id)\nTask: Select name from activity_log that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(level, type, date, status)\n attribute_groups(id, value, type, status)\nTask: Select value from area_registry where status exists in attribute_groups for the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(code, salary, date, level)\n facility_registry(level, date, amount, status)\nTask: Select salary from dispatch_queue where id exists in facility_registry for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(value, amount, level, code)\n facility_registry(date, name, amount, type)\nTask: Find amount from stock_catalog where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(id, name, date, type)\n area_registry(amount, level, type, name)\nTask: Select value from stock_catalog where type exists in area_registry for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS emp\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(level, amount, type, date)\n attribute_groups(salary, code, name, type)\nTask: Retrieve amount from stock_catalog whose id is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(level, name, salary, value)\n stocking_sites(type, salary, date, amount)\nTask: Select code from sourcing_list where code exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(code, status, type, amount)\n activity_log(code, salary, name, value)\nTask: Select amount from receivables_log that have at least one matching row in activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(amount, type, value, salary)\n engagement_log(date, salary, level, code)\nTask: Retrieve id from stocking_sites whose status is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(level, code, date, id)\n sales_queue(type, amount, status, date)\nTask: Select salary from sales_registry where type exists in sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(status, value, code, name)\n activity_log(id, code, status, salary)\nTask: Retrieve amount from sales_registry with value above the COUNT(salary) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(date, salary, amount, id)\n sourcing_list(status, date, name, code)\nTask: Find code from area_registry where id appears in sourcing_list entries with matching type.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(code, amount, value, status)\n cost_centers(type, salary, status, level)\nTask: Retrieve value from area_registry with amount above the MIN(value) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS emp\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(level, date, salary, amount)\n attribute_groups(status, level, type, salary)\nTask: Select value from dispatch_queue that have at least one matching row in attribute_groups for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(type, salary, name, status)\n journal_entries(level, salary, code, id)\nTask: Select code from portfolio_index where type exists in journal_entries for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(name, date, type, id)\n facility_registry(value, amount, id, type)\nTask: Select value from workforce_data that have at least one matching row in facility_registry for the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(id, value, amount, type)\n sourcing_list(level, value, status, date)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(amount, name, salary, status)\n area_registry(name, value, status, type)\nTask: Find salary from portfolio_index where type appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(value, type, date, salary)\n portfolio_index(salary, status, code, date)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(level, date, code, value)\n cost_centers(level, type, amount, code)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(level, date, salary, amount)\n dispatch_queue(amount, name, level, code)\nTask: Retrieve value from workforce_data with amount above the COUNT(salary) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, date, value, code)\n portfolio_index(id, name, salary, status)\nTask: Retrieve code from dispatch_queue with value above the MAX(amount) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE value > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(date, code, level, salary)\n sales_registry(date, value, type, level)\nTask: Retrieve code from activity_log whose type is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, amount, name, date)\n sales_registry(amount, type, code, name)\nTask: Find code from portfolio_index where value exceeds the minimum amount from sales_registry for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(level, date, type, salary)\n sales_queue(code, level, date, status)\nTask: Select name from engagement_log that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(status, level, name, code)\n workforce_data(value, date, code, id)\nTask: Find salary from attribute_groups where value exceeds the average salary from workforce_data for the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE value > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(salary, code, type, date)\n sales_queue(level, value, date, id)\nTask: Retrieve id from engagement_log whose code is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(id, amount, name, code)\n personnel_registry(name, type, salary, level)\nTask: Find code from attribute_groups where type appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(status, date, level, name)\n receivables_log(amount, code, status, type)\nTask: Retrieve code from activity_log with value above the MAX(value) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE value > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(amount, level, value, id)\n facility_registry(id, value, name, date)\nTask: Find name from cost_centers where value exceeds the count of value from facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS inv\nWHERE value > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(amount, id, level, type)\n sales_registry(name, status, code, date)\nTask: Select value from stock_catalog where salary is greater than the maximum of value in sales_registry for matching code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(value, date, level, amount)\n facility_registry(id, value, code, status)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(id, type, level, code)\n sales_queue(level, code, status, type)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(value, amount, salary, name)\n stocking_sites(salary, value, type, status)\nTask: Retrieve id from sourcing_list that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(code, id, amount, name)\n area_registry(salary, value, date, type)\nTask: Find name from personnel_registry where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(date, status, name, level)\n portfolio_index(id, code, status, salary)\nTask: Retrieve amount from sales_queue whose id is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(id, status, salary, name)\n portfolio_index(status, id, name, value)\nTask: Find value from facility_registry where id appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(value, status, date, level)\n sales_registry(name, amount, status, type)\nTask: Retrieve value from acquisition_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(date, value, code, id)\n stock_catalog(type, status, level, salary)\nTask: Retrieve code from stocking_sites whose id is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(level, code, date, amount)\n area_registry(amount, name, level, value)\nTask: Select salary from activity_log where level exists in area_registry for the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS usr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(type, status, code, amount)\n attribute_groups(salary, value, level, status)\nTask: Retrieve value from facility_registry whose code is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(salary, status, type, date)\n stock_catalog(code, value, amount, type)\nTask: Select value from journal_entries where salary is greater than the total of salary in stock_catalog for matching code.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(code, salary, level, id)\n personnel_registry(name, salary, status, type)\nTask: Retrieve name from receivables_log with amount above the MIN(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(code, salary, level, id)\n sourcing_list(id, level, amount, type)\nTask: Retrieve salary from area_registry with amount above the COUNT(value) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(code, status, id, type)\n sourcing_list(amount, date, code, id)\nTask: Retrieve name from area_registry with salary above the COUNT(value) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE salary > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(value, type, date, amount)\n receivables_log(type, code, status, amount)\nTask: Select value from portfolio_index where level exists in receivables_log for the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(type, salary, level, date)\n area_registry(id, type, name, date)\nTask: Find value from cost_centers where level appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(level, amount, salary, type)\n stock_catalog(code, type, id, amount)\nTask: Retrieve code from engagement_log with value above the SUM(value) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE value > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(amount, type, status, name)\n personnel_registry(id, type, level, value)\nTask: Find value from workforce_data where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(type, date, amount, code)\n activity_log(type, code, id, date)\nTask: Select value from stock_catalog where amount is greater than the count of of salary in activity_log for matching type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(amount, id, code, status)\n facility_registry(date, salary, name, type)\nTask: Select amount from workforce_data where salary is greater than the count of of value in facility_registry for matching level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(type, status, salary, value)\n stock_catalog(type, date, value, name)\nTask: Find code from cost_centers where a matching record exists in stock_catalog with the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(name, code, status, date)\n personnel_registry(amount, level, type, status)\nTask: Select amount from receivables_log that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(id, status, level, type)\n facility_registry(status, value, code, type)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(level, amount, status, value)\n journal_entries(amount, id, name, level)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(id, date, amount, level)\n workforce_data(code, status, amount, name)\nTask: Select name from sales_queue that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(amount, code, level, status)\n receivables_log(code, name, amount, value)\nTask: Select amount from cost_centers that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(type, salary, id, value)\n portfolio_index(date, name, status, value)\nTask: Retrieve amount from acquisition_log with salary above the AVG(salary) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, type, status, value)\n stock_catalog(level, date, type, id)\nTask: Retrieve name from acquisition_log that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(salary, value, level, type)\n stock_catalog(date, code, id, value)\nTask: Select amount from workforce_data where amount is greater than the maximum of salary in stock_catalog for matching level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE amount > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, type, name, value)\n area_registry(status, amount, salary, name)\nTask: Select salary from portfolio_index that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(name, code, salary, level)\n stocking_sites(type, name, id, salary)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(date, name, level, value)\n sourcing_list(type, id, date, salary)\nTask: Select value from cost_centers where id exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(value, id, name, salary)\n attribute_groups(date, level, value, status)\nTask: Select value from area_registry where value is greater than the minimum of salary in attribute_groups for matching id.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE value > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(id, amount, value, type)\n portfolio_index(value, status, amount, type)\nTask: Select id from workforce_data where amount is greater than the count of of value in portfolio_index for matching type.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(level, date, value, type)\n receivables_log(type, code, amount, value)\nTask: Retrieve code from engagement_log whose code is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(level, salary, status, amount)\n sourcing_list(salary, date, name, id)\nTask: Retrieve value from journal_entries with value above the MAX(amount) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE value > (\n SELECT MAX(amount) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, id, code, status)\n attribute_groups(level, name, salary, date)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, name, salary, id)\n stock_catalog(date, salary, level, type)\nTask: Find salary from dispatch_queue where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(id, amount, name, value)\n stocking_sites(name, type, status, id)\nTask: Select value from stock_catalog where salary is greater than the average of amount in stocking_sites for matching code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(date, id, status, level)\n cost_centers(level, date, salary, amount)\nTask: Select id from portfolio_index that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(salary, name, value, code)\n acquisition_log(type, id, date, status)\nTask: Find code from cost_centers where value exceeds the minimum salary from acquisition_log for the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE value > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(date, level, amount, salary)\n dispatch_queue(level, status, amount, type)\nTask: Retrieve id from attribute_groups with salary above the AVG(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(salary, level, id, type)\n engagement_log(level, status, name, code)\nTask: Find amount from sales_registry where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(salary, value, type, amount)\n stock_catalog(id, date, salary, name)\nTask: Select name from journal_entries where type exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(amount, type, id, code)\n acquisition_log(date, value, amount, salary)\nTask: Find name from activity_log where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(id, name, status, type)\n dispatch_queue(amount, level, code, date)\nTask: Select salary from facility_registry where status exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(status, id, date, level)\n sales_registry(type, date, value, amount)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(type, code, date, id)\n sales_queue(status, amount, salary, code)\nTask: Select name from stock_catalog where value is greater than the count of of salary in sales_queue for matching code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(value, type, code, id)\n activity_log(id, code, amount, level)\nTask: Select id from engagement_log that have at least one matching row in activity_log for the same status.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(status, name, date, value)\n cost_centers(date, id, status, salary)\nTask: Select id from activity_log where salary is greater than the minimum of salary in cost_centers for matching id.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(salary, status, date, code)\n activity_log(date, id, name, code)\nTask: Find salary from cost_centers where value exceeds the average salary from activity_log for the same status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE value > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(date, name, id, type)\n attribute_groups(date, amount, name, level)\nTask: Retrieve id from sales_registry with value above the COUNT(amount) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, id, status, level)\n activity_log(type, value, name, level)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(date, id, amount, code)\n dispatch_queue(amount, type, status, date)\nTask: Find name from portfolio_index where status appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, id, date, name)\n journal_entries(type, level, id, code)\nTask: Select salary from sourcing_list where level exists in journal_entries for the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(value, level, name, date)\n workforce_data(status, date, code, amount)\nTask: Select name from sales_queue where code exists in workforce_data for the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(code, id, name, status)\n sales_queue(status, code, salary, level)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(amount, salary, name, code)\n sales_registry(value, salary, status, id)\nTask: Find amount from dispatch_queue where status appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(code, type, level, value)\n receivables_log(status, type, name, code)\nTask: Select salary from activity_log where salary is greater than the count of of salary in receivables_log for matching status.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(level, status, name, date)\n portfolio_index(name, level, value, type)\nTask: Select id from stock_catalog that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(status, date, id, amount)\n attribute_groups(id, status, code, value)\nTask: Select code from sales_registry that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(level, amount, type, date)\n workforce_data(value, amount, level, code)\nTask: Find id from journal_entries where code appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(salary, date, value, type)\n workforce_data(type, value, status, date)\nTask: Find amount from cost_centers where type appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(type, amount, level, date)\n sales_queue(status, level, amount, salary)\nTask: Find code from personnel_registry where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, amount, level, id)\n personnel_registry(date, status, salary, code)\nTask: Select value from stock_catalog where amount is greater than the count of of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, type, status, name)\n sourcing_list(code, value, amount, status)\nTask: Select code from sales_queue where id exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(code, amount, date, salary)\n receivables_log(amount, code, id, name)\nTask: Retrieve amount from sales_queue with amount above the MIN(amount) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "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}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(code, level, salary, status)\n sourcing_list(level, status, code, type)\nTask: Find id from stock_catalog where salary exceeds the maximum salary from sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(type, id, code, level)\n stock_catalog(type, name, value, amount)\nTask: Retrieve name from acquisition_log whose level is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(value, type, id, salary)\n engagement_log(name, status, salary, type)\nTask: Select code from portfolio_index where amount is greater than the maximum of amount in engagement_log for matching status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(date, level, name, value)\n dispatch_queue(level, status, amount, date)\nTask: Select salary from sales_queue that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(salary, amount, date, id)\n stock_catalog(id, value, name, level)\nTask: Find code from sales_registry where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(code, date, value, status)\n activity_log(amount, level, name, salary)\nTask: Select salary from area_registry where status exists in activity_log for the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(level, value, salary, id)\n area_registry(code, value, name, date)\nTask: Find code from engagement_log where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(code, id, value, name)\n dispatch_queue(name, value, id, salary)\nTask: Find amount from sales_registry where amount exceeds the minimum value from dispatch_queue for the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE amount > (\n SELECT MIN(value) FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(salary, date, name, amount)\n cost_centers(status, date, id, value)\nTask: Select salary from journal_entries where code exists in cost_centers for the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(id, type, salary, level)\n journal_entries(id, date, status, value)\nTask: Select code from attribute_groups where id exists in journal_entries for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(status, level, name, value)\n sales_queue(salary, value, id, date)\nTask: Select id from sales_registry that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(value, salary, amount, id)\n activity_log(level, value, code, amount)\nTask: Find code from area_registry where status appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(id, amount, date, name)\n activity_log(status, id, type, code)\nTask: Retrieve value from acquisition_log whose code is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(code, name, value, level)\n acquisition_log(name, level, value, date)\nTask: Select code from personnel_registry where amount is greater than the minimum of value in acquisition_log for matching code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE amount > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(type, status, date, salary)\n facility_registry(type, status, date, amount)\nTask: Find name from area_registry where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(date, amount, id, name)\n journal_entries(level, type, date, id)\nTask: Find salary from workforce_data where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(salary, value, code, amount)\n journal_entries(amount, code, status, type)\nTask: Retrieve id from cost_centers with amount above the SUM(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(code, level, value, type)\n attribute_groups(type, date, salary, status)\nTask: Retrieve code from workforce_data with salary above the AVG(value) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE salary > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(id, salary, name, code)\n stock_catalog(id, amount, status, type)\nTask: Retrieve code from workforce_data whose level is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(value, id, level, amount)\n stocking_sites(name, date, salary, status)\nTask: Retrieve name from engagement_log with amount above the AVG(salary) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(value, status, amount, id)\n cost_centers(type, salary, code, name)\nTask: Select salary from workforce_data where salary is greater than the minimum of amount in cost_centers for matching id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(code, level, salary, name)\n sales_queue(date, code, type, level)\nTask: Retrieve amount from portfolio_index with value above the AVG(salary) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE value > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "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}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(type, value, code, salary)\n personnel_registry(salary, date, value, type)\nTask: Select salary from stock_catalog that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(status, code, name, date)\n attribute_groups(code, value, salary, date)\nTask: Select id from acquisition_log where code exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, salary, id, date)\n attribute_groups(salary, id, value, status)\nTask: Find value from dispatch_queue where status appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(id, code, value, level)\n facility_registry(status, level, code, value)\nTask: Find name from engagement_log where amount exceeds the maximum value from facility_registry for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE amount > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(amount, value, id, name)\n engagement_log(status, salary, value, name)\nTask: Retrieve name from sourcing_list whose code is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(id, code, value, salary)\n attribute_groups(date, id, name, value)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(type, code, name, salary)\n attribute_groups(id, date, value, type)\nTask: Retrieve amount from engagement_log with value above the MIN(salary) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE value > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(name, salary, code, type)\n activity_log(code, date, status, salary)\nTask: Find value from engagement_log where value exceeds the count of salary from activity_log for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(salary, name, status, code)\n cost_centers(level, date, amount, name)\nTask: Select name from personnel_registry where salary is greater than the maximum of value in cost_centers for matching id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE salary > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(status, code, salary, date)\n workforce_data(level, value, salary, code)\nTask: Select value from acquisition_log that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(name, value, date, id)\n sales_queue(salary, type, name, amount)\nTask: Find name from personnel_registry where amount exceeds the count of value from sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(amount, date, salary, name)\n sales_queue(name, value, type, id)\nTask: Select salary from workforce_data where status exists in sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(value, name, id, level)\n sales_registry(code, amount, level, name)\nTask: Find code from portfolio_index where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(salary, code, value, level)\n receivables_log(date, amount, salary, id)\nTask: Find name from stocking_sites where salary exceeds the maximum salary from receivables_log for the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(level, salary, value, amount)\n area_registry(level, salary, code, status)\nTask: Find name from sales_queue where level appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(id, salary, level, amount)\n area_registry(level, salary, id, amount)\nTask: Select code from attribute_groups where salary is greater than the average of salary in area_registry for matching id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(value, amount, salary, id)\n facility_registry(type, salary, code, status)\nTask: Select code from acquisition_log that have at least one matching row in facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(id, amount, salary, level)\n acquisition_log(amount, code, type, level)\nTask: Retrieve value from receivables_log with amount above the SUM(salary) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(type, date, value, name)\n activity_log(amount, status, level, type)\nTask: Select id from cost_centers where amount is greater than the average of salary in activity_log for matching id.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE amount > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(amount, level, date, value)\n portfolio_index(status, id, level, code)\nTask: Select amount from cost_centers where value is greater than the count of of value in portfolio_index for matching status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE value > (\n SELECT COUNT(value) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(date, status, amount, value)\n stock_catalog(status, value, type, date)\nTask: Retrieve code from activity_log whose id is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(date, code, salary, name)\n cost_centers(salary, status, amount, date)\nTask: Select salary from portfolio_index that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, id, code, level)\n dispatch_queue(name, value, status, amount)\nTask: Find amount from sourcing_list where salary exceeds the total amount from dispatch_queue for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(salary, status, type, code)\n activity_log(date, type, status, level)\nTask: Select value from receivables_log where level exists in activity_log for the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(code, date, type, id)\n stock_catalog(id, status, code, date)\nTask: Find name from workforce_data where amount exceeds the minimum amount from stock_catalog for the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE amount > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(name, salary, id, date)\n stocking_sites(value, date, salary, type)\nTask: Find code from portfolio_index where code appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, level, code, id)\n cost_centers(type, name, date, id)\nTask: Find amount from dispatch_queue where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(value, status, level, name)\n stock_catalog(code, date, name, value)\nTask: Find salary from sourcing_list where value exceeds the minimum amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE value > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, id, level, value)\n portfolio_index(name, level, id, type)\nTask: Retrieve name from attribute_groups whose code is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(date, value, amount, level)\n sourcing_list(name, salary, date, level)\nTask: Select code from stock_catalog where salary is greater than the total of amount in sourcing_list for matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(salary, name, type, code)\n facility_registry(value, id, name, status)\nTask: Find value from sales_queue where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, level, amount, id)\n receivables_log(name, value, type, date)\nTask: Retrieve code from journal_entries whose status is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(value, amount, type, salary)\n receivables_log(id, salary, date, name)\nTask: Find amount from activity_log where type appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(level, type, value, code)\n sourcing_list(date, status, id, value)\nTask: Select name from attribute_groups where code exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(id, amount, level, status)\n stock_catalog(name, salary, level, date)\nTask: Find id from facility_registry where amount exceeds the maximum amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(code, level, type, date)\n stock_catalog(salary, name, status, id)\nTask: Find value from sourcing_list where id appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(name, level, value, salary)\n engagement_log(value, id, name, level)\nTask: Select salary from sales_queue where type exists in engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(date, amount, name, code)\n sales_queue(type, code, salary, level)\nTask: Retrieve value from dispatch_queue with value above the AVG(amount) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE value > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(date, level, type, amount)\n activity_log(id, status, type, date)\nTask: Find name from personnel_registry where salary exceeds the maximum salary from activity_log for the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(name, id, salary, value)\n cost_centers(value, name, level, type)\nTask: Select id from workforce_data where value is greater than the minimum of amount in cost_centers for matching type.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE value > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(type, salary, amount, id)\n acquisition_log(value, date, name, status)\nTask: Find code from sales_queue where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(type, level, date, amount)\n receivables_log(salary, amount, value, type)\nTask: Retrieve id from stocking_sites whose id is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(type, salary, code, value)\n cost_centers(type, code, level, amount)\nTask: Retrieve value from stocking_sites with amount above the MIN(salary) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE amount > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, value, salary, level)\n personnel_registry(id, status, code, type)\nTask: Retrieve name from portfolio_index that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(date, code, name, type)\n cost_centers(status, salary, id, amount)\nTask: Select value from receivables_log where salary is greater than the total of salary in cost_centers for matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(value, id, type, salary)\n dispatch_queue(code, value, id, name)\nTask: Select code from stock_catalog where amount is greater than the count of of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(date, type, level, id)\n attribute_groups(code, value, name, id)\nTask: Retrieve salary from portfolio_index whose status is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(date, code, amount, status)\n sales_registry(status, type, code, date)\nTask: Find salary from engagement_log where type appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(code, value, id, salary)\n stocking_sites(level, id, name, date)\nTask: Select id from receivables_log where id exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(amount, type, salary, value)\n workforce_data(date, status, level, value)\nTask: Select name from sales_queue where type exists in workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(type, id, name, date)\n portfolio_index(id, level, value, code)\nTask: Find name from receivables_log where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(value, status, level, amount)\n acquisition_log(code, id, type, level)\nTask: Find code from area_registry where status appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, value, status, level)\n stocking_sites(name, value, level, type)\nTask: Find name from activity_log where salary exceeds the count of amount from stocking_sites for the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(code, salary, name, level)\n area_registry(status, name, code, level)\nTask: Select code from stock_catalog where status exists in area_registry for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(salary, date, amount, code)\n receivables_log(id, salary, type, date)\nTask: Retrieve id from cost_centers whose level is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(type, code, value, status)\n cost_centers(id, level, value, salary)\nTask: Retrieve id from engagement_log whose status is found in cost_centers rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(date, amount, name, code)\n sales_queue(code, type, name, status)\nTask: Select amount from area_registry where salary is greater than the average of value in sales_queue for matching code.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE salary > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, amount, type, id)\n personnel_registry(salary, value, date, amount)\nTask: Retrieve amount from cost_centers whose status is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(level, value, amount, id)\n engagement_log(amount, status, salary, level)\nTask: Find id from workforce_data where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(id, name, type, salary)\n workforce_data(date, value, type, amount)\nTask: Find salary from facility_registry where id appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, salary, value, id)\n receivables_log(salary, date, code, id)\nTask: Find id from personnel_registry where a matching record exists in receivables_log with the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(salary, name, code, status)\n acquisition_log(status, type, name, id)\nTask: Select value from facility_registry where status exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(status, level, name, type)\n acquisition_log(level, code, status, name)\nTask: Retrieve amount from journal_entries whose level is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(status, value, code, type)\n dispatch_queue(name, type, level, date)\nTask: Find salary from activity_log where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(amount, date, salary, code)\n cost_centers(status, salary, type, id)\nTask: Select salary from facility_registry where value is greater than the average of value in cost_centers for matching type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE value > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(amount, id, value, code)\n engagement_log(amount, name, status, id)\nTask: Find id from acquisition_log where value exceeds the average value from engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE value > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(id, name, date, level)\n sales_queue(amount, date, code, type)\nTask: Find amount from stock_catalog where type appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(date, amount, type, id)\n dispatch_queue(id, type, amount, status)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(date, type, salary, code)\n portfolio_index(salary, id, type, name)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, code, type, amount)\n area_registry(code, name, amount, salary)\nTask: Retrieve code from stock_catalog with amount above the COUNT(amount) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, amount, status, name)\n acquisition_log(id, status, level, date)\nTask: Retrieve amount from portfolio_index with salary above the COUNT(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(name, salary, amount, code)\n workforce_data(level, status, id, amount)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(value, code, status, salary)\n personnel_registry(code, name, type, id)\nTask: Select name from acquisition_log that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(date, type, salary, amount)\n journal_entries(status, salary, amount, type)\nTask: Find id from attribute_groups where salary exceeds the maximum salary from journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE salary > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(code, salary, amount, date)\n personnel_registry(value, level, status, id)\nTask: Select value from dispatch_queue where value is greater than the minimum of amount in personnel_registry for matching id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE value > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(id, value, status, salary)\n attribute_groups(value, salary, name, level)\nTask: Select id from journal_entries that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(date, status, amount, value)\n facility_registry(name, id, level, date)\nTask: Select value from journal_entries where salary is greater than the minimum of amount in facility_registry for matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(name, date, level, type)\n stocking_sites(id, value, code, level)\nTask: Retrieve code from engagement_log whose code is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS empl\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, name, type, code)\n sales_queue(name, type, id, level)\nTask: Select value from portfolio_index that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(status, date, code, name)\n dispatch_queue(date, id, name, code)\nTask: Find id from journal_entries where id appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(level, amount, code, salary)\n engagement_log(id, level, code, status)\nTask: Retrieve amount from journal_entries whose code is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(level, value, status, amount)\n workforce_data(id, code, type, date)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(value, type, salary, date)\n stocking_sites(code, id, date, level)\nTask: Find amount from stock_catalog where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(code, salary, id, type)\n stocking_sites(salary, type, value, status)\nTask: Retrieve salary from journal_entries whose type is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(id, status, type, value)\n sourcing_list(id, level, name, status)\nTask: Retrieve amount from stocking_sites with value above the MIN(salary) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE value > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(name, salary, value, status)\n stock_catalog(status, type, value, name)\nTask: Retrieve code from area_registry that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(value, id, level, amount)\n acquisition_log(level, status, type, name)\nTask: Select amount from area_registry where salary is greater than the average of amount in acquisition_log for matching type.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(level, date, value, type)\n workforce_data(name, salary, code, amount)\nTask: Find salary from personnel_registry where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(name, level, code, value)\n area_registry(status, salary, date, level)\nTask: Find value from acquisition_log where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(type, name, value, code)\n sales_queue(salary, amount, name, level)\nTask: Find salary from engagement_log where type appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(id, type, name, value)\n dispatch_queue(salary, amount, level, value)\nTask: Find id from personnel_registry where amount exceeds the count of salary from dispatch_queue for the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(type, salary, id, value)\n acquisition_log(date, code, level, status)\nTask: Find name from journal_entries where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(id, salary, amount, status)\n sales_queue(status, date, value, amount)\nTask: Select id from activity_log where level exists in sales_queue for the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, code, status, salary)\n activity_log(value, code, status, date)\nTask: Select value from dispatch_queue that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, value, id, date)\n area_registry(id, date, amount, value)\nTask: Find value from acquisition_log where type appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(name, amount, date, code)\n workforce_data(type, name, salary, status)\nTask: Select salary from stocking_sites where value is greater than the total of salary in workforce_data for matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(salary, date, amount, type)\n stocking_sites(date, level, code, id)\nTask: Find name from area_registry where type appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(status, value, level, amount)\n engagement_log(status, type, code, date)\nTask: Select code from area_registry that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(amount, level, id, salary)\n personnel_registry(level, amount, id, status)\nTask: Select name from engagement_log where salary is greater than the average of salary in personnel_registry for matching status.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(status, date, id, amount)\n sourcing_list(date, level, value, id)\nTask: Retrieve salary from dispatch_queue with value above the AVG(amount) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE value > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(type, value, salary, date)\n sales_queue(value, code, id, name)\nTask: Select value from dispatch_queue where status exists in sales_queue for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, value, date, salary)\n engagement_log(salary, status, type, amount)\nTask: Find value from dispatch_queue where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(salary, name, type, value)\n activity_log(status, name, amount, code)\nTask: Select salary from journal_entries where salary is greater than the average of amount in activity_log for matching code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(amount, type, value, code)\n activity_log(value, name, id, status)\nTask: Find id from engagement_log where value exceeds the total value from activity_log for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE value > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(level, name, status, amount)\n receivables_log(amount, id, date, value)\nTask: Find code from journal_entries where id appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(date, id, amount, code)\n sales_queue(date, salary, status, value)\nTask: Find name from acquisition_log where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(level, salary, value, code)\n sourcing_list(amount, name, date, id)\nTask: Select code from receivables_log that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(date, level, type, value)\n sales_queue(value, date, amount, id)\nTask: Select id from facility_registry where salary is greater than the maximum of amount in sales_queue for matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE salary > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(date, type, name, id)\n portfolio_index(level, salary, name, date)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(level, status, salary, code)\n area_registry(value, type, name, date)\nTask: Retrieve amount from receivables_log with salary above the MAX(amount) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(date, value, level, amount)\n area_registry(level, salary, date, name)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, id, salary, level)\n activity_log(salary, type, amount, date)\nTask: Find salary from acquisition_log where type appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(amount, status, value, type)\n sales_queue(name, status, id, amount)\nTask: Find value from activity_log where type appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(salary, level, date, status)\n engagement_log(date, name, level, type)\nTask: Find code from journal_entries where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(salary, code, name, value)\n sourcing_list(salary, name, type, status)\nTask: Find amount from workforce_data where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(type, amount, level, date)\n sourcing_list(status, type, amount, id)\nTask: Find code from area_registry where amount exceeds the minimum amount from sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(amount, level, date, name)\n sourcing_list(value, type, code, status)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(salary, id, amount, name)\n activity_log(date, salary, code, name)\nTask: Select name from receivables_log where amount is greater than the total of salary in activity_log for matching level.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(name, type, status, salary)\n acquisition_log(code, name, date, id)\nTask: Find id from personnel_registry where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(status, code, id, salary)\n engagement_log(name, value, amount, id)\nTask: Find code from stock_catalog where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(id, amount, salary, date)\n area_registry(type, name, date, id)\nTask: Select id from activity_log where id exists in area_registry for the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(date, id, level, status)\n area_registry(name, type, value, level)\nTask: Retrieve name from stocking_sites whose code is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(type, status, level, id)\n portfolio_index(name, type, code, amount)\nTask: Retrieve value from cost_centers whose type is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(name, status, level, date)\n sales_registry(value, salary, status, date)\nTask: Retrieve name from personnel_registry with amount above the AVG(value) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(name, code, date, level)\n attribute_groups(amount, salary, date, type)\nTask: Find value from sales_queue where status appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(level, status, date, amount)\n activity_log(value, name, type, amount)\nTask: Find amount from personnel_registry where amount exceeds the count of salary from activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(id, amount, date, name)\n activity_log(salary, id, code, value)\nTask: Find salary from stocking_sites where level appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(date, salary, name, type)\n acquisition_log(name, level, date, status)\nTask: Retrieve name from area_registry with value above the COUNT(amount) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE value > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(name, id, value, type)\n attribute_groups(id, name, type, salary)\nTask: Select id from acquisition_log that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(id, amount, code, date)\n sales_queue(level, value, date, amount)\nTask: Select salary from portfolio_index that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(level, date, salary, amount)\n sourcing_list(date, value, salary, amount)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(level, amount, salary, date)\n attribute_groups(salary, id, code, status)\nTask: Retrieve value from sourcing_list whose type is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(status, id, amount, value)\n cost_centers(status, date, id, type)\nTask: Select code from dispatch_queue where amount is greater than the minimum of salary in cost_centers for matching status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(level, amount, name, type)\n portfolio_index(name, level, amount, salary)\nTask: Find salary from sourcing_list where value exceeds the count of salary from portfolio_index for the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(value, id, salary, code)\n attribute_groups(name, salary, date, type)\nTask: Retrieve id from stock_catalog with salary above the AVG(value) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE salary > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(value, code, level, amount)\n facility_registry(amount, status, name, date)\nTask: Retrieve amount from stocking_sites whose status is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(amount, type, value, id)\n cost_centers(type, id, date, value)\nTask: Select value from stock_catalog where salary is greater than the maximum of amount in cost_centers for matching id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(code, id, amount, type)\n sales_queue(type, name, date, value)\nTask: Select name from facility_registry where amount is greater than the minimum of value in sales_queue for matching code.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE amount > (\n SELECT MIN(value) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(name, date, salary, amount)\n journal_entries(type, code, salary, level)\nTask: Retrieve value from cost_centers whose type is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(date, salary, amount, value)\n portfolio_index(type, salary, amount, name)\nTask: Find code from cost_centers where type appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(value, salary, code, level)\n cost_centers(date, type, code, value)\nTask: Find value from sales_queue where id appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT value FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(code, level, value, id)\n stock_catalog(value, id, type, amount)\nTask: Find value from cost_centers where salary exceeds the count of amount from stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE salary > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(code, value, status, name)\n portfolio_index(id, amount, value, name)\nTask: Retrieve salary from sourcing_list with salary above the SUM(amount) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(level, code, type, value)\n attribute_groups(level, date, code, name)\nTask: Select id from cost_centers where value is greater than the total of amount in attribute_groups for matching code.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE value > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(value, status, type, code)\n dispatch_queue(name, value, id, type)\nTask: Select code from area_registry where status exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, code, value, salary)\n engagement_log(code, value, type, level)\nTask: Find value from dispatch_queue where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(date, code, salary, amount)\n acquisition_log(amount, level, name, date)\nTask: Retrieve code from area_registry with value above the MIN(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE value > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(id, name, level, status)\n sales_registry(amount, value, salary, level)\nTask: Find code from area_registry where code appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(level, type, id, salary)\n acquisition_log(date, id, type, salary)\nTask: Find salary from receivables_log where salary exceeds the average salary from acquisition_log for the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(code, status, amount, salary)\n engagement_log(code, status, name, amount)\nTask: Select amount from cost_centers where id exists in engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(type, date, level, name)\n stock_catalog(salary, amount, value, status)\nTask: Select salary from receivables_log that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(amount, salary, value, name)\n attribute_groups(value, type, level, id)\nTask: Select code from activity_log where salary is greater than the total of value in attribute_groups for matching level.\nSQL:", "sql": "SELECT code FROM activity_log AS usr\nWHERE salary > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(date, amount, salary, code)\n receivables_log(date, value, code, name)\nTask: Select code from sourcing_list where salary is greater than the count of of value in receivables_log for matching level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE salary > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(code, value, level, id)\n sales_registry(status, code, name, level)\nTask: Select value from journal_entries that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, code, name, id)\n personnel_registry(amount, date, value, name)\nTask: Select value from stocking_sites where salary is greater than the minimum of amount in personnel_registry for matching type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE salary > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, code, id, date)\n stocking_sites(date, status, level, name)\nTask: Select code from stock_catalog where status exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(date, name, amount, level)\n sourcing_list(code, status, level, type)\nTask: Find id from activity_log where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(amount, id, name, code)\n sourcing_list(value, level, salary, amount)\nTask: Select name from activity_log where amount is greater than the count of of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, date, amount, type)\n activity_log(value, salary, name, level)\nTask: Find code from portfolio_index where salary exceeds the maximum value from activity_log for the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(level, name, value, amount)\n portfolio_index(status, date, type, name)\nTask: Find name from stocking_sites where salary exceeds the average amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(name, status, level, id)\n area_registry(type, level, status, salary)\nTask: Find name from sourcing_list where level appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(value, level, code, type)\n cost_centers(level, salary, id, date)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(type, date, salary, amount)\n receivables_log(name, type, status, id)\nTask: Select amount from sourcing_list where id exists in receivables_log for the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(code, salary, name, status)\n attribute_groups(type, value, salary, id)\nTask: Retrieve id from dispatch_queue with amount above the MIN(value) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE amount > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(salary, level, value, code)\n sourcing_list(status, code, amount, date)\nTask: Select id from engagement_log that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(id, code, status, name)\n sales_registry(type, id, date, code)\nTask: Find id from facility_registry where id appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(value, amount, date, level)\n engagement_log(id, type, name, amount)\nTask: Select amount from receivables_log where salary is greater than the maximum of salary in engagement_log for matching id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(amount, level, type, name)\n stocking_sites(id, name, amount, type)\nTask: Retrieve id from journal_entries whose id is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(amount, id, level, salary)\n sales_registry(level, name, salary, type)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(name, date, type, level)\n sales_registry(type, salary, name, code)\nTask: Find salary from sourcing_list where value exceeds the count of salary from sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(salary, status, amount, value)\n dispatch_queue(value, status, date, id)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(salary, id, date, code)\n sales_registry(type, name, salary, level)\nTask: Find value from stocking_sites where amount exceeds the total salary from sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(salary, date, amount, level)\n dispatch_queue(id, name, value, level)\nTask: Find id from sales_queue where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(level, name, date, id)\n portfolio_index(name, amount, salary, code)\nTask: Retrieve id from stock_catalog with value above the MIN(salary) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE value > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(date, salary, amount, status)\n sourcing_list(id, date, status, value)\nTask: Retrieve amount from cost_centers whose code is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(amount, value, type, name)\n stocking_sites(code, date, id, type)\nTask: Select value from activity_log where salary is greater than the maximum of salary in stocking_sites for matching id.\nSQL:", "sql": "SELECT value FROM activity_log AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(type, salary, level, code)\n stocking_sites(amount, salary, status, id)\nTask: Retrieve salary from receivables_log whose level is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(id, status, amount, salary)\n personnel_registry(status, id, value, salary)\nTask: Select value from acquisition_log where id exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(code, salary, value, amount)\n facility_registry(value, status, salary, name)\nTask: Select id from personnel_registry where id exists in facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(level, code, type, date)\n stock_catalog(code, type, level, value)\nTask: Find value from engagement_log where code appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(level, name, status, value)\n stocking_sites(code, value, type, salary)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(value, code, date, salary)\n dispatch_queue(id, value, status, level)\nTask: Select value from acquisition_log where code exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, level, amount, value)\n sales_registry(name, value, amount, salary)\nTask: Find salary from activity_log where type appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(status, code, level, date)\n engagement_log(value, name, id, type)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(code, type, date, amount)\n engagement_log(level, value, type, id)\nTask: Retrieve salary from sourcing_list with amount above the COUNT(amount) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(status, level, type, salary)\n sales_queue(type, code, level, status)\nTask: Find amount from engagement_log where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(code, level, type, status)\n facility_registry(type, date, code, level)\nTask: Find name from attribute_groups where salary exceeds the maximum amount from facility_registry for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(date, amount, level, type)\n dispatch_queue(id, name, level, status)\nTask: Select id from stocking_sites that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, date, status, name)\n acquisition_log(level, name, status, id)\nTask: Select id from dispatch_queue that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(date, amount, status, name)\n engagement_log(id, date, status, amount)\nTask: Find name from stocking_sites where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(value, code, amount, salary)\n attribute_groups(id, code, name, level)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(value, name, type, id)\n sales_registry(amount, date, level, status)\nTask: Retrieve value from area_registry that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(id, status, name, level)\n dispatch_queue(name, status, salary, amount)\nTask: Retrieve value from sales_registry whose level is found in dispatch_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(name, type, id, level)\n workforce_data(status, date, id, level)\nTask: Find value from stocking_sites where id appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(date, value, code, name)\n workforce_data(name, code, status, value)\nTask: Find code from stocking_sites where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(type, value, amount, status)\n stock_catalog(id, name, amount, status)\nTask: Find value from portfolio_index where amount exceeds the total salary from stock_catalog for the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(code, date, salary, amount)\n area_registry(salary, date, status, code)\nTask: Find id from sales_registry where value exceeds the count of amount from area_registry for the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(level, amount, value, status)\n sales_registry(status, id, amount, type)\nTask: Retrieve code from engagement_log whose id is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(status, name, code, id)\n stocking_sites(type, amount, status, name)\nTask: Retrieve amount from sales_registry whose id is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(code, value, salary, status)\n portfolio_index(id, code, name, date)\nTask: Find name from area_registry where id appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(type, amount, code, name)\n portfolio_index(status, value, id, amount)\nTask: Retrieve name from engagement_log whose code is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(type, id, amount, value)\n dispatch_queue(status, level, value, code)\nTask: Retrieve code from sales_registry whose level is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(salary, name, amount, code)\n sourcing_list(salary, type, id, name)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(name, date, level, type)\n acquisition_log(level, type, amount, code)\nTask: Find code from journal_entries where value exceeds the maximum amount from acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE value > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(salary, amount, type, date)\n sales_queue(date, status, id, name)\nTask: Retrieve amount from workforce_data with value above the MIN(salary) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE value > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(value, amount, salary, level)\n sourcing_list(level, amount, type, name)\nTask: Select code from portfolio_index where code exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(amount, status, code, name)\n dispatch_queue(value, salary, status, level)\nTask: Select value from acquisition_log where type exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(value, type, date, code)\n engagement_log(date, name, type, level)\nTask: Find name from journal_entries where status appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(name, amount, status, salary)\n attribute_groups(status, name, id, code)\nTask: Find name from sales_registry where amount exceeds the total value from attribute_groups for the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE amount > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(status, id, code, value)\n workforce_data(salary, type, id, level)\nTask: Find name from stocking_sites where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(name, type, status, id)\n workforce_data(id, amount, salary, status)\nTask: Find name from stocking_sites where salary exceeds the count of amount from workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, type, level, id)\n workforce_data(id, name, amount, value)\nTask: Select amount from stock_catalog where code exists in workforce_data for the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, level, value, type)\n portfolio_index(amount, id, type, level)\nTask: Retrieve amount from acquisition_log that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(salary, id, amount, date)\n engagement_log(value, type, salary, name)\nTask: Select id from receivables_log where amount is greater than the average of salary in engagement_log for matching code.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(type, amount, date, name)\n attribute_groups(code, status, name, value)\nTask: Retrieve id from workforce_data with salary above the SUM(amount) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(value, status, salary, code)\n workforce_data(level, date, amount, value)\nTask: Select id from stocking_sites where type exists in workforce_data for the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(salary, type, level, status)\n receivables_log(type, name, value, code)\nTask: Retrieve value from engagement_log whose id is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(level, name, id, code)\n area_registry(date, value, id, status)\nTask: Retrieve name from journal_entries with amount above the COUNT(salary) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(type, code, name, status)\n attribute_groups(amount, salary, id, level)\nTask: Find id from sales_registry where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, id, level, amount)\n sales_registry(amount, level, type, value)\nTask: Find value from attribute_groups where amount exceeds the count of amount from sales_registry for the same level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(code, id, date, value)\n personnel_registry(name, code, salary, type)\nTask: Find salary from sales_queue where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(date, status, value, level)\n engagement_log(value, type, code, level)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(code, id, level, salary)\n workforce_data(level, id, name, amount)\nTask: Select name from activity_log where code exists in workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(value, code, date, amount)\n stocking_sites(amount, status, name, id)\nTask: Select amount from portfolio_index that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(status, code, value, type)\n portfolio_index(date, code, name, salary)\nTask: Retrieve code from sales_registry whose id is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(id, code, level, type)\n sales_queue(amount, id, value, status)\nTask: Retrieve amount from receivables_log whose id is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(code, name, status, salary)\n workforce_data(type, salary, level, status)\nTask: Select id from area_registry that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(name, type, amount, code)\n cost_centers(salary, value, name, status)\nTask: Retrieve id from stock_catalog that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(level, amount, value, code)\n engagement_log(salary, name, type, level)\nTask: Find value from portfolio_index where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(code, type, status, date)\n receivables_log(date, id, salary, code)\nTask: Select name from portfolio_index that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(id, type, code, name)\n dispatch_queue(code, id, type, salary)\nTask: Select amount from engagement_log where code exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(value, status, id, code)\n journal_entries(amount, salary, type, name)\nTask: Find amount from sourcing_list where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(id, amount, name, date)\n sourcing_list(code, status, name, date)\nTask: Find salary from stock_catalog where amount exceeds the average value from sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE amount > (\n SELECT AVG(value) FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(level, salary, type, date)\n cost_centers(status, type, id, date)\nTask: Select name from area_registry that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(status, name, code, type)\n facility_registry(amount, id, type, value)\nTask: Select id from cost_centers where code exists in facility_registry for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(date, level, salary, type)\n personnel_registry(code, level, id, amount)\nTask: Find value from stocking_sites where type appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(name, salary, level, status)\n receivables_log(id, status, salary, amount)\nTask: Find salary from sales_registry where status appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(type, date, id, status)\n receivables_log(salary, status, type, amount)\nTask: Find salary from stock_catalog where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(code, level, date, status)\n engagement_log(type, name, code, value)\nTask: Find name from cost_centers where level appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT name FROM cost_centers AS inv\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(date, id, status, level)\n personnel_registry(id, value, level, date)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(name, id, status, level)\n sales_queue(name, amount, id, value)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(code, status, salary, name)\n stocking_sites(value, salary, id, date)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, value, name, status)\n stock_catalog(type, name, date, amount)\nTask: Find value from sourcing_list where status appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(code, type, date, amount)\n attribute_groups(status, type, id, salary)\nTask: Retrieve value from journal_entries with amount above the MAX(value) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(salary, type, name, level)\n attribute_groups(amount, value, date, level)\nTask: Retrieve id from area_registry whose status is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, value, code, salary)\n portfolio_index(name, code, value, amount)\nTask: Find code from stock_catalog where id appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(level, amount, value, date)\n personnel_registry(name, status, level, salary)\nTask: Retrieve name from sourcing_list with salary above the MIN(salary) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "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}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(value, salary, amount, date)\n cost_centers(date, code, value, level)\nTask: Find salary from sales_queue where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(code, date, type, id)\n attribute_groups(status, code, id, amount)\nTask: Find name from sales_queue where status appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(salary, date, type, value)\n journal_entries(id, value, status, level)\nTask: Find name from receivables_log where amount exceeds the average amount from journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(name, date, status, id)\n dispatch_queue(salary, date, level, code)\nTask: Find id from area_registry where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(date, value, salary, name)\n personnel_registry(value, date, salary, code)\nTask: Find amount from acquisition_log where salary exceeds the count of value from personnel_registry for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(type, status, id, name)\n stock_catalog(id, level, salary, value)\nTask: Find salary from engagement_log where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(code, date, value, level)\n acquisition_log(salary, amount, type, status)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(status, level, name, value)\n portfolio_index(name, code, salary, id)\nTask: Select code from stocking_sites where salary is greater than the total of salary in portfolio_index for matching level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(amount, date, level, name)\n facility_registry(name, salary, amount, id)\nTask: Select code from sales_registry where salary is greater than the average of amount in facility_registry for matching type.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, value, name, id)\n attribute_groups(value, type, code, level)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(type, id, level, salary)\n portfolio_index(type, level, salary, date)\nTask: Retrieve name from engagement_log whose code is found in portfolio_index rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(level, status, date, value)\n sales_queue(level, name, date, value)\nTask: Find value from stock_catalog where value exceeds the minimum value from sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE value > (\n SELECT MIN(value) FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(amount, code, level, type)\n journal_entries(salary, date, id, type)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, type, name, level)\n sourcing_list(id, type, amount, salary)\nTask: Retrieve id from dispatch_queue with amount above the MAX(salary) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(date, id, salary, type)\n dispatch_queue(type, code, date, name)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(id, salary, code, type)\n sales_queue(date, status, amount, salary)\nTask: Select id from area_registry where amount is greater than the average of amount in sales_queue for matching level.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(value, code, name, id)\n acquisition_log(code, date, value, id)\nTask: Retrieve amount from cost_centers with amount above the COUNT(value) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(code, status, type, value)\n area_registry(id, type, date, value)\nTask: Select name from sourcing_list that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(name, type, status, value)\n receivables_log(code, salary, amount, date)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(value, amount, code, level)\n cost_centers(amount, level, name, id)\nTask: Find name from journal_entries where amount exceeds the maximum value from cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE amount > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(salary, amount, type, value)\n stock_catalog(type, code, salary, status)\nTask: Find name from area_registry where value exceeds the maximum salary from stock_catalog for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE value > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(amount, code, salary, value)\n sourcing_list(date, salary, level, id)\nTask: Retrieve id from dispatch_queue with value above the MIN(amount) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE value > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(date, salary, type, code)\n receivables_log(date, id, value, level)\nTask: Find amount from area_registry where a matching record exists in receivables_log with the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, id, code, name)\n stocking_sites(status, date, id, amount)\nTask: Select value from attribute_groups where amount is greater than the count of of salary in stocking_sites for matching type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(salary, value, type, amount)\n acquisition_log(type, level, salary, amount)\nTask: Find salary from engagement_log where amount exceeds the maximum amount from acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(name, code, level, salary)\n stocking_sites(type, code, amount, salary)\nTask: Retrieve code from facility_registry whose level is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(date, level, type, name)\n workforce_data(status, type, code, name)\nTask: Find code from facility_registry where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(code, level, salary, status)\n sales_queue(value, name, id, salary)\nTask: Find id from attribute_groups where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(amount, type, status, name)\n attribute_groups(name, amount, value, status)\nTask: Find amount from cost_centers where id appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(amount, value, id, name)\n area_registry(type, amount, level, name)\nTask: Select value from workforce_data that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(type, id, name, amount)\n receivables_log(id, level, value, date)\nTask: Select amount from activity_log where value is greater than the maximum of salary in receivables_log for matching status.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE value > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(status, amount, value, id)\n sales_queue(id, amount, name, salary)\nTask: Find id from receivables_log where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(amount, code, name, id)\n stock_catalog(name, level, code, salary)\nTask: Select amount from sales_queue where code exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(id, status, code, salary)\n sourcing_list(id, value, amount, type)\nTask: Retrieve salary from attribute_groups with amount above the MIN(amount) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE amount > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(level, id, date, status)\n personnel_registry(id, value, status, salary)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(level, type, status, amount)\n activity_log(date, status, type, value)\nTask: Select name from sourcing_list where id exists in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(date, name, code, type)\n engagement_log(level, id, status, type)\nTask: Select amount from portfolio_index that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(name, amount, value, date)\n acquisition_log(level, name, value, id)\nTask: Retrieve name from facility_registry whose type is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(code, level, amount, id)\n receivables_log(salary, type, value, code)\nTask: Find name from workforce_data where salary exceeds the total value from receivables_log for the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE salary > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, type, code, id)\n stock_catalog(status, salary, type, name)\nTask: Select value from dispatch_queue where level exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(status, code, amount, id)\n acquisition_log(level, type, name, amount)\nTask: Select name from receivables_log that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(name, value, amount, date)\n engagement_log(name, status, code, amount)\nTask: Retrieve id from attribute_groups whose id is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(date, name, amount, salary)\n sales_registry(salary, level, id, code)\nTask: Find code from sales_queue where salary exceeds the total salary from sales_registry for the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE salary > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(name, date, code, value)\n facility_registry(date, id, salary, name)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(code, name, status, amount)\n activity_log(code, id, name, salary)\nTask: Retrieve name from facility_registry with value above the SUM(salary) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE value > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(date, amount, value, salary)\n workforce_data(code, value, date, name)\nTask: Find value from attribute_groups where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(salary, value, amount, status)\n engagement_log(status, date, type, amount)\nTask: Retrieve value from facility_registry whose level is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(level, amount, value, salary)\n engagement_log(salary, id, value, amount)\nTask: Retrieve value from cost_centers whose code is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(salary, code, level, type)\n dispatch_queue(status, value, amount, type)\nTask: Find salary from workforce_data where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(id, name, level, amount)\n activity_log(value, type, name, level)\nTask: Find value from sales_registry where type appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(id, status, date, value)\n engagement_log(date, value, status, amount)\nTask: Find name from workforce_data where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(name, level, value, id)\n attribute_groups(name, level, type, id)\nTask: Find name from engagement_log where amount exceeds the maximum amount from attribute_groups for the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(name, date, code, id)\n area_registry(salary, type, code, date)\nTask: Select name from facility_registry where value is greater than the count of of amount in area_registry for matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(date, level, amount, value)\n receivables_log(date, id, type, amount)\nTask: Find salary from personnel_registry where amount exceeds the total value from receivables_log for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE amount > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(name, type, amount, code)\n stock_catalog(level, value, amount, name)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(status, date, id, type)\n stocking_sites(name, status, type, value)\nTask: Retrieve name from attribute_groups whose type is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(level, date, code, salary)\n receivables_log(value, code, level, date)\nTask: Select amount from stock_catalog where salary is greater than the total of value in receivables_log for matching type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE salary > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(date, code, name, id)\n journal_entries(date, salary, name, amount)\nTask: Retrieve amount from personnel_registry whose id is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(date, status, amount, level)\n sales_registry(status, name, salary, code)\nTask: Retrieve amount from acquisition_log that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(level, salary, value, date)\n cost_centers(level, salary, status, name)\nTask: Find code from portfolio_index where status appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(date, value, name, status)\n stocking_sites(type, name, value, status)\nTask: Select name from stock_catalog that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(status, code, type, amount)\n journal_entries(value, type, salary, level)\nTask: Find name from receivables_log where status appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(status, code, level, amount)\n attribute_groups(id, type, value, status)\nTask: Find amount from activity_log where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(value, id, type, amount)\n dispatch_queue(date, status, amount, code)\nTask: Find value from portfolio_index where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(id, name, amount, code)\n facility_registry(amount, name, code, id)\nTask: Find id from stocking_sites where type appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS emp\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(level, type, name, date)\n area_registry(value, id, level, name)\nTask: Find salary from attribute_groups where salary exceeds the count of value from area_registry for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(salary, code, status, level)\n dispatch_queue(level, name, value, code)\nTask: Select id from stocking_sites where type exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(id, level, salary, code)\n portfolio_index(name, code, id, status)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(id, level, salary, value)\n stock_catalog(code, type, value, id)\nTask: Select name from facility_registry where level exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(value, code, type, salary)\n facility_registry(code, type, date, id)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, date, id, value)\n activity_log(level, salary, type, status)\nTask: Select id from sourcing_list that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(id, salary, level, type)\n sales_registry(type, level, amount, id)\nTask: Select name from personnel_registry that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(name, status, level, salary)\n sourcing_list(type, level, status, id)\nTask: Retrieve name from workforce_data with amount above the MIN(amount) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, id, type, amount)\n sourcing_list(salary, date, id, status)\nTask: Select amount from sales_registry where amount is greater than the count of of salary in sourcing_list for matching id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "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}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(status, salary, id, type)\n engagement_log(amount, status, id, type)\nTask: Select code from stocking_sites that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(type, amount, name, code)\n receivables_log(amount, value, id, code)\nTask: Find id from acquisition_log where value exceeds the total value from receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE value > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(name, status, id, code)\n area_registry(name, status, salary, type)\nTask: Select id from sourcing_list where type exists in area_registry for the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(amount, status, id, level)\n dispatch_queue(level, salary, name, value)\nTask: Select salary from workforce_data where code exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(type, value, date, code)\n engagement_log(name, code, status, level)\nTask: Find salary from stocking_sites where id appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(salary, level, value, date)\n facility_registry(status, type, id, salary)\nTask: Retrieve code from receivables_log with amount above the AVG(amount) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, name, id, code)\n stock_catalog(id, value, level, status)\nTask: Select code from stocking_sites where id exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, name, id, status)\n workforce_data(id, status, salary, value)\nTask: Select code from sourcing_list that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, id, value, level)\n portfolio_index(amount, name, type, level)\nTask: Find amount from activity_log where amount exceeds the total value from portfolio_index for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE amount > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(code, type, id, amount)\n attribute_groups(level, type, name, value)\nTask: Find name from portfolio_index where salary exceeds the minimum amount from attribute_groups for the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(salary, code, amount, date)\n sourcing_list(status, level, name, value)\nTask: Retrieve code from acquisition_log whose type is found in sourcing_list rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(id, name, status, level)\n stocking_sites(salary, level, code, name)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(level, type, name, salary)\n sales_queue(id, amount, name, code)\nTask: Find value from portfolio_index where status appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, code, name, salary)\n personnel_registry(value, amount, id, status)\nTask: Select salary from dispatch_queue where code exists in personnel_registry for the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(status, level, id, name)\n dispatch_queue(status, type, code, salary)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(value, id, name, amount)\n sales_queue(code, salary, id, level)\nTask: Select salary from sales_registry where amount is greater than the maximum of value in sales_queue for matching status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE amount > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(level, name, type, id)\n stock_catalog(id, status, type, value)\nTask: Retrieve id from portfolio_index with value above the SUM(value) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE value > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(name, code, type, value)\n facility_registry(level, value, code, id)\nTask: Retrieve salary from acquisition_log whose code is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(id, date, amount, level)\n facility_registry(code, value, id, name)\nTask: Find id from cost_centers where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(value, status, code, name)\n attribute_groups(value, id, type, level)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, amount, id, date)\n sales_registry(level, amount, salary, status)\nTask: Find salary from stocking_sites where salary exceeds the maximum amount from sales_registry for the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(code, salary, value, id)\n sourcing_list(id, level, status, name)\nTask: Select name from facility_registry where salary is greater than the average of salary in sourcing_list for matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(value, type, level, name)\n activity_log(code, value, id, level)\nTask: Find salary from stock_catalog where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(level, type, value, date)\n facility_registry(status, date, level, type)\nTask: Select name from sales_queue where salary is greater than the average of amount in facility_registry for matching id.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, date, code, status)\n stocking_sites(id, level, code, status)\nTask: Select amount from receivables_log that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(code, type, level, date)\n sales_queue(amount, value, code, salary)\nTask: Select amount from sales_registry where id exists in sales_queue for the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(value, salary, status, type)\n sourcing_list(level, amount, salary, status)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(status, salary, date, value)\n facility_registry(salary, name, value, code)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(amount, date, value, salary)\n area_registry(status, value, date, salary)\nTask: Retrieve id from acquisition_log with value above the MIN(value) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE value > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(id, level, code, salary)\n acquisition_log(level, date, name, type)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(id, amount, type, salary)\n sourcing_list(value, type, name, salary)\nTask: Find salary from portfolio_index where amount exceeds the maximum value from sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE amount > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(code, level, amount, type)\n area_registry(amount, code, type, level)\nTask: Find amount from journal_entries where code appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, name, level, salary)\n receivables_log(date, code, amount, type)\nTask: Retrieve id from dispatch_queue with salary above the MAX(salary) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(date, type, id, amount)\n stock_catalog(level, id, status, date)\nTask: Select amount from acquisition_log that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(type, amount, status, id)\n facility_registry(amount, salary, date, level)\nTask: Retrieve amount from dispatch_queue with salary above the MAX(amount) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(status, value, amount, name)\n receivables_log(amount, salary, level, date)\nTask: Select salary from personnel_registry where code exists in receivables_log for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(level, type, amount, id)\n sales_queue(status, value, salary, code)\nTask: Retrieve salary from stock_catalog whose type is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS emp\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(id, amount, level, type)\n stock_catalog(code, amount, id, level)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(type, code, amount, level)\n journal_entries(name, code, level, salary)\nTask: Select salary from engagement_log where value is greater than the minimum of amount in journal_entries for matching type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE value > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(type, status, salary, level)\n attribute_groups(amount, date, level, id)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(value, salary, type, name)\n dispatch_queue(type, level, date, name)\nTask: Find value from sourcing_list where salary exceeds the total amount from dispatch_queue for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(name, amount, value, level)\n engagement_log(date, status, value, amount)\nTask: Find id from receivables_log where id appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, level, status, id)\n area_registry(level, salary, status, type)\nTask: Retrieve id from sourcing_list with salary above the MIN(amount) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(name, salary, value, id)\n receivables_log(salary, name, type, status)\nTask: Retrieve value from cost_centers that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(level, status, code, amount)\n activity_log(name, value, level, id)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(code, salary, level, value)\n journal_entries(status, code, salary, amount)\nTask: Find salary from sales_queue where salary exceeds the minimum salary from journal_entries for the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(name, date, id, salary)\n portfolio_index(value, id, type, date)\nTask: Select name from sales_registry where id exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(level, salary, name, status)\n portfolio_index(id, value, date, status)\nTask: Select id from engagement_log that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(amount, id, type, value)\n facility_registry(name, date, status, salary)\nTask: Find value from cost_centers where status appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(amount, status, level, type)\n personnel_registry(amount, code, id, name)\nTask: Select id from engagement_log that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(salary, code, type, amount)\n dispatch_queue(code, status, type, level)\nTask: Find code from engagement_log where amount exceeds the total amount from dispatch_queue for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(name, value, type, code)\n sales_registry(date, id, status, salary)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(amount, code, value, type)\n personnel_registry(value, level, status, date)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(date, value, code, status)\n personnel_registry(amount, status, level, code)\nTask: Find value from attribute_groups where level appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "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}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(date, salary, status, value)\n personnel_registry(date, salary, name, type)\nTask: Retrieve value from journal_entries whose type is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(id, salary, amount, code)\n facility_registry(type, level, salary, id)\nTask: Retrieve code from sales_registry with salary above the MAX(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE salary > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(code, name, value, date)\n sales_queue(date, salary, status, code)\nTask: Find value from cost_centers where salary exceeds the total amount from sales_queue for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(level, status, name, value)\n stock_catalog(amount, value, salary, code)\nTask: Find salary from dispatch_queue where a matching record exists in stock_catalog with the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(status, amount, code, value)\n journal_entries(status, name, code, id)\nTask: Retrieve id from area_registry whose type is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(code, value, name, amount)\n engagement_log(date, amount, value, level)\nTask: Retrieve name from area_registry whose type is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, status, salary, id)\n attribute_groups(value, name, id, amount)\nTask: Find value from dispatch_queue where salary exceeds the count of value from attribute_groups for the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, level, name, value)\n activity_log(salary, code, status, value)\nTask: Find code from stock_catalog where code appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(salary, type, amount, level)\n sales_registry(status, code, salary, level)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(value, amount, id, status)\n dispatch_queue(code, amount, id, name)\nTask: Retrieve salary from stock_catalog with amount above the MIN(salary) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(salary, name, status, type)\n sales_queue(level, code, status, value)\nTask: Select name from area_registry where id exists in sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS emp\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(name, date, salary, id)\n acquisition_log(date, type, level, value)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(type, amount, level, status)\n receivables_log(type, salary, status, id)\nTask: Select code from sales_registry where value is greater than the count of of salary in receivables_log for matching id.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "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}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(date, salary, id, type)\n sourcing_list(salary, name, value, id)\nTask: Select value from sales_registry where salary is greater than the minimum of amount in sourcing_list for matching id.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(value, date, type, salary)\n facility_registry(code, name, level, value)\nTask: Retrieve code from sales_registry with value above the MIN(salary) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE value > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(date, id, type, name)\n sourcing_list(salary, value, date, status)\nTask: Find name from receivables_log where value exceeds the total value from sourcing_list for the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE value > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(id, amount, code, type)\n journal_entries(value, id, salary, amount)\nTask: Retrieve value from sales_registry whose status is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, type, salary, date)\n workforce_data(value, code, status, salary)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, salary, level, type)\n stock_catalog(code, salary, level, name)\nTask: Find name from dispatch_queue where status appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(amount, value, code, date)\n stock_catalog(code, date, name, status)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(status, amount, salary, code)\n receivables_log(salary, name, amount, code)\nTask: Select salary from facility_registry that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(code, status, date, salary)\n workforce_data(value, amount, salary, status)\nTask: Find code from area_registry where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(level, name, status, type)\n cost_centers(date, level, name, type)\nTask: Find name from activity_log where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(salary, name, level, code)\n sourcing_list(status, value, name, type)\nTask: Retrieve code from activity_log that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(salary, date, status, name)\n sourcing_list(date, amount, status, type)\nTask: Select salary from attribute_groups that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(date, code, name, id)\n sourcing_list(name, type, date, code)\nTask: Select value from acquisition_log that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(salary, code, value, date)\n workforce_data(value, id, level, code)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(id, level, type, name)\n acquisition_log(name, status, code, salary)\nTask: Select amount from stocking_sites where id exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(level, salary, name, amount)\n activity_log(salary, level, id, value)\nTask: Find id from engagement_log where code appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, date, value, code)\n stocking_sites(code, level, type, date)\nTask: Select amount from sourcing_list where level exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(amount, date, status, name)\n journal_entries(level, status, date, value)\nTask: Find salary from receivables_log where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(status, name, value, amount)\n sales_queue(name, type, id, salary)\nTask: Find code from receivables_log where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(id, salary, value, date)\n engagement_log(salary, status, name, id)\nTask: Select name from portfolio_index where level exists in engagement_log for the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(salary, name, status, date)\n receivables_log(code, salary, type, name)\nTask: Find code from journal_entries where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(name, status, id, level)\n facility_registry(level, amount, code, salary)\nTask: Find id from area_registry where status appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS inv\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(status, name, level, value)\n facility_registry(name, type, id, date)\nTask: Find amount from receivables_log where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(name, code, id, type)\n journal_entries(date, amount, code, name)\nTask: Retrieve salary from sales_queue with salary above the MIN(salary) of journal_entries rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(code, salary, level, type)\n activity_log(salary, name, date, status)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(value, type, id, date)\n area_registry(date, code, type, salary)\nTask: Find code from personnel_registry where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(type, value, date, status)\n portfolio_index(value, type, id, code)\nTask: Find salary from engagement_log where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(date, salary, status, id)\n sales_queue(id, type, value, level)\nTask: Retrieve value from sourcing_list with value above the AVG(value) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE value > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(level, code, type, amount)\n stocking_sites(date, amount, type, name)\nTask: Select amount from receivables_log where salary is greater than the total of value in stocking_sites for matching id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(name, value, level, amount)\n sales_queue(code, amount, date, value)\nTask: Find name from area_registry where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(id, level, name, date)\n portfolio_index(value, id, type, name)\nTask: Find value from receivables_log where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(type, name, amount, level)\n portfolio_index(code, value, amount, salary)\nTask: Select amount from sales_registry where status exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS emp\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, status, name, date)\n engagement_log(status, level, id, code)\nTask: Find value from activity_log where id appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT value FROM activity_log AS inv\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(date, code, value, type)\n stocking_sites(level, amount, code, date)\nTask: Select id from facility_registry where value is greater than the maximum of amount in stocking_sites for matching id.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE value > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(level, name, value, code)\n sales_registry(type, status, id, value)\nTask: Select salary from personnel_registry that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(level, type, name, id)\n personnel_registry(code, value, level, type)\nTask: Find value from workforce_data where status appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(salary, id, name, amount)\n stock_catalog(salary, amount, level, code)\nTask: Retrieve salary from journal_entries with value above the AVG(value) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE value > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(type, amount, level, code)\n sales_queue(id, salary, value, level)\nTask: Select amount from stock_catalog that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, amount, type, code)\n activity_log(level, value, salary, type)\nTask: Find code from portfolio_index where value exceeds the maximum amount from activity_log for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(date, salary, id, name)\n activity_log(code, level, salary, amount)\nTask: Find code from cost_centers where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(type, code, date, salary)\n cost_centers(date, amount, name, code)\nTask: Retrieve amount from receivables_log with salary above the AVG(amount) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(code, value, name, level)\n stock_catalog(name, id, type, salary)\nTask: Select salary from sales_queue where status exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(name, id, amount, code)\n area_registry(level, status, amount, date)\nTask: Retrieve name from stock_catalog with salary above the AVG(salary) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(id, date, level, value)\n acquisition_log(amount, id, date, value)\nTask: Find amount from attribute_groups where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(date, level, id, amount)\n engagement_log(value, date, code, salary)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(value, level, date, type)\n dispatch_queue(name, amount, type, code)\nTask: Select salary from sales_registry where code exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(id, code, amount, date)\n dispatch_queue(code, name, amount, id)\nTask: Select name from engagement_log where value is greater than the maximum of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(level, name, code, id)\n receivables_log(name, salary, amount, date)\nTask: Find id from acquisition_log where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(name, amount, code, date)\n journal_entries(date, value, amount, salary)\nTask: Select value from area_registry where amount is greater than the total of amount in journal_entries for matching level.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(amount, id, value, salary)\n workforce_data(status, level, code, date)\nTask: Select name from area_registry where amount is greater than the maximum of value in workforce_data for matching type.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE amount > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(level, salary, name, type)\n facility_registry(name, salary, value, code)\nTask: Retrieve code from portfolio_index whose code is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, status, name, level)\n area_registry(value, date, status, salary)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(salary, id, name, type)\n personnel_registry(value, id, date, amount)\nTask: Retrieve value from journal_entries whose level is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(level, salary, date, status)\n facility_registry(type, salary, value, level)\nTask: Retrieve name from sales_queue whose type is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(id, amount, status, level)\n stocking_sites(amount, status, type, level)\nTask: Find code from area_registry where salary exceeds the count of salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(type, amount, name, value)\n area_registry(value, status, date, code)\nTask: Retrieve name from cost_centers whose level is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(id, code, type, date)\n sales_queue(status, salary, value, type)\nTask: Retrieve salary from portfolio_index whose type is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(date, code, name, salary)\n sales_registry(level, amount, status, salary)\nTask: Find code from stocking_sites where status appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(salary, type, amount, level)\n engagement_log(name, type, salary, id)\nTask: Select id from journal_entries where value is greater than the total of value in engagement_log for matching type.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE value > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(level, amount, value, salary)\n acquisition_log(salary, type, value, name)\nTask: Find amount from cost_centers where status appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(amount, name, code, value)\n sourcing_list(amount, date, name, status)\nTask: Select value from engagement_log where value is greater than the average of amount in sourcing_list for matching id.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE value > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, type, salary, value)\n area_registry(id, name, level, value)\nTask: Retrieve salary from attribute_groups whose type is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(name, date, value, id)\n area_registry(salary, status, amount, value)\nTask: Find salary from facility_registry where level appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(name, status, id, level)\n sales_queue(code, amount, level, name)\nTask: Find code from facility_registry where amount exceeds the count of amount from sales_queue for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(name, status, value, date)\n engagement_log(amount, salary, code, value)\nTask: Select id from personnel_registry that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(amount, code, level, status)\n receivables_log(name, amount, type, status)\nTask: Find salary from portfolio_index where salary exceeds the total amount from receivables_log for the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(level, amount, date, code)\n facility_registry(salary, code, type, value)\nTask: Retrieve id from acquisition_log with value above the MAX(salary) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE value > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, date, salary, amount)\n stock_catalog(amount, value, salary, code)\nTask: Select id from personnel_registry where type exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(value, id, status, amount)\n workforce_data(value, date, type, name)\nTask: Find name from attribute_groups where amount exceeds the average value from workforce_data for the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE amount > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(amount, name, id, status)\n portfolio_index(value, code, salary, level)\nTask: Select id from dispatch_queue where salary is greater than the total of amount in portfolio_index for matching id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, status, value, id)\n acquisition_log(salary, name, id, value)\nTask: Select name from engagement_log where code exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(name, salary, date, value)\n activity_log(id, date, level, name)\nTask: Retrieve id from area_registry that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(date, level, value, amount)\n cost_centers(name, type, id, code)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(status, amount, code, type)\n sales_queue(code, amount, status, type)\nTask: Find name from attribute_groups where amount exceeds the minimum amount from sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE amount > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(code, amount, id, status)\n stocking_sites(name, value, status, type)\nTask: Retrieve amount from sales_queue whose level is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(name, type, salary, value)\n journal_entries(status, name, salary, date)\nTask: Find name from sales_queue where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(status, amount, code, type)\n sourcing_list(value, amount, salary, type)\nTask: Retrieve salary from journal_entries with amount above the MIN(amount) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(value, name, type, date)\n sales_registry(level, value, type, salary)\nTask: Select code from journal_entries that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(salary, date, id, type)\n stocking_sites(id, type, level, salary)\nTask: Retrieve name from sales_registry whose id is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(name, amount, value, type)\n acquisition_log(amount, salary, id, code)\nTask: Find value from workforce_data where code appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(level, code, type, amount)\n receivables_log(salary, value, level, date)\nTask: Find amount from portfolio_index where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(type, value, salary, id)\n sourcing_list(code, status, date, type)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(salary, name, type, status)\n facility_registry(date, code, name, value)\nTask: Retrieve amount from sales_queue whose type is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(date, name, type, level)\n personnel_registry(date, value, type, level)\nTask: Find salary from facility_registry where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(value, salary, id, type)\n stocking_sites(value, code, id, status)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(value, status, id, amount)\n sales_queue(status, value, name, code)\nTask: Select amount from acquisition_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(date, code, name, salary)\n activity_log(date, code, amount, value)\nTask: Find salary from portfolio_index where type appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(level, date, type, value)\n receivables_log(value, code, id, amount)\nTask: Retrieve name from engagement_log whose type is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(type, level, status, date)\n stocking_sites(date, salary, code, value)\nTask: Find name from cost_centers where amount exceeds the count of value from stocking_sites for the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(status, salary, name, value)\n receivables_log(code, amount, id, type)\nTask: Select code from workforce_data where level exists in receivables_log for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS dept\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(name, id, salary, code)\n engagement_log(type, code, amount, salary)\nTask: Find amount from area_registry where code appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(amount, name, type, value)\n facility_registry(date, id, type, salary)\nTask: Retrieve salary from attribute_groups with salary above the AVG(salary) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(level, type, name, status)\n cost_centers(level, date, id, code)\nTask: Retrieve value from activity_log that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(salary, level, name, id)\n attribute_groups(code, amount, type, salary)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(amount, code, salary, type)\n stock_catalog(date, level, name, type)\nTask: Select salary from sales_queue that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(status, type, code, level)\n workforce_data(status, code, level, date)\nTask: Find amount from facility_registry where level appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(amount, value, status, code)\n sales_registry(value, date, level, name)\nTask: Select id from activity_log where amount is greater than the average of amount in sales_registry for matching level.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE amount > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(salary, status, value, level)\n cost_centers(level, salary, type, amount)\nTask: Retrieve code from sales_queue whose type is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(date, id, value, code)\n facility_registry(value, amount, salary, date)\nTask: Select code from activity_log that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(status, type, id, name)\n journal_entries(id, name, type, amount)\nTask: Find amount from cost_centers where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(salary, name, value, id)\n sourcing_list(name, level, date, salary)\nTask: Find code from journal_entries where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(date, id, level, amount)\n stocking_sites(id, date, type, status)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, name, code, date)\n sales_queue(salary, value, type, id)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(date, id, level, value)\n receivables_log(id, name, amount, type)\nTask: Select name from attribute_groups that have at least one matching row in receivables_log for the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(amount, id, level, date)\n engagement_log(value, date, id, status)\nTask: Select salary from sales_registry where type exists in engagement_log for the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(code, level, type, name)\n engagement_log(level, amount, code, value)\nTask: Find salary from sourcing_list where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(name, code, type, level)\n portfolio_index(code, salary, date, name)\nTask: Select salary from acquisition_log that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(name, value, level, type)\n acquisition_log(amount, salary, name, level)\nTask: Find amount from receivables_log where value exceeds the count of value from acquisition_log for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE value > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(value, name, date, amount)\n stocking_sites(date, code, type, name)\nTask: Retrieve name from receivables_log whose code is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, type, value, status)\n facility_registry(id, amount, date, name)\nTask: Retrieve salary from dispatch_queue with amount above the MAX(salary) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(id, date, salary, value)\n sourcing_list(amount, type, salary, name)\nTask: Find id from journal_entries where status appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, name, type, value)\n stocking_sites(code, status, type, id)\nTask: Retrieve code from attribute_groups with amount above the SUM(amount) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(value, id, level, salary)\n area_registry(amount, date, salary, code)\nTask: Select amount from personnel_registry where status exists in area_registry for the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(status, type, code, level)\n portfolio_index(id, level, status, type)\nTask: Select code from acquisition_log where type exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(name, value, amount, type)\n sales_registry(type, id, date, level)\nTask: Retrieve code from attribute_groups whose status is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, date, level, type)\n attribute_groups(code, status, type, salary)\nTask: Find name from dispatch_queue where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(date, id, value, type)\n receivables_log(type, code, name, value)\nTask: Select value from activity_log that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, date, level, status)\n sales_queue(type, value, date, id)\nTask: Select code from stocking_sites where type exists in sales_queue for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(type, salary, name, value)\n workforce_data(id, code, value, level)\nTask: Select amount from stock_catalog where type exists in workforce_data for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(date, code, amount, value)\n cost_centers(salary, level, type, status)\nTask: Find amount from sales_registry where level appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(level, name, status, value)\n dispatch_queue(name, code, status, type)\nTask: Select id from sales_registry where level exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(id, name, type, code)\n acquisition_log(code, level, date, status)\nTask: Retrieve code from cost_centers that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(salary, status, type, amount)\n sales_registry(amount, name, type, code)\nTask: Find value from portfolio_index where value exceeds the average salary from sales_registry for the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE value > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(value, name, date, code)\n receivables_log(date, salary, type, status)\nTask: Retrieve name from cost_centers whose code is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(id, amount, code, date)\n workforce_data(level, type, code, amount)\nTask: Retrieve salary from stocking_sites with salary above the COUNT(salary) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(name, amount, value, status)\n acquisition_log(name, date, value, level)\nTask: Retrieve id from area_registry with amount above the MIN(salary) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(level, type, date, id)\n attribute_groups(value, status, type, name)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(name, amount, value, salary)\n portfolio_index(type, level, name, value)\nTask: Find value from sourcing_list where level appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(type, amount, status, name)\n stocking_sites(value, amount, level, name)\nTask: Retrieve id from receivables_log with salary above the MIN(salary) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(value, name, code, status)\n workforce_data(value, level, salary, name)\nTask: Find salary from attribute_groups where salary exceeds the maximum amount from workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(amount, status, type, id)\n receivables_log(value, id, amount, salary)\nTask: Retrieve salary from stocking_sites whose status is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS usr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(date, salary, level, status)\n portfolio_index(id, value, code, status)\nTask: Find salary from journal_entries where level appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS inv\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(code, id, level, name)\n activity_log(status, code, date, salary)\nTask: Select name from area_registry where id exists in activity_log for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(value, id, code, type)\n stock_catalog(date, amount, code, type)\nTask: Find amount from acquisition_log where id appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(value, level, name, date)\n sales_registry(amount, salary, value, level)\nTask: Select code from workforce_data where amount is greater than the average of value in sales_registry for matching status.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(date, code, type, id)\n acquisition_log(name, type, amount, date)\nTask: Find name from attribute_groups where id appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(amount, salary, id, code)\n sales_queue(salary, id, value, level)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(code, status, name, level)\n journal_entries(code, amount, salary, status)\nTask: Find amount from stock_catalog where code appears in journal_entries entries with matching code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, id, date, code)\n stock_catalog(amount, date, level, code)\nTask: Select code from dispatch_queue where amount is greater than the maximum of amount in stock_catalog for matching type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(type, value, code, id)\n acquisition_log(level, salary, value, name)\nTask: Select name from stock_catalog where code exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(code, status, date, salary)\n portfolio_index(value, status, amount, level)\nTask: Select value from sourcing_list where status exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(id, code, salary, type)\n engagement_log(status, type, level, code)\nTask: Retrieve id from sales_queue whose code is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(level, id, name, status)\n facility_registry(value, name, amount, level)\nTask: Select name from personnel_registry where value is greater than the maximum of value in facility_registry for matching code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE value > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(code, status, level, value)\n receivables_log(code, id, type, name)\nTask: Retrieve amount from personnel_registry with salary above the SUM(amount) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(code, salary, amount, type)\n cost_centers(id, name, salary, level)\nTask: Find name from sales_queue where amount exceeds the maximum amount from cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(code, amount, name, id)\n dispatch_queue(level, status, value, name)\nTask: Find code from personnel_registry where status appears in dispatch_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(date, level, id, code)\n area_registry(code, status, level, date)\nTask: Retrieve salary from engagement_log whose code is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(name, status, id, value)\n journal_entries(value, amount, id, status)\nTask: Select id from cost_centers where value is greater than the count of of value in journal_entries for matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(type, status, salary, code)\n personnel_registry(id, name, type, status)\nTask: Select code from sales_registry where id exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(name, date, status, salary)\n workforce_data(amount, salary, level, id)\nTask: Select id from stocking_sites where value is greater than the count of of amount in workforce_data for matching id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, name, amount, value)\n stocking_sites(value, code, amount, name)\nTask: Select code from personnel_registry where level exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(date, code, id, status)\n dispatch_queue(date, amount, status, value)\nTask: Find salary from journal_entries where salary exceeds the count of salary from dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(name, amount, salary, level)\n attribute_groups(date, status, name, amount)\nTask: Select name from journal_entries where amount is greater than the total of salary in attribute_groups for matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(id, salary, status, level)\n workforce_data(value, code, salary, date)\nTask: Select name from facility_registry where code exists in workforce_data for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(type, salary, id, amount)\n journal_entries(status, name, id, value)\nTask: Retrieve salary from sales_queue with value above the COUNT(value) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(level, date, code, value)\n workforce_data(status, amount, value, id)\nTask: Retrieve salary from cost_centers with salary above the AVG(amount) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(status, level, amount, type)\n facility_registry(code, id, value, level)\nTask: Select salary from engagement_log where amount is greater than the count of of amount in facility_registry for matching status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(code, status, level, value)\n personnel_registry(level, salary, amount, id)\nTask: Retrieve name from area_registry that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(amount, code, value, level)\n journal_entries(level, code, amount, type)\nTask: Retrieve code from area_registry with salary above the AVG(value) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE salary > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(date, status, value, level)\n receivables_log(type, name, salary, status)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(name, id, date, level)\n receivables_log(id, code, name, value)\nTask: Select id from cost_centers where level exists in receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(type, amount, id, salary)\n facility_registry(amount, salary, status, code)\nTask: Select salary from engagement_log where type exists in facility_registry for the same level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(value, id, level, salary)\n activity_log(code, name, amount, value)\nTask: Find name from cost_centers where code appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(level, salary, value, type)\n attribute_groups(name, code, type, value)\nTask: Retrieve name from sales_registry whose code is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS mgr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(status, amount, name, id)\n sourcing_list(amount, level, date, name)\nTask: Select amount from sales_registry where level exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(amount, level, status, code)\n sales_queue(date, status, type, salary)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(value, salary, name, code)\n acquisition_log(amount, code, level, id)\nTask: Retrieve name from sourcing_list whose status is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(name, salary, value, status)\n area_registry(salary, level, id, status)\nTask: Find salary from portfolio_index where value exceeds the minimum salary from area_registry for the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE value > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(date, id, name, type)\n stocking_sites(type, value, status, amount)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(amount, salary, status, value)\n sales_registry(amount, status, type, value)\nTask: Select code from area_registry where code exists in sales_registry for the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(name, salary, type, date)\n sales_queue(value, code, status, amount)\nTask: Retrieve salary from workforce_data whose id is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, salary, type, name)\n stock_catalog(status, amount, name, id)\nTask: Retrieve code from dispatch_queue with salary above the MAX(amount) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(code, id, level, salary)\n personnel_registry(value, type, code, status)\nTask: Find value from sales_queue where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(date, value, name, amount)\n stock_catalog(level, type, value, code)\nTask: Retrieve name from activity_log that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(name, date, amount, id)\n stocking_sites(salary, level, code, type)\nTask: Find code from area_registry where id appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(level, status, amount, salary)\n portfolio_index(code, status, date, amount)\nTask: Select id from activity_log where value is greater than the total of salary in portfolio_index for matching level.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE value > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(status, id, level, date)\n cost_centers(status, code, type, salary)\nTask: Select amount from sourcing_list where salary is greater than the total of salary in cost_centers for matching code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(id, date, name, code)\n sales_queue(id, name, salary, date)\nTask: Find id from stock_catalog where value exceeds the maximum amount from sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE value > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(code, date, type, amount)\n activity_log(status, value, name, level)\nTask: Find name from sourcing_list where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, date, type, salary)\n receivables_log(id, date, code, status)\nTask: Retrieve value from dispatch_queue whose type is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(salary, amount, level, type)\n area_registry(value, date, type, level)\nTask: Retrieve amount from acquisition_log with amount above the MIN(salary) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(status, value, amount, code)\n sales_registry(id, status, code, level)\nTask: Select salary from sourcing_list where id exists in sales_registry for the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, status, id, date)\n portfolio_index(salary, amount, date, name)\nTask: Retrieve salary from acquisition_log whose status is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(name, value, code, date)\n engagement_log(name, date, code, type)\nTask: Find value from facility_registry where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, code, amount, salary)\n engagement_log(status, value, id, level)\nTask: Select code from acquisition_log where value is greater than the minimum of salary in engagement_log for matching type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE value > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(status, salary, amount, date)\n stocking_sites(date, salary, code, id)\nTask: Retrieve salary from sourcing_list with salary above the MAX(salary) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(id, value, type, amount)\n personnel_registry(name, date, value, level)\nTask: Retrieve amount from sourcing_list whose id is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(id, date, code, status)\n receivables_log(code, date, type, level)\nTask: Select code from area_registry where id exists in receivables_log for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(date, id, salary, type)\n personnel_registry(type, code, salary, level)\nTask: Find code from journal_entries where level appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(level, amount, salary, type)\n engagement_log(amount, status, name, type)\nTask: Select code from journal_entries where code exists in engagement_log for the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(salary, amount, name, date)\n sales_registry(salary, level, value, name)\nTask: Find salary from dispatch_queue where amount exceeds the maximum salary from sales_registry for the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(value, salary, type, code)\n sales_queue(amount, value, date, name)\nTask: Select amount from attribute_groups that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(salary, status, date, code)\n attribute_groups(level, amount, value, code)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(status, id, date, amount)\n dispatch_queue(id, status, level, amount)\nTask: Find salary from cost_centers where amount exceeds the minimum amount from dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE amount > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(name, salary, amount, value)\n cost_centers(type, date, name, level)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(salary, amount, status, code)\n sales_registry(salary, status, id, amount)\nTask: Retrieve name from facility_registry with salary above the MAX(amount) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "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}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(name, status, code, type)\n acquisition_log(type, name, level, status)\nTask: Retrieve value from portfolio_index whose status is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, value, level, id)\n journal_entries(code, value, amount, id)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(status, value, date, id)\n receivables_log(salary, code, date, value)\nTask: Retrieve code from activity_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(type, level, code, value)\n workforce_data(amount, id, value, level)\nTask: Retrieve name from acquisition_log with value above the COUNT(salary) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(amount, id, name, salary)\n stocking_sites(date, value, name, id)\nTask: Find salary from sales_registry where salary exceeds the count of amount from stocking_sites for the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE salary > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(type, value, id, salary)\n stocking_sites(id, value, salary, code)\nTask: Retrieve id from activity_log whose code is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(name, salary, level, type)\n stocking_sites(value, id, amount, date)\nTask: Retrieve value from sales_registry whose type is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(salary, name, id, type)\n workforce_data(amount, level, status, date)\nTask: Find name from portfolio_index where value exceeds the average value from workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE value > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(amount, name, salary, code)\n sales_queue(type, level, value, status)\nTask: Retrieve code from acquisition_log whose level is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(id, name, code, value)\n stocking_sites(date, status, level, code)\nTask: Select name from portfolio_index where id exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, code, value, type)\n journal_entries(id, amount, type, value)\nTask: Select amount from dispatch_queue that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(status, date, amount, type)\n activity_log(id, level, code, name)\nTask: Find name from journal_entries where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(type, value, name, date)\n dispatch_queue(name, amount, level, value)\nTask: Select name from personnel_registry where value is greater than the count of of value in dispatch_queue for matching status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE value > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(id, value, code, salary)\n sales_queue(name, code, level, amount)\nTask: Select value from attribute_groups where type exists in sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(level, type, salary, amount)\n activity_log(level, value, code, id)\nTask: Select code from area_registry where amount is greater than the maximum of salary in activity_log for matching id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE amount > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(value, type, code, name)\n acquisition_log(salary, status, value, name)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(type, value, code, name)\n activity_log(status, date, amount, value)\nTask: Retrieve value from attribute_groups with value above the AVG(amount) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS ord\nWHERE value > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(salary, date, id, type)\n area_registry(id, level, amount, status)\nTask: Find code from sales_registry where salary exceeds the count of salary from area_registry for the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(value, amount, name, salary)\n personnel_registry(code, value, id, name)\nTask: Select value from cost_centers where amount is greater than the average of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(status, name, level, amount)\n area_registry(date, code, salary, name)\nTask: Select code from activity_log where value is greater than the total of value in area_registry for matching type.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE value > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(status, type, salary, code)\n dispatch_queue(code, amount, level, salary)\nTask: Select value from sourcing_list where value is greater than the average of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE value > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(salary, value, type, level)\n dispatch_queue(code, status, amount, type)\nTask: Retrieve value from acquisition_log that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(type, amount, id, salary)\n facility_registry(id, status, value, date)\nTask: Retrieve code from area_registry with value above the SUM(amount) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE value > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(level, status, salary, id)\n area_registry(name, salary, id, amount)\nTask: Find salary from sales_registry where amount exceeds the minimum salary from area_registry for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(id, salary, date, status)\n engagement_log(status, name, amount, id)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(date, salary, amount, code)\n portfolio_index(name, date, id, amount)\nTask: Find salary from facility_registry where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(date, status, amount, code)\n activity_log(amount, value, level, type)\nTask: Select id from dispatch_queue where value is greater than the average of amount in activity_log for matching level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE value > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(status, name, value, amount)\n stocking_sites(amount, id, code, level)\nTask: Retrieve code from acquisition_log that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, name, level, type)\n receivables_log(value, id, name, salary)\nTask: Find code from journal_entries where id appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(salary, status, level, amount)\n receivables_log(level, name, id, status)\nTask: Find code from stocking_sites where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, salary, status, code)\n workforce_data(value, status, amount, salary)\nTask: Select id from receivables_log where type exists in workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(salary, code, level, type)\n portfolio_index(salary, date, status, level)\nTask: Find salary from engagement_log where type appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(id, code, date, type)\n portfolio_index(status, salary, date, id)\nTask: Select salary from journal_entries where status exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(code, amount, name, date)\n journal_entries(status, id, value, amount)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(level, amount, value, date)\n acquisition_log(id, status, value, amount)\nTask: Find code from personnel_registry where type appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(salary, name, level, id)\n cost_centers(status, salary, level, code)\nTask: Find value from activity_log where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(date, level, name, value)\n sourcing_list(date, code, level, name)\nTask: Retrieve code from facility_registry with salary above the MIN(salary) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, id, code, status)\n journal_entries(code, salary, amount, value)\nTask: Select name from sourcing_list where salary is greater than the total of amount in journal_entries for matching code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(salary, type, status, id)\n activity_log(code, status, salary, name)\nTask: Select amount from area_registry where salary is greater than the count of of salary in activity_log for matching status.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(amount, id, status, name)\n sourcing_list(status, code, value, date)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(id, value, status, salary)\n area_registry(name, id, level, status)\nTask: Select id from stocking_sites where salary is greater than the total of amount in area_registry for matching status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(status, amount, code, salary)\n stocking_sites(id, status, value, code)\nTask: Find salary from cost_centers where type appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(value, status, code, id)\n sales_registry(date, id, status, name)\nTask: Retrieve salary from journal_entries whose code is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(code, value, status, date)\n stocking_sites(value, type, salary, status)\nTask: Retrieve name from portfolio_index with amount above the AVG(amount) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE amount > (\n SELECT AVG(amount) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(level, amount, date, code)\n stocking_sites(date, code, type, id)\nTask: Find amount from sourcing_list where amount exceeds the count of amount from stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(level, value, date, type)\n activity_log(type, id, status, date)\nTask: Find salary from portfolio_index where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(salary, type, value, date)\n stocking_sites(amount, salary, value, level)\nTask: Select amount from attribute_groups where value is greater than the maximum of value in stocking_sites for matching status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(type, code, value, amount)\n area_registry(type, id, amount, salary)\nTask: Select amount from attribute_groups that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(id, date, status, level)\n workforce_data(id, value, date, amount)\nTask: Find code from facility_registry where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(date, level, type, value)\n workforce_data(code, status, id, date)\nTask: Find code from cost_centers where value exceeds the maximum amount from workforce_data for the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE value > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(level, code, name, date)\n acquisition_log(id, amount, date, type)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(level, status, salary, value)\n cost_centers(code, salary, type, value)\nTask: Retrieve salary from receivables_log with amount above the AVG(value) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE amount > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(code, status, type, name)\n dispatch_queue(date, name, amount, code)\nTask: Select amount from workforce_data where amount is greater than the maximum of value in dispatch_queue for matching code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE amount > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(id, code, date, level)\n stocking_sites(name, id, level, salary)\nTask: Select amount from workforce_data that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(amount, id, date, salary)\n activity_log(id, amount, type, salary)\nTask: Retrieve amount from journal_entries with amount above the COUNT(value) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(type, amount, value, date)\n dispatch_queue(date, value, name, amount)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(name, type, code, salary)\n sales_queue(level, salary, id, status)\nTask: Retrieve name from cost_centers with value above the AVG(salary) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE value > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(salary, value, name, level)\n personnel_registry(salary, value, status, type)\nTask: Select id from workforce_data where value is greater than the average of amount in personnel_registry for matching status.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE value > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, value, salary, name)\n receivables_log(code, id, status, amount)\nTask: Select amount from portfolio_index where amount is greater than the minimum of salary in receivables_log for matching id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(value, type, salary, level)\n area_registry(salary, type, date, code)\nTask: Select id from attribute_groups that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(id, date, code, status)\n receivables_log(code, value, type, id)\nTask: Find value from cost_centers where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(name, amount, id, code)\n facility_registry(level, status, code, value)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(name, code, id, date)\n engagement_log(salary, value, name, code)\nTask: Select value from receivables_log where salary is greater than the minimum of salary in engagement_log for matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(name, code, amount, level)\n cost_centers(value, salary, date, status)\nTask: Find value from engagement_log where amount exceeds the total salary from cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(value, name, salary, code)\n activity_log(name, status, id, date)\nTask: Find code from engagement_log where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(date, level, status, amount)\n portfolio_index(id, date, type, level)\nTask: Find value from cost_centers where type appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(id, salary, amount, status)\n journal_entries(amount, id, status, date)\nTask: Retrieve value from area_registry whose id is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(amount, date, id, type)\n journal_entries(level, id, date, code)\nTask: Select amount from personnel_registry where amount is greater than the total of amount in journal_entries for matching id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(date, id, amount, code)\n acquisition_log(level, value, amount, type)\nTask: Select id from receivables_log where type exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(date, level, code, id)\n stock_catalog(amount, salary, level, status)\nTask: Find value from facility_registry where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, id, amount, date)\n journal_entries(level, salary, code, value)\nTask: Select id from attribute_groups where value is greater than the average of amount in journal_entries for matching id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE value > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(level, id, value, code)\n workforce_data(amount, type, name, date)\nTask: Retrieve value from activity_log that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, amount, level, value)\n stocking_sites(id, level, status, code)\nTask: Retrieve amount from dispatch_queue whose level is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, level, type, id)\n attribute_groups(status, value, level, date)\nTask: Select id from dispatch_queue that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(id, amount, date, value)\n acquisition_log(type, level, name, status)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(amount, salary, name, type)\n cost_centers(amount, name, id, value)\nTask: Select id from sourcing_list where id exists in cost_centers for the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(code, date, amount, type)\n activity_log(id, status, amount, value)\nTask: Retrieve name from attribute_groups with amount above the MIN(value) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE amount > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(name, type, value, status)\n cost_centers(date, value, id, level)\nTask: Select id from sourcing_list where value is greater than the average of amount in cost_centers for matching type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(value, date, type, level)\n sales_registry(value, id, level, type)\nTask: Select amount from receivables_log where salary is greater than the average of amount in sales_registry for matching id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(code, status, name, amount)\n sales_queue(code, amount, date, id)\nTask: Select value from dispatch_queue that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(level, type, name, id)\n sourcing_list(code, value, salary, date)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(code, type, id, level)\n portfolio_index(salary, status, value, name)\nTask: Retrieve amount from area_registry whose code is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(name, code, date, type)\n workforce_data(level, value, type, date)\nTask: Retrieve code from engagement_log with amount above the MIN(amount) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(status, value, type, id)\n facility_registry(status, type, id, code)\nTask: Select code from journal_entries that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, level, salary, type)\n sourcing_list(status, name, salary, id)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(salary, type, code, date)\n sales_queue(value, name, date, status)\nTask: Find name from workforce_data where status appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(date, amount, salary, code)\n engagement_log(name, type, status, amount)\nTask: Find code from journal_entries where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(code, status, level, type)\n dispatch_queue(amount, level, salary, value)\nTask: Find value from sales_registry where status appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(status, amount, level, type)\n dispatch_queue(value, salary, date, level)\nTask: Retrieve value from personnel_registry whose code is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(date, type, status, amount)\n sales_registry(value, salary, amount, status)\nTask: Find amount from sales_queue where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(date, type, id, name)\n area_registry(type, value, code, amount)\nTask: Select code from workforce_data where salary is greater than the count of of salary in area_registry for matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(salary, date, id, type)\n dispatch_queue(amount, type, name, level)\nTask: Find name from facility_registry where id appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(date, status, name, code)\n receivables_log(id, amount, level, code)\nTask: Retrieve amount from activity_log with salary above the MIN(salary) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "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}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(salary, status, level, code)\n engagement_log(code, name, level, value)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(date, id, amount, salary)\n engagement_log(amount, code, name, id)\nTask: Select value from personnel_registry where level exists in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS dept\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, id, name, type)\n sales_queue(value, type, code, level)\nTask: Select amount from dispatch_queue where value is greater than the average of salary in sales_queue for matching level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE value > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(type, code, level, id)\n stocking_sites(date, salary, level, code)\nTask: Retrieve amount from receivables_log whose level is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, code, level, name)\n dispatch_queue(id, name, date, level)\nTask: Find name from attribute_groups where amount exceeds the total amount from dispatch_queue for the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(level, id, code, name)\n facility_registry(name, date, value, status)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(date, name, amount, code)\n sales_queue(name, amount, status, code)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(status, amount, level, date)\n sales_queue(level, amount, value, id)\nTask: Find id from receivables_log where amount exceeds the minimum amount from sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(name, value, salary, type)\n facility_registry(salary, status, value, date)\nTask: Select salary from sales_registry where type exists in facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(date, amount, salary, status)\n journal_entries(salary, level, date, name)\nTask: Retrieve id from receivables_log with value above the COUNT(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "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}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(date, id, name, value)\n journal_entries(date, name, value, level)\nTask: Select code from receivables_log where amount is greater than the count of of value in journal_entries for matching id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, level, date, status)\n sourcing_list(value, code, type, id)\nTask: Select salary from portfolio_index where code exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(type, status, date, amount)\n sales_queue(salary, type, id, level)\nTask: Find amount from receivables_log where level appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(date, level, amount, value)\n attribute_groups(code, id, amount, name)\nTask: Retrieve amount from stocking_sites whose id is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(value, amount, date, salary)\n sales_registry(type, id, salary, date)\nTask: Find name from journal_entries where amount exceeds the maximum value from sales_registry for the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE amount > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(value, type, level, date)\n receivables_log(salary, date, level, name)\nTask: Select amount from portfolio_index where id exists in receivables_log for the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(id, code, salary, status)\n engagement_log(code, name, date, id)\nTask: Find code from facility_registry where status appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(name, salary, value, code)\n sourcing_list(value, salary, id, name)\nTask: Select name from stocking_sites where salary is greater than the average of salary in sourcing_list for matching id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(salary, type, value, id)\n acquisition_log(date, name, status, salary)\nTask: Retrieve id from sales_queue with value above the MIN(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS dept\nWHERE value > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(type, salary, amount, date)\n sales_queue(level, value, status, amount)\nTask: Select id from engagement_log where status exists in sales_queue for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "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}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(id, type, value, level)\n sales_registry(name, amount, level, date)\nTask: Find salary from personnel_registry where code appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(id, level, salary, value)\n acquisition_log(code, amount, id, name)\nTask: Find id from activity_log where id appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(name, date, level, id)\n attribute_groups(status, type, date, amount)\nTask: Select name from facility_registry where id exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS emp\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(amount, code, id, status)\n attribute_groups(date, salary, amount, code)\nTask: Retrieve id from stock_catalog with salary above the SUM(amount) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(type, amount, status, id)\n activity_log(id, amount, salary, value)\nTask: Find amount from attribute_groups where code appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(level, salary, value, type)\n area_registry(id, type, name, code)\nTask: Find salary from personnel_registry where level appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(type, level, salary, id)\n sourcing_list(code, amount, id, status)\nTask: Find amount from sales_queue where salary exceeds the minimum amount from sourcing_list for the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(code, name, date, salary)\n facility_registry(salary, name, code, status)\nTask: Retrieve salary from engagement_log that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, type, amount, code)\n engagement_log(name, amount, code, salary)\nTask: Retrieve code from stock_catalog with value above the SUM(salary) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(id, date, status, code)\n dispatch_queue(status, salary, id, date)\nTask: Select id from sales_queue that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(status, amount, code, date)\n sourcing_list(status, level, name, amount)\nTask: Retrieve code from area_registry that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(status, code, amount, id)\n area_registry(id, date, type, amount)\nTask: Select code from cost_centers that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(date, salary, type, amount)\n engagement_log(type, salary, code, name)\nTask: Retrieve name from activity_log with amount above the MAX(salary) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(salary, amount, name, type)\n journal_entries(amount, code, id, date)\nTask: Select salary from acquisition_log where value is greater than the count of of value in journal_entries for matching level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(id, status, salary, value)\n stock_catalog(id, name, value, code)\nTask: Retrieve code from sourcing_list with value above the MIN(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE value > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(name, salary, status, code)\n sourcing_list(id, amount, type, value)\nTask: Find name from receivables_log where amount exceeds the count of value from sourcing_list for the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(value, status, id, level)\n cost_centers(salary, value, amount, date)\nTask: Select code from receivables_log where code exists in cost_centers for the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(value, name, date, salary)\n activity_log(level, amount, name, value)\nTask: Select name from sourcing_list where value is greater than the average of salary in activity_log for matching level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE value > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(name, salary, type, code)\n attribute_groups(level, amount, status, type)\nTask: Retrieve id from acquisition_log with value above the MIN(amount) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE value > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(date, amount, type, value)\n portfolio_index(value, id, type, salary)\nTask: Retrieve amount from attribute_groups with amount above the COUNT(amount) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(level, code, id, salary)\n cost_centers(salary, date, id, code)\nTask: Select code from activity_log that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(type, code, salary, date)\n dispatch_queue(level, id, salary, date)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(name, salary, id, type)\n sales_registry(status, code, amount, type)\nTask: Retrieve salary from portfolio_index with amount above the COUNT(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, name, salary, code)\n area_registry(amount, code, level, name)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(code, id, name, value)\n activity_log(value, id, status, code)\nTask: Select id from portfolio_index where value is greater than the average of value in activity_log for matching type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE value > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(amount, level, value, type)\n workforce_data(name, amount, status, type)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(date, type, status, name)\n sourcing_list(level, type, status, salary)\nTask: Find value from facility_registry where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(salary, id, value, type)\n stock_catalog(status, name, amount, level)\nTask: Find name from dispatch_queue where id appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(name, code, level, value)\n sourcing_list(salary, date, type, name)\nTask: Select code from activity_log where amount is greater than the maximum of value in sourcing_list for matching type.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE amount > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(name, status, type, date)\n stocking_sites(status, level, salary, id)\nTask: Select salary from area_registry where status exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(level, value, amount, status)\n journal_entries(level, salary, code, amount)\nTask: Retrieve id from dispatch_queue with value above the MIN(amount) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(amount, level, name, type)\n sales_registry(name, salary, code, date)\nTask: Find code from journal_entries where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, date, name, code)\n sourcing_list(amount, salary, code, value)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(code, value, type, date)\n sales_registry(level, status, amount, id)\nTask: Find name from acquisition_log where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(status, name, level, date)\n journal_entries(salary, type, name, code)\nTask: Find value from stocking_sites where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(level, type, salary, status)\n personnel_registry(salary, amount, value, level)\nTask: Find salary from portfolio_index where value exceeds the maximum value from personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(salary, date, id, name)\n sourcing_list(level, salary, status, code)\nTask: Find salary from receivables_log where code appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(name, value, type, code)\n engagement_log(value, level, name, amount)\nTask: Select salary from journal_entries where value is greater than the count of of value in engagement_log for matching level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE value > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(level, amount, name, status)\n receivables_log(id, salary, code, date)\nTask: Find id from facility_registry where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(status, name, level, id)\n receivables_log(name, amount, type, id)\nTask: Select id from portfolio_index where level exists in receivables_log for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(id, level, name, value)\n engagement_log(date, type, level, amount)\nTask: Select name from sales_registry where salary is greater than the minimum of value in engagement_log for matching level.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE salary > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(id, type, status, salary)\n activity_log(salary, status, type, code)\nTask: Retrieve id from sourcing_list that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(value, status, code, date)\n attribute_groups(status, code, type, salary)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(status, name, salary, amount)\n facility_registry(date, code, status, level)\nTask: Select id from personnel_registry where type exists in facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(type, date, status, id)\n area_registry(code, status, amount, value)\nTask: Select amount from personnel_registry where level exists in area_registry for the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(amount, name, type, id)\n engagement_log(salary, type, code, value)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(value, salary, name, id)\n journal_entries(salary, code, type, level)\nTask: Retrieve id from engagement_log whose status is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(type, value, level, name)\n acquisition_log(date, value, name, id)\nTask: Retrieve code from workforce_data with amount above the COUNT(salary) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(amount, date, code, id)\n cost_centers(amount, id, type, salary)\nTask: Select amount from stocking_sites where id exists in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(status, type, level, amount)\n facility_registry(value, date, level, amount)\nTask: Select name from attribute_groups that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(status, salary, type, level)\n stock_catalog(amount, value, code, salary)\nTask: Select salary from area_registry where amount is greater than the total of salary in stock_catalog for matching type.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, name, code, level)\n journal_entries(status, amount, id, salary)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(level, code, amount, name)\n area_registry(salary, date, value, type)\nTask: Select amount from acquisition_log where amount is greater than the maximum of value in area_registry for matching type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE amount > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(value, id, amount, date)\n dispatch_queue(code, salary, amount, date)\nTask: Retrieve code from sales_registry whose id is found in dispatch_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(date, level, amount, name)\n receivables_log(status, salary, code, amount)\nTask: Select id from acquisition_log where salary is greater than the average of value in receivables_log for matching id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE salary > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(value, amount, salary, id)\n workforce_data(code, type, date, salary)\nTask: Find value from cost_centers where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(id, name, type, date)\n cost_centers(status, salary, level, value)\nTask: Find amount from receivables_log where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(salary, type, date, level)\n stocking_sites(salary, level, id, code)\nTask: Retrieve name from journal_entries with value above the COUNT(amount) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(id, date, name, amount)\n attribute_groups(level, value, name, date)\nTask: Select id from portfolio_index where value is greater than the maximum of value in attribute_groups for matching code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE value > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(name, value, type, code)\n facility_registry(id, code, level, type)\nTask: Select salary from activity_log where code exists in facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS usr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(code, value, salary, id)\n facility_registry(id, name, code, amount)\nTask: Retrieve id from activity_log whose status is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS mgr\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(type, status, amount, date)\n engagement_log(status, amount, level, date)\nTask: Find amount from workforce_data where amount exceeds the minimum salary from engagement_log for the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(id, amount, name, code)\n attribute_groups(id, amount, code, value)\nTask: Find value from area_registry where value exceeds the count of amount from attribute_groups for the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(code, amount, value, name)\n attribute_groups(date, amount, type, status)\nTask: Find salary from facility_registry where value exceeds the average amount from attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE value > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(level, date, name, type)\n facility_registry(salary, value, name, code)\nTask: Select value from personnel_registry where type exists in facility_registry for the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, status, type, name)\n portfolio_index(level, value, type, status)\nTask: Retrieve value from dispatch_queue with salary above the MIN(amount) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(level, status, amount, code)\n personnel_registry(code, type, status, salary)\nTask: Retrieve salary from stocking_sites with value above the MIN(salary) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE value > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(name, type, value, status)\n sourcing_list(level, name, id, amount)\nTask: Find code from area_registry where amount exceeds the minimum value from sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE amount > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(value, name, status, amount)\n dispatch_queue(value, date, amount, name)\nTask: Select code from acquisition_log where level exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(date, salary, name, level)\n acquisition_log(level, salary, name, value)\nTask: Select code from sales_queue that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(level, date, status, salary)\n cost_centers(date, level, value, name)\nTask: Find salary from acquisition_log where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(type, level, status, id)\n sourcing_list(code, value, status, salary)\nTask: Find name from workforce_data where code appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(value, level, type, amount)\n stock_catalog(amount, date, id, type)\nTask: Select id from sourcing_list where amount is greater than the minimum of salary in stock_catalog for matching status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(id, level, status, value)\n area_registry(value, id, status, salary)\nTask: Select name from stocking_sites that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, salary, amount, value)\n acquisition_log(status, value, amount, name)\nTask: Find salary from dispatch_queue where value exceeds the count of salary from acquisition_log for the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(name, code, level, status)\n attribute_groups(level, type, date, amount)\nTask: Find name from receivables_log where type appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(salary, level, amount, status)\n facility_registry(date, id, amount, salary)\nTask: Select salary from sales_registry where level exists in facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, level, date, id)\n sales_queue(salary, amount, name, date)\nTask: Find code from personnel_registry where level appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(date, status, value, amount)\n sales_registry(level, name, status, code)\nTask: Select value from receivables_log that have at least one matching row in sales_registry for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(id, type, status, level)\n attribute_groups(name, salary, amount, status)\nTask: Select amount from engagement_log that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(value, date, level, amount)\n area_registry(level, salary, code, status)\nTask: Select id from personnel_registry that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(value, id, amount, date)\n cost_centers(date, id, code, type)\nTask: Select amount from area_registry where amount is greater than the minimum of salary in cost_centers for matching type.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE amount > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(level, name, type, status)\n workforce_data(value, status, type, level)\nTask: Find id from sourcing_list where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(date, amount, name, salary)\n personnel_registry(value, level, code, amount)\nTask: Retrieve value from cost_centers whose level is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(status, salary, id, level)\n area_registry(date, id, salary, code)\nTask: Select code from workforce_data where status exists in area_registry for the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(code, status, name, level)\n stocking_sites(date, code, name, amount)\nTask: Select code from portfolio_index that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(level, id, salary, name)\n cost_centers(type, code, level, date)\nTask: Retrieve code from acquisition_log with value above the MIN(salary) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE value > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(id, status, salary, amount)\n journal_entries(date, level, type, amount)\nTask: Select amount from portfolio_index where level exists in journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(type, salary, level, name)\n stocking_sites(salary, type, status, code)\nTask: Find id from sales_registry where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, status, amount, id)\n stocking_sites(code, type, id, amount)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(level, date, value, amount)\n activity_log(code, status, id, type)\nTask: Select id from sales_queue that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(status, code, value, level)\n attribute_groups(salary, code, name, amount)\nTask: Retrieve name from acquisition_log with amount above the MAX(amount) of attribute_groups rows sharing the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(name, id, value, level)\n journal_entries(status, type, level, id)\nTask: Select name from facility_registry where value is greater than the average of amount in journal_entries for matching id.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE value > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(salary, date, level, id)\n portfolio_index(salary, status, level, date)\nTask: Select code from personnel_registry that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(status, amount, type, date)\n personnel_registry(amount, date, name, id)\nTask: Select name from attribute_groups that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(value, name, code, id)\n cost_centers(name, level, amount, date)\nTask: Find value from receivables_log where id appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(type, value, date, code)\n sales_queue(amount, value, date, salary)\nTask: Find id from acquisition_log where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(code, name, amount, date)\n facility_registry(type, status, code, salary)\nTask: Find value from acquisition_log where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(id, name, type, value)\n journal_entries(name, type, salary, date)\nTask: Retrieve salary from workforce_data with salary above the MIN(amount) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(id, amount, name, date)\n sales_queue(type, value, status, salary)\nTask: Select id from acquisition_log where code exists in sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(id, name, code, status)\n acquisition_log(code, date, id, name)\nTask: Select id from stock_catalog where type exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(amount, value, status, code)\n activity_log(name, type, amount, code)\nTask: Find amount from area_registry where salary exceeds the total amount from activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, amount, value, status)\n engagement_log(date, name, status, value)\nTask: Retrieve salary from dispatch_queue whose level is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(level, amount, value, name)\n attribute_groups(code, status, date, type)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(status, code, salary, level)\n dispatch_queue(level, salary, date, status)\nTask: Select amount from cost_centers that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(amount, value, level, type)\n portfolio_index(date, id, value, level)\nTask: Find id from area_registry where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(id, salary, amount, type)\n sales_queue(amount, value, level, code)\nTask: Select value from cost_centers that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(level, salary, type, date)\n acquisition_log(id, date, status, amount)\nTask: Retrieve amount from workforce_data with salary above the AVG(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE salary > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(amount, status, level, date)\n personnel_registry(id, name, status, code)\nTask: Select code from sales_queue where code exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(id, name, code, value)\n engagement_log(type, id, salary, code)\nTask: Retrieve amount from stocking_sites that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(code, status, id, salary)\n activity_log(amount, name, type, value)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(name, salary, type, date)\n portfolio_index(code, salary, name, status)\nTask: Find amount from receivables_log where amount exceeds the average salary from portfolio_index for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(date, code, id, name)\n activity_log(amount, code, id, salary)\nTask: Retrieve id from facility_registry whose code is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(name, amount, level, status)\n sourcing_list(salary, status, code, type)\nTask: Retrieve value from area_registry with amount above the MIN(salary) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(code, date, name, amount)\n attribute_groups(date, code, value, type)\nTask: Select salary from portfolio_index where amount is greater than the maximum of amount in attribute_groups for matching id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE amount > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(id, level, date, code)\n receivables_log(date, status, name, id)\nTask: Retrieve salary from attribute_groups whose id is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(salary, type, name, value)\n portfolio_index(code, amount, value, name)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(name, id, salary, level)\n personnel_registry(type, level, date, name)\nTask: Select name from journal_entries that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(value, status, name, id)\n sales_registry(name, value, date, amount)\nTask: Find name from receivables_log where value exceeds the average amount from sales_registry for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(id, amount, level, salary)\n sourcing_list(type, level, amount, id)\nTask: Find code from facility_registry where code appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(salary, level, amount, date)\n workforce_data(status, salary, id, name)\nTask: Retrieve name from dispatch_queue with amount above the COUNT(value) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(level, status, value, code)\n sourcing_list(type, name, amount, status)\nTask: Find value from journal_entries where type appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(name, id, type, status)\n journal_entries(value, level, id, type)\nTask: Select value from sales_registry that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(type, code, status, name)\n receivables_log(date, name, amount, status)\nTask: Find code from portfolio_index where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(level, date, salary, status)\n stocking_sites(code, level, value, status)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(amount, level, type, date)\n acquisition_log(amount, level, salary, date)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(value, name, id, salary)\n receivables_log(code, id, name, type)\nTask: Select id from journal_entries where amount is greater than the maximum of salary in receivables_log for matching status.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE amount > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(date, id, name, value)\n sales_queue(value, level, code, type)\nTask: Find name from area_registry where status appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(code, date, id, status)\n workforce_data(amount, name, date, salary)\nTask: Select id from sourcing_list that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, type, amount, salary)\n receivables_log(status, id, amount, date)\nTask: Select id from workforce_data that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(status, id, amount, type)\n sales_registry(name, status, id, type)\nTask: Retrieve id from area_registry with salary above the SUM(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(type, value, name, date)\n sales_registry(code, value, status, id)\nTask: Select code from acquisition_log where type exists in sales_registry for the same level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS emp\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(level, date, name, value)\n portfolio_index(type, value, salary, id)\nTask: Select code from journal_entries where type exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(id, level, type, code)\n acquisition_log(level, value, type, salary)\nTask: Retrieve name from portfolio_index that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(code, type, amount, salary)\n workforce_data(code, id, type, status)\nTask: Find code from portfolio_index where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(value, amount, id, salary)\n area_registry(salary, id, name, date)\nTask: Select name from sales_registry that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(status, salary, type, value)\n attribute_groups(code, level, amount, name)\nTask: Find id from area_registry where type appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(status, id, name, amount)\n portfolio_index(status, type, id, value)\nTask: Retrieve name from area_registry that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(id, code, level, status)\n workforce_data(type, code, date, id)\nTask: Retrieve amount from facility_registry whose id is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, date, name, salary)\n attribute_groups(date, amount, id, type)\nTask: Retrieve salary from stocking_sites whose level is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(level, id, type, amount)\n workforce_data(id, type, value, salary)\nTask: Retrieve code from activity_log whose level is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(name, salary, id, amount)\n receivables_log(name, id, value, date)\nTask: Find amount from portfolio_index where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(level, status, value, amount)\n portfolio_index(amount, code, value, salary)\nTask: Select value from attribute_groups that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(status, code, value, salary)\n workforce_data(code, salary, date, amount)\nTask: Find code from sales_registry where value exceeds the minimum salary from workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(amount, level, value, id)\n journal_entries(value, status, date, type)\nTask: Select amount from cost_centers where id exists in journal_entries for the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(amount, type, id, status)\n workforce_data(code, type, status, amount)\nTask: Select amount from portfolio_index where salary is greater than the minimum of amount in workforce_data for matching level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(status, name, code, level)\n journal_entries(amount, status, date, value)\nTask: Find code from stock_catalog where salary exceeds the total value from journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE salary > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(amount, date, code, type)\n dispatch_queue(amount, type, salary, date)\nTask: Find amount from sales_registry where salary exceeds the maximum value from dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(amount, value, type, id)\n receivables_log(type, level, id, status)\nTask: Find value from engagement_log where salary exceeds the total value from receivables_log for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE salary > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(level, date, id, value)\n personnel_registry(type, level, name, status)\nTask: Select salary from sales_registry where level exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(date, status, level, code)\n facility_registry(date, salary, id, code)\nTask: Retrieve name from portfolio_index with value above the COUNT(salary) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(date, level, name, status)\n attribute_groups(level, name, salary, type)\nTask: Find code from area_registry where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(code, amount, value, date)\n facility_registry(amount, id, name, type)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(salary, name, status, amount)\n attribute_groups(amount, status, id, salary)\nTask: Retrieve salary from personnel_registry with value above the SUM(value) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE value > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, amount, value, code)\n activity_log(status, value, amount, level)\nTask: Retrieve amount from acquisition_log whose level is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS usr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(name, salary, code, type)\n receivables_log(code, id, salary, date)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(status, value, amount, type)\n journal_entries(date, name, id, salary)\nTask: Find salary from activity_log where salary exceeds the minimum value from journal_entries for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE salary > (\n SELECT MIN(value) FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "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}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(id, code, status, name)\n sales_queue(code, level, name, salary)\nTask: Retrieve code from area_registry with value above the SUM(salary) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE value > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(type, date, code, level)\n sales_registry(code, amount, type, name)\nTask: Find code from facility_registry where status appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, id, salary, type)\n receivables_log(value, name, level, amount)\nTask: Find value from dispatch_queue where id appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(amount, code, salary, name)\n sales_registry(value, code, date, status)\nTask: Retrieve code from stock_catalog with value above the AVG(value) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS empl\nWHERE value > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(date, level, id, value)\n sales_queue(id, salary, status, level)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(level, date, salary, type)\n workforce_data(code, type, name, level)\nTask: Find code from attribute_groups where value exceeds the average value from workforce_data for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE value > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(salary, id, type, status)\n receivables_log(code, status, salary, name)\nTask: Retrieve salary from journal_entries whose level is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(amount, level, date, code)\n sales_registry(status, amount, name, id)\nTask: Select code from engagement_log where amount is greater than the minimum of salary in sales_registry for matching id.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(name, salary, amount, code)\n sales_registry(date, code, level, id)\nTask: Find id from workforce_data where status appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT id FROM workforce_data AS dept\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(date, type, level, value)\n area_registry(type, id, value, salary)\nTask: Find code from stocking_sites where id appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS emp\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, type, value, level)\n portfolio_index(amount, salary, status, name)\nTask: Find name from stock_catalog where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(level, code, id, date)\n engagement_log(name, amount, value, code)\nTask: Find code from activity_log where value exceeds the average salary from engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, code, value, level)\n stocking_sites(value, amount, id, date)\nTask: Select code from acquisition_log where status exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, salary, code, status)\n sales_registry(value, amount, salary, level)\nTask: Retrieve value from stock_catalog whose code is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(id, name, type, salary)\n personnel_registry(value, type, salary, level)\nTask: Select value from activity_log that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(name, salary, amount, date)\n stock_catalog(name, amount, date, level)\nTask: Retrieve value from sales_queue with value above the SUM(amount) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, code, value, type)\n workforce_data(code, salary, date, id)\nTask: Select id from dispatch_queue where amount is greater than the total of amount in workforce_data for matching code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(name, amount, salary, level)\n cost_centers(amount, date, value, level)\nTask: Find name from facility_registry where amount exceeds the count of value from cost_centers for the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, value, date, code)\n portfolio_index(value, id, salary, type)\nTask: Select amount from engagement_log where status exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(date, id, value, type)\n dispatch_queue(name, value, status, code)\nTask: Find id from sales_queue where salary exceeds the count of salary from dispatch_queue for the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(type, status, date, level)\n cost_centers(date, name, code, level)\nTask: Select amount from sourcing_list where salary is greater than the maximum of amount in cost_centers for matching status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(amount, id, salary, value)\n portfolio_index(status, amount, salary, code)\nTask: Retrieve value from cost_centers whose code is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(salary, type, date, id)\n stocking_sites(salary, status, date, name)\nTask: Select amount from cost_centers where level exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(name, level, status, date)\n sales_registry(level, code, date, type)\nTask: Retrieve code from facility_registry with value above the MIN(salary) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE value > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(salary, level, date, type)\n engagement_log(type, name, level, date)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(salary, value, amount, type)\n sales_queue(amount, value, salary, level)\nTask: Retrieve name from activity_log with salary above the MIN(value) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE salary > (\n SELECT MIN(value) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(date, name, code, salary)\n portfolio_index(id, code, status, amount)\nTask: Select id from sourcing_list that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(id, date, level, amount)\n dispatch_queue(code, id, status, level)\nTask: Select amount from stock_catalog that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(date, level, status, value)\n dispatch_queue(salary, code, status, id)\nTask: Select salary from facility_registry where amount is greater than the total of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(amount, id, code, level)\n acquisition_log(salary, level, code, amount)\nTask: Select name from stocking_sites where id exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(value, level, amount, type)\n personnel_registry(name, salary, type, level)\nTask: Find code from receivables_log where type appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(code, level, name, salary)\n dispatch_queue(level, id, date, status)\nTask: Find salary from cost_centers where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(type, id, salary, level)\n sourcing_list(status, id, type, date)\nTask: Select amount from journal_entries where status exists in sourcing_list for the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(status, amount, value, date)\n cost_centers(level, id, amount, date)\nTask: Select name from stock_catalog that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, code, level, id)\n stocking_sites(salary, level, status, type)\nTask: Select id from cost_centers that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(code, date, type, name)\n sourcing_list(salary, date, code, type)\nTask: Find code from stock_catalog where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(value, amount, id, status)\n portfolio_index(type, code, name, level)\nTask: Select id from attribute_groups where amount is greater than the total of amount in portfolio_index for matching code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(amount, type, code, level)\n portfolio_index(date, name, id, status)\nTask: Find code from sales_queue where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(status, id, level, code)\n cost_centers(name, id, status, date)\nTask: Retrieve code from area_registry whose status is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(date, level, amount, salary)\n acquisition_log(id, type, status, salary)\nTask: Select amount from area_registry where salary is greater than the minimum of amount in acquisition_log for matching status.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(value, id, status, code)\n activity_log(amount, id, type, salary)\nTask: Retrieve id from area_registry whose level is found in activity_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(name, salary, level, code)\n attribute_groups(code, type, status, value)\nTask: Select value from receivables_log that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(id, value, name, status)\n cost_centers(salary, amount, type, level)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(level, status, name, code)\n area_registry(level, value, code, amount)\nTask: Retrieve code from sourcing_list whose id is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, type, salary, date)\n sales_registry(status, level, date, salary)\nTask: Select code from cost_centers where salary is greater than the maximum of amount in sales_registry for matching code.\nSQL:", "sql": "SELECT code FROM cost_centers AS mgr\nWHERE salary > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(level, type, value, name)\n sales_registry(status, amount, type, level)\nTask: Find name from area_registry where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(value, type, date, salary)\n sourcing_list(amount, code, name, status)\nTask: Select code from area_registry where amount is greater than the count of of amount in sourcing_list for matching id.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, level, id, status)\n journal_entries(code, salary, id, status)\nTask: Select value from portfolio_index where salary is greater than the minimum of salary in journal_entries for matching id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(value, id, level, name)\n dispatch_queue(amount, name, id, code)\nTask: Retrieve salary from journal_entries with salary above the SUM(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(level, value, salary, date)\n acquisition_log(amount, value, type, id)\nTask: Select code from facility_registry where code exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(name, level, type, status)\n receivables_log(value, type, name, status)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(name, status, type, amount)\n engagement_log(amount, level, id, name)\nTask: Find salary from journal_entries where value exceeds the maximum value from engagement_log for the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE value > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(status, type, level, date)\n journal_entries(amount, type, value, name)\nTask: Retrieve name from activity_log whose type is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(type, code, status, name)\n stocking_sites(status, salary, type, id)\nTask: Select salary from journal_entries where amount is greater than the total of salary in stocking_sites for matching level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(code, status, id, level)\n engagement_log(id, code, salary, type)\nTask: Find value from workforce_data where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, code, date, value)\n area_registry(value, salary, status, id)\nTask: Retrieve salary from stock_catalog with amount above the AVG(value) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE amount > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(value, level, id, amount)\n acquisition_log(salary, amount, status, date)\nTask: Select id from sales_registry that have at least one matching row in acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(salary, name, code, value)\n stock_catalog(value, amount, salary, code)\nTask: Find code from sales_registry where amount exceeds the count of salary from stock_catalog for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, level, date, code)\n sourcing_list(value, code, type, name)\nTask: Find salary from attribute_groups where code appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(level, status, date, value)\n sales_queue(id, level, date, type)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(id, status, type, date)\n stock_catalog(level, date, id, value)\nTask: Retrieve salary from workforce_data with amount above the AVG(salary) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(code, name, salary, type)\n dispatch_queue(type, name, salary, date)\nTask: Select amount from stocking_sites where id exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(name, type, value, level)\n sales_queue(amount, value, code, date)\nTask: Retrieve value from workforce_data with salary above the MAX(salary) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(level, name, amount, id)\n receivables_log(date, salary, value, id)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(status, salary, value, id)\n receivables_log(type, salary, amount, level)\nTask: Select salary from stock_catalog that have at least one matching row in receivables_log for the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, type, id, level)\n acquisition_log(name, level, type, amount)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(name, level, salary, amount)\n sourcing_list(code, name, id, date)\nTask: Retrieve id from cost_centers whose type is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(status, value, type, level)\n journal_entries(type, status, id, amount)\nTask: Retrieve name from attribute_groups with amount above the MAX(value) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE amount > (\n SELECT MAX(value) FROM journal_entries AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(amount, id, code, value)\n personnel_registry(salary, value, code, level)\nTask: Retrieve amount from sales_queue with value above the COUNT(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE value > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(level, id, type, name)\n stocking_sites(salary, type, level, name)\nTask: Retrieve value from journal_entries whose id is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(type, id, value, status)\n portfolio_index(status, date, id, code)\nTask: Select id from engagement_log where level exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(id, type, code, value)\n sourcing_list(code, id, date, status)\nTask: Find name from area_registry where value exceeds the count of value from sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE value > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(salary, type, value, code)\n journal_entries(date, amount, level, salary)\nTask: Find value from stocking_sites where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(code, salary, amount, id)\n activity_log(date, level, code, salary)\nTask: Select value from journal_entries where status exists in activity_log for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, status, level, type)\n portfolio_index(id, name, salary, date)\nTask: Retrieve value from attribute_groups whose id is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(id, salary, type, date)\n area_registry(salary, id, value, code)\nTask: Select id from workforce_data where code exists in area_registry for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(amount, salary, date, status)\n receivables_log(date, id, type, name)\nTask: Select name from portfolio_index where amount is greater than the minimum of amount in receivables_log for matching id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(level, date, type, code)\n receivables_log(type, date, amount, salary)\nTask: Find amount from portfolio_index where type appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(code, amount, type, salary)\n engagement_log(name, date, type, salary)\nTask: Retrieve name from stock_catalog whose status is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(value, type, code, amount)\n area_registry(salary, value, date, amount)\nTask: Select code from facility_registry that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(date, status, value, amount)\n dispatch_queue(type, value, code, salary)\nTask: Retrieve value from journal_entries whose id is found in dispatch_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(type, level, id, date)\n activity_log(level, value, id, amount)\nTask: Find code from stock_catalog where amount exceeds the total salary from activity_log for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(salary, id, level, type)\n workforce_data(value, name, level, salary)\nTask: Retrieve name from sales_queue whose status is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(date, level, id, salary)\n portfolio_index(code, name, id, type)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(amount, name, id, status)\n facility_registry(name, code, status, salary)\nTask: Select code from area_registry where level exists in facility_registry for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, level, id, status)\n activity_log(salary, amount, name, value)\nTask: Find name from sourcing_list where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(date, level, id, value)\n activity_log(name, salary, level, value)\nTask: Select value from facility_registry where salary is greater than the total of amount in activity_log for matching level.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(date, value, amount, status)\n portfolio_index(date, salary, amount, id)\nTask: Find amount from stock_catalog where code appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(id, amount, code, name)\n acquisition_log(status, code, amount, name)\nTask: Find salary from engagement_log where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(salary, id, code, name)\n cost_centers(status, value, date, salary)\nTask: Select value from stock_catalog that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(value, type, code, name)\n stock_catalog(value, date, name, id)\nTask: Select salary from receivables_log that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(amount, level, value, date)\n dispatch_queue(amount, name, level, salary)\nTask: Select value from area_registry where amount is greater than the maximum of value in dispatch_queue for matching type.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE amount > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(level, salary, name, value)\n dispatch_queue(name, status, level, date)\nTask: Find value from receivables_log where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(value, status, amount, date)\n stocking_sites(status, level, id, salary)\nTask: Select id from sales_queue where amount is greater than the count of of salary in stocking_sites for matching type.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(value, name, type, level)\n acquisition_log(status, id, date, value)\nTask: Find name from portfolio_index where type appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(type, status, name, id)\n journal_entries(level, id, status, date)\nTask: Select amount from cost_centers that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(status, level, name, code)\n journal_entries(value, name, amount, status)\nTask: Find code from cost_centers where value exceeds the total amount from journal_entries for the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE value > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(type, id, status, code)\n acquisition_log(level, status, value, salary)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(level, value, amount, salary)\n journal_entries(date, value, code, name)\nTask: Retrieve amount from portfolio_index with value above the MIN(amount) of journal_entries rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE value > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(name, salary, value, amount)\n portfolio_index(value, status, amount, date)\nTask: Select value from facility_registry where level exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(code, status, name, value)\n activity_log(value, amount, id, status)\nTask: Retrieve code from area_registry that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(type, value, status, code)\n activity_log(code, value, amount, id)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(name, level, status, value)\n facility_registry(level, name, amount, id)\nTask: Find salary from sourcing_list where status appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(type, code, amount, value)\n stocking_sites(status, type, date, id)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(name, amount, type, code)\n sales_registry(code, salary, name, value)\nTask: Find code from stock_catalog where code appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(name, level, type, value)\n engagement_log(level, value, salary, type)\nTask: Select id from portfolio_index that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(id, level, name, date)\n sales_queue(salary, amount, level, status)\nTask: Find id from personnel_registry where value exceeds the average value from sales_queue for the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE value > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(date, salary, code, id)\n portfolio_index(type, name, salary, amount)\nTask: Retrieve value from workforce_data with salary above the MIN(amount) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(salary, id, code, name)\n activity_log(id, value, date, amount)\nTask: Find name from facility_registry where salary exceeds the count of value from activity_log for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(date, amount, level, value)\n area_registry(status, amount, date, name)\nTask: Find id from dispatch_queue where amount exceeds the minimum value from area_registry for the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(value, type, status, id)\n engagement_log(salary, status, value, level)\nTask: Retrieve id from attribute_groups whose status is found in engagement_log rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS empl\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(id, value, type, date)\n sales_registry(status, date, type, level)\nTask: Find name from facility_registry where code appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(type, value, date, salary)\n facility_registry(name, id, status, level)\nTask: Select id from receivables_log where amount is greater than the total of amount in facility_registry for matching status.\nSQL:", "sql": "SELECT id FROM receivables_log AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(date, name, type, id)\n workforce_data(name, value, level, type)\nTask: Retrieve amount from stocking_sites whose status is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(code, amount, level, date)\n sourcing_list(salary, status, date, level)\nTask: Find code from stock_catalog where amount exceeds the total salary from sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(status, id, salary, code)\n acquisition_log(date, id, value, salary)\nTask: Retrieve salary from workforce_data with salary above the MIN(amount) of acquisition_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, date, name, status)\n activity_log(status, value, level, amount)\nTask: Select code from portfolio_index that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(type, id, salary, status)\n stocking_sites(date, amount, status, level)\nTask: Select salary from workforce_data where type exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(value, level, salary, id)\n activity_log(status, salary, level, value)\nTask: Select value from workforce_data where level exists in activity_log for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(code, value, salary, name)\n journal_entries(id, date, status, amount)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(code, salary, date, name)\n area_registry(code, value, status, name)\nTask: Find salary from journal_entries where status appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(level, salary, type, status)\n dispatch_queue(salary, level, status, value)\nTask: Select name from journal_entries where code exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(status, date, level, name)\n sourcing_list(date, value, code, level)\nTask: Select name from receivables_log that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(type, date, salary, value)\n sales_queue(code, salary, date, amount)\nTask: Find id from dispatch_queue where status appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(salary, code, status, id)\n receivables_log(salary, id, code, value)\nTask: Select salary from cost_centers where value is greater than the maximum of value in receivables_log for matching status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE value > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(status, id, code, type)\n sales_queue(name, date, type, id)\nTask: Select amount from facility_registry where value is greater than the maximum of amount in sales_queue for matching level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS prod\nWHERE value > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(id, level, code, value)\n journal_entries(level, type, code, id)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(name, level, type, id)\n facility_registry(status, value, date, name)\nTask: Retrieve salary from engagement_log whose type is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(type, salary, amount, name)\n attribute_groups(salary, level, id, amount)\nTask: Retrieve value from personnel_registry whose id is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(status, level, type, id)\n stocking_sites(id, code, date, salary)\nTask: Retrieve name from attribute_groups with salary above the AVG(salary) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(type, salary, id, date)\n sales_queue(date, salary, name, status)\nTask: Find salary from portfolio_index where type appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(id, salary, status, value)\n stock_catalog(name, code, salary, level)\nTask: Find salary from engagement_log where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(value, code, date, name)\n dispatch_queue(amount, code, value, name)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(level, name, salary, date)\n acquisition_log(level, type, status, value)\nTask: Find amount from engagement_log where status appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(salary, amount, type, code)\n engagement_log(value, id, date, code)\nTask: Select amount from receivables_log where type exists in engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(code, id, status, date)\n acquisition_log(level, status, amount, id)\nTask: Select code from portfolio_index where type exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(value, name, id, amount)\n sourcing_list(amount, value, id, type)\nTask: Retrieve amount from area_registry with salary above the MIN(salary) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(id, status, date, amount)\n attribute_groups(amount, code, id, value)\nTask: Select id from stocking_sites where level exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(name, level, date, type)\n activity_log(type, level, amount, status)\nTask: Select salary from journal_entries that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(amount, date, code, id)\n activity_log(date, code, status, id)\nTask: Retrieve name from cost_centers whose level is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(level, id, name, salary)\n attribute_groups(amount, status, id, value)\nTask: Find id from sales_registry where amount exceeds the maximum amount from attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE amount > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(date, id, code, salary)\n stocking_sites(name, value, date, amount)\nTask: Find name from area_registry where salary exceeds the total value from stocking_sites for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(salary, type, status, amount)\n sales_registry(level, status, type, id)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(level, type, value, code)\n portfolio_index(amount, status, id, date)\nTask: Find value from receivables_log where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(code, salary, level, type)\n sourcing_list(name, level, date, status)\nTask: Find name from attribute_groups where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(type, amount, salary, status)\n stock_catalog(amount, type, name, salary)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(code, level, amount, value)\n engagement_log(level, salary, status, type)\nTask: Select name from portfolio_index where value is greater than the minimum of value in engagement_log for matching id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE value > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, date, salary, status)\n dispatch_queue(date, salary, id, amount)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(code, name, amount, status)\n workforce_data(salary, level, date, status)\nTask: Find id from stocking_sites where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, name, value, code)\n dispatch_queue(status, amount, level, salary)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(amount, level, salary, value)\n stock_catalog(date, salary, value, code)\nTask: Select value from sales_registry where type exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS prod\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(salary, type, code, status)\n activity_log(id, name, date, status)\nTask: Find id from receivables_log where salary exceeds the average amount from activity_log for the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(level, date, id, status)\n attribute_groups(salary, name, type, value)\nTask: Find name from facility_registry where amount exceeds the maximum value from attribute_groups for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE amount > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(salary, date, name, code)\n dispatch_queue(code, name, id, level)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(salary, code, status, date)\n attribute_groups(name, code, level, date)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(value, salary, amount, code)\n sourcing_list(date, code, salary, status)\nTask: Retrieve name from area_registry that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(code, value, amount, type)\n acquisition_log(salary, code, type, status)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(level, salary, value, name)\n sales_queue(code, id, amount, level)\nTask: Find name from facility_registry where salary exceeds the count of amount from sales_queue for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(type, value, date, id)\n personnel_registry(type, level, code, salary)\nTask: Retrieve id from sourcing_list whose id is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(date, value, code, name)\n acquisition_log(salary, id, code, date)\nTask: Retrieve name from sales_registry whose id is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(value, salary, amount, date)\n facility_registry(level, code, id, date)\nTask: Find name from area_registry where level appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(level, code, date, salary)\n portfolio_index(salary, level, type, name)\nTask: Find id from stock_catalog where code appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(value, date, type, salary)\n attribute_groups(type, salary, code, date)\nTask: Find id from cost_centers where value exceeds the average amount from attribute_groups for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(level, salary, date, name)\n stocking_sites(value, type, amount, date)\nTask: Retrieve code from activity_log with value above the MAX(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(value, amount, status, code)\n personnel_registry(date, name, level, value)\nTask: Select salary from attribute_groups where level exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(level, amount, date, type)\n facility_registry(value, type, code, id)\nTask: Find amount from stocking_sites where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(date, salary, status, name)\n sales_queue(name, date, amount, code)\nTask: Find code from stocking_sites where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(name, value, id, type)\n receivables_log(amount, name, type, code)\nTask: Find amount from cost_centers where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(name, type, id, value)\n facility_registry(level, id, salary, type)\nTask: Retrieve amount from activity_log whose level is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS emp\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(code, date, value, status)\n journal_entries(code, type, name, status)\nTask: Find id from personnel_registry where value exceeds the minimum value from journal_entries for the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE value > (\n SELECT MIN(value) FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, id, level, date)\n cost_centers(code, salary, level, value)\nTask: Retrieve salary from acquisition_log with salary above the COUNT(salary) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(type, level, name, value)\n receivables_log(code, name, type, id)\nTask: Retrieve code from stock_catalog whose level is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(value, date, status, code)\n dispatch_queue(amount, value, date, id)\nTask: Find name from receivables_log where salary exceeds the minimum salary from dispatch_queue for the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(level, status, code, date)\n receivables_log(status, salary, code, level)\nTask: Find id from cost_centers where amount exceeds the maximum salary from receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE amount > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(name, date, salary, value)\n sourcing_list(value, level, id, name)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(amount, salary, level, id)\n sourcing_list(id, status, date, level)\nTask: Find id from workforce_data where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(id, code, level, status)\n journal_entries(amount, type, level, value)\nTask: Select name from activity_log where type exists in journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(salary, id, name, status)\n stocking_sites(amount, level, salary, id)\nTask: Find code from receivables_log where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(date, level, status, id)\n attribute_groups(level, value, salary, date)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, code, date, value)\n cost_centers(amount, code, salary, value)\nTask: Find amount from dispatch_queue where salary exceeds the count of amount from cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT COUNT(amount) FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(name, salary, value, type)\n workforce_data(amount, code, status, level)\nTask: Find amount from area_registry where code appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(id, date, type, level)\n area_registry(amount, level, type, id)\nTask: Select name from activity_log where level exists in area_registry for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(type, id, amount, date)\n dispatch_queue(value, name, code, id)\nTask: Retrieve amount from facility_registry with amount above the COUNT(amount) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(name, value, id, amount)\n activity_log(amount, status, salary, id)\nTask: Retrieve value from portfolio_index whose level is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(level, type, amount, code)\n activity_log(status, value, salary, amount)\nTask: Find salary from cost_centers where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(status, code, date, value)\n journal_entries(code, status, type, value)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(code, id, salary, status)\n attribute_groups(salary, status, code, name)\nTask: Find amount from personnel_registry where code appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(salary, name, level, type)\n journal_entries(code, name, type, value)\nTask: Find salary from activity_log where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(value, type, amount, salary)\n sourcing_list(name, id, salary, code)\nTask: Select name from workforce_data where value is greater than the average of salary in sourcing_list for matching status.\nSQL:", "sql": "SELECT name FROM workforce_data AS inv\nWHERE value > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(code, amount, status, salary)\n acquisition_log(value, type, salary, date)\nTask: Retrieve name from portfolio_index whose id is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(code, status, date, salary)\n cost_centers(name, code, amount, value)\nTask: Retrieve name from area_registry with amount above the MAX(value) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE amount > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(level, status, id, salary)\n receivables_log(salary, code, date, type)\nTask: Select id from workforce_data where amount is greater than the average of value in receivables_log for matching level.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE amount > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(level, name, code, date)\n sales_registry(date, amount, name, level)\nTask: Retrieve amount from receivables_log with value above the MIN(value) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE value > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(code, amount, level, type)\n stock_catalog(date, type, amount, id)\nTask: Retrieve name from activity_log that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(date, type, id, value)\n sales_registry(status, date, value, type)\nTask: Select amount from portfolio_index where amount is greater than the average of amount in sales_registry for matching status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, name, value, status)\n area_registry(id, value, name, type)\nTask: Select id from dispatch_queue that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(value, level, code, amount)\n dispatch_queue(id, type, status, name)\nTask: Retrieve amount from workforce_data with salary above the SUM(amount) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(code, salary, status, value)\n sales_registry(date, amount, code, id)\nTask: Find salary from cost_centers where code appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(id, amount, value, date)\n acquisition_log(date, amount, name, status)\nTask: Find id from sourcing_list where salary exceeds the maximum value from acquisition_log for the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE salary > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(date, id, amount, value)\n dispatch_queue(status, value, date, name)\nTask: Retrieve code from personnel_registry with value above the COUNT(amount) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(id, salary, code, date)\n facility_registry(type, value, status, name)\nTask: Retrieve name from acquisition_log whose status is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(name, level, value, amount)\n activity_log(value, salary, type, code)\nTask: Select value from attribute_groups where status exists in activity_log for the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(status, salary, level, name)\n facility_registry(type, code, level, date)\nTask: Find value from portfolio_index where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(value, date, code, name)\n acquisition_log(value, level, salary, code)\nTask: Retrieve id from receivables_log whose code is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(id, name, status, date)\n workforce_data(status, salary, date, level)\nTask: Retrieve value from sales_queue with amount above the SUM(salary) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(amount, code, date, value)\n activity_log(amount, date, name, type)\nTask: Find code from facility_registry where amount exceeds the total amount from activity_log for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE amount > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(type, status, level, value)\n stocking_sites(type, name, date, id)\nTask: Select id from acquisition_log where value is greater than the minimum of amount in stocking_sites for matching code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE value > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(date, status, name, salary)\n personnel_registry(code, status, date, type)\nTask: Find code from stocking_sites where code appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(name, status, salary, amount)\n journal_entries(type, level, status, code)\nTask: Find salary from cost_centers where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(type, name, salary, date)\n activity_log(code, type, id, status)\nTask: Retrieve salary from portfolio_index with amount above the COUNT(value) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE amount > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(code, amount, value, level)\n sales_registry(amount, level, date, name)\nTask: Retrieve salary from receivables_log whose id is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(id, type, amount, status)\n stocking_sites(code, level, type, date)\nTask: Find name from sales_queue where value exceeds the average amount from stocking_sites for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE value > (\n SELECT AVG(amount) FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(id, code, name, level)\n stocking_sites(amount, type, date, level)\nTask: Select id from cost_centers where code exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(level, status, code, name)\n personnel_registry(code, date, salary, value)\nTask: Find salary from engagement_log where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(level, amount, value, code)\n activity_log(code, salary, level, id)\nTask: Retrieve salary from personnel_registry with salary above the AVG(value) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE salary > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(date, name, id, amount)\n portfolio_index(id, level, name, code)\nTask: Find salary from stocking_sites where id appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(salary, value, code, level)\n receivables_log(type, date, status, code)\nTask: Select salary from workforce_data that have at least one matching row in receivables_log for the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(code, amount, status, date)\n attribute_groups(id, value, level, amount)\nTask: Retrieve amount from area_registry whose level is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(code, type, date, value)\n receivables_log(level, code, id, date)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(name, level, value, type)\n facility_registry(value, name, level, code)\nTask: Find id from personnel_registry where amount exceeds the minimum salary from facility_registry for the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(amount, value, date, name)\n journal_entries(status, value, name, level)\nTask: Select code from sales_queue where type exists in journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(date, salary, value, name)\n dispatch_queue(salary, level, amount, date)\nTask: Retrieve value from facility_registry with salary above the AVG(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(amount, code, name, status)\n activity_log(salary, id, code, type)\nTask: Find id from sales_registry where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(id, level, name, amount)\n acquisition_log(name, level, code, date)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(name, status, id, amount)\n stock_catalog(date, level, code, name)\nTask: Find id from attribute_groups where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(date, type, value, salary)\n sales_registry(date, code, amount, status)\nTask: Retrieve code from attribute_groups whose code is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(date, amount, status, level)\n dispatch_queue(date, code, amount, status)\nTask: Select amount from sales_queue that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(value, level, status, type)\n facility_registry(value, salary, amount, level)\nTask: Retrieve amount from journal_entries with value above the MAX(value) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE value > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(date, salary, code, type)\n workforce_data(status, type, id, name)\nTask: Find code from sales_registry where amount exceeds the average amount from workforce_data for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(code, level, amount, type)\n sales_queue(salary, code, level, type)\nTask: Find name from attribute_groups where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(status, level, type, amount)\n sourcing_list(type, amount, date, level)\nTask: Find code from personnel_registry where level appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(status, code, amount, id)\n stocking_sites(id, status, name, type)\nTask: Find value from stock_catalog where amount exceeds the maximum amount from stocking_sites for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(id, code, name, type)\n attribute_groups(amount, status, salary, id)\nTask: Find salary from journal_entries where level appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(code, id, name, type)\n sales_queue(date, amount, type, status)\nTask: Find code from attribute_groups where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(code, level, type, date)\n stocking_sites(id, value, amount, name)\nTask: Find code from area_registry where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, id, level, type)\n sourcing_list(date, amount, value, code)\nTask: Find salary from personnel_registry where type appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(value, type, salary, status)\n stocking_sites(id, value, level, salary)\nTask: Select code from personnel_registry that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(id, level, date, value)\n sourcing_list(amount, code, date, level)\nTask: Find name from engagement_log where status appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(type, level, salary, amount)\n receivables_log(id, name, date, level)\nTask: Find value from stocking_sites where status appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(value, type, name, salary)\n attribute_groups(name, status, id, date)\nTask: Retrieve id from journal_entries with salary above the MIN(amount) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(name, id, amount, status)\n workforce_data(level, status, type, value)\nTask: Retrieve salary from facility_registry with salary above the AVG(value) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE salary > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(value, status, amount, id)\n area_registry(salary, id, status, amount)\nTask: Retrieve value from facility_registry with amount above the COUNT(salary) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(salary, status, type, date)\n activity_log(amount, salary, level, date)\nTask: Select name from stock_catalog where id exists in activity_log for the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(code, amount, id, salary)\n attribute_groups(type, amount, id, code)\nTask: Retrieve value from area_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(value, code, level, name)\n cost_centers(code, value, type, salary)\nTask: Select value from attribute_groups where value is greater than the average of amount in cost_centers for matching id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, salary, status, id)\n sales_queue(status, code, id, salary)\nTask: Select value from acquisition_log that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(name, amount, id, status)\n stocking_sites(amount, date, name, type)\nTask: Select code from sales_registry where level exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(code, date, amount, value)\n sourcing_list(status, amount, type, id)\nTask: Find id from acquisition_log where value exceeds the total salary from sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(code, date, id, amount)\n cost_centers(value, amount, level, status)\nTask: Find code from attribute_groups where value exceeds the minimum value from cost_centers for the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE value > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(date, amount, salary, code)\n receivables_log(code, salary, level, type)\nTask: Retrieve id from stock_catalog with amount above the AVG(salary) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(salary, status, date, code)\n personnel_registry(level, code, date, type)\nTask: Retrieve amount from cost_centers that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(value, date, code, type)\n cost_centers(name, level, amount, salary)\nTask: Select value from sourcing_list where status exists in cost_centers for the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(date, amount, id, value)\n sales_registry(id, type, salary, level)\nTask: Select id from acquisition_log where value is greater than the average of amount in sales_registry for matching code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(status, type, id, salary)\n dispatch_queue(amount, id, salary, name)\nTask: Find id from workforce_data where type appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM workforce_data AS mgr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, amount, id, name)\n journal_entries(code, name, date, id)\nTask: Select id from engagement_log where amount is greater than the minimum of value in journal_entries for matching status.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(type, name, salary, date)\n receivables_log(id, code, level, amount)\nTask: Select amount from portfolio_index that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(status, amount, id, code)\n attribute_groups(status, date, name, id)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(type, date, name, status)\n activity_log(salary, id, value, type)\nTask: Find id from sales_registry where status appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(date, name, salary, value)\n attribute_groups(amount, id, type, status)\nTask: Retrieve code from sales_queue with value above the MIN(amount) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS inv\nWHERE value > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(code, id, level, amount)\n portfolio_index(name, id, date, salary)\nTask: Select code from cost_centers where amount is greater than the total of salary in portfolio_index for matching id.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(id, type, amount, code)\n stock_catalog(level, amount, name, type)\nTask: Retrieve value from workforce_data with amount above the MIN(value) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE amount > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(amount, id, date, code)\n sourcing_list(date, code, status, level)\nTask: Select salary from engagement_log that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(value, salary, status, date)\n journal_entries(amount, value, type, id)\nTask: Select salary from personnel_registry where level exists in journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(name, code, id, amount)\n stocking_sites(salary, level, id, code)\nTask: Retrieve id from sales_queue whose level is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, code, level, name)\n sales_registry(name, amount, code, level)\nTask: Retrieve value from sourcing_list whose code is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(type, name, status, id)\n stocking_sites(name, id, value, date)\nTask: Find name from facility_registry where id appears in stocking_sites entries with matching type.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(id, name, level, status)\n personnel_registry(amount, level, name, code)\nTask: Retrieve amount from stock_catalog whose id is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(date, code, amount, id)\n workforce_data(amount, id, level, code)\nTask: Retrieve amount from stocking_sites with value above the COUNT(amount) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(level, value, salary, type)\n dispatch_queue(type, level, amount, code)\nTask: Find name from portfolio_index where status appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(name, salary, amount, code)\n workforce_data(amount, code, value, type)\nTask: Retrieve id from stock_catalog whose level is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(name, code, date, salary)\n attribute_groups(date, level, type, status)\nTask: Find id from workforce_data where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(status, amount, type, salary)\n stock_catalog(amount, code, status, date)\nTask: Find amount from cost_centers where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(level, salary, value, date)\n sales_queue(amount, name, code, id)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(status, date, type, name)\n attribute_groups(level, value, id, type)\nTask: Select name from personnel_registry where level exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(code, level, value, name)\n sales_queue(id, type, value, level)\nTask: Retrieve id from receivables_log with value above the COUNT(value) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE value > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(id, name, code, type)\n stocking_sites(date, salary, code, amount)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, name, salary, type)\n acquisition_log(salary, status, code, name)\nTask: Select amount from portfolio_index where value is greater than the count of of salary in acquisition_log for matching code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE value > (\n SELECT COUNT(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(amount, code, status, date)\n portfolio_index(id, level, date, value)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(type, value, id, status)\n personnel_registry(date, amount, status, code)\nTask: Find salary from stock_catalog where amount exceeds the count of salary from personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE amount > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, date, amount, code)\n journal_entries(value, type, name, status)\nTask: Select salary from cost_centers that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(type, date, status, salary)\n dispatch_queue(id, value, status, date)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(level, code, salary, date)\n stock_catalog(date, id, amount, level)\nTask: Select name from facility_registry where amount is greater than the total of value in stock_catalog for matching code.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE amount > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(type, value, amount, id)\n journal_entries(status, level, amount, id)\nTask: Find code from receivables_log where type appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(type, date, value, amount)\n personnel_registry(date, salary, status, amount)\nTask: Retrieve code from attribute_groups with value above the MIN(amount) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE value > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(level, amount, status, name)\n sourcing_list(amount, salary, value, date)\nTask: Retrieve amount from sales_queue whose status is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(amount, level, value, salary)\n personnel_registry(value, name, type, level)\nTask: Select code from receivables_log where type exists in personnel_registry for the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(amount, salary, level, id)\n engagement_log(amount, id, status, level)\nTask: Retrieve name from personnel_registry with value above the COUNT(value) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE value > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(type, code, amount, value)\n stock_catalog(name, date, amount, status)\nTask: Find name from workforce_data where id appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(salary, level, code, status)\n area_registry(code, name, value, level)\nTask: Retrieve salary from workforce_data whose level is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(amount, id, name, value)\n stocking_sites(id, date, amount, name)\nTask: Retrieve code from activity_log that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(name, status, amount, id)\n stocking_sites(salary, code, type, name)\nTask: Select amount from stock_catalog where level exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(id, status, level, date)\n dispatch_queue(status, level, id, type)\nTask: Retrieve code from workforce_data with salary above the COUNT(value) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE salary > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(name, date, status, value)\n sales_queue(status, salary, date, value)\nTask: Find id from portfolio_index where salary exceeds the minimum salary from sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(level, amount, date, name)\n receivables_log(level, type, code, status)\nTask: Select value from journal_entries that have at least one matching row in receivables_log for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(name, code, value, level)\n engagement_log(status, salary, amount, value)\nTask: Select salary from receivables_log where value is greater than the average of value in engagement_log for matching level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE value > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(date, status, amount, value)\n sales_queue(salary, code, amount, type)\nTask: Select name from attribute_groups that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(code, level, id, amount)\n workforce_data(amount, salary, value, status)\nTask: Retrieve id from sales_registry whose type is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(date, code, name, id)\n area_registry(level, status, type, code)\nTask: Find code from workforce_data where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, id, code, value)\n engagement_log(amount, status, value, id)\nTask: Find name from dispatch_queue where amount exceeds the minimum amount from engagement_log for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, date, level, salary)\n acquisition_log(level, code, id, amount)\nTask: Find code from dispatch_queue where value exceeds the maximum value from acquisition_log for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(id, date, value, amount)\n dispatch_queue(type, name, id, date)\nTask: Find name from portfolio_index where id appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(salary, name, code, date)\n journal_entries(id, salary, type, code)\nTask: Find value from personnel_registry where value exceeds the average salary from journal_entries for the same type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE value > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(amount, type, level, salary)\n stock_catalog(name, status, salary, code)\nTask: Find value from portfolio_index where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(date, salary, id, code)\n cost_centers(amount, code, status, type)\nTask: Retrieve salary from receivables_log with salary above the SUM(amount) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(type, salary, id, name)\n stocking_sites(code, value, amount, date)\nTask: Find code from facility_registry where id appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(type, name, date, value)\n stock_catalog(date, name, amount, value)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(type, date, salary, name)\n engagement_log(date, status, name, value)\nTask: Find value from workforce_data where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(type, level, date, id)\n cost_centers(salary, amount, type, date)\nTask: Find salary from sourcing_list where id appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(id, value, salary, type)\n sales_registry(id, code, amount, value)\nTask: Find salary from stock_catalog where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(type, value, salary, amount)\n facility_registry(amount, date, code, value)\nTask: Retrieve amount from workforce_data with salary above the MIN(amount) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(salary, amount, value, type)\n stock_catalog(name, date, code, value)\nTask: Select id from activity_log that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(amount, salary, value, level)\n cost_centers(type, status, value, name)\nTask: Find value from stocking_sites where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(type, level, salary, code)\n stock_catalog(id, name, status, amount)\nTask: Retrieve salary from cost_centers whose id is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, type, date, name)\n workforce_data(value, amount, type, date)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in workforce_data sharing the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(status, level, type, id)\n workforce_data(level, status, type, date)\nTask: Retrieve salary from cost_centers whose level is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS usr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(value, code, salary, date)\n stocking_sites(value, salary, level, code)\nTask: Select amount from portfolio_index where code exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(date, type, status, salary)\n dispatch_queue(name, status, level, date)\nTask: Retrieve name from area_registry with value above the MIN(amount) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE value > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(code, value, status, name)\n facility_registry(status, type, value, date)\nTask: Select code from acquisition_log where type exists in facility_registry for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(salary, date, code, status)\n dispatch_queue(name, amount, type, salary)\nTask: Find salary from journal_entries where status appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(type, amount, date, salary)\n acquisition_log(level, salary, type, code)\nTask: Retrieve code from area_registry with value above the COUNT(amount) of acquisition_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(code, date, salary, value)\n journal_entries(id, level, name, date)\nTask: Retrieve amount from sourcing_list with amount above the SUM(salary) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(date, type, salary, code)\n sales_queue(status, amount, level, type)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(level, code, type, date)\n acquisition_log(type, code, salary, date)\nTask: Find value from cost_centers where amount exceeds the maximum value from acquisition_log for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE amount > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(amount, salary, name, value)\n dispatch_queue(value, status, level, amount)\nTask: Retrieve amount from workforce_data that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(code, level, id, type)\n engagement_log(type, status, salary, id)\nTask: Retrieve salary from stocking_sites with value above the MAX(value) of engagement_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE value > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, id, type, salary)\n sales_registry(amount, id, name, date)\nTask: Find code from stock_catalog where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, level, status, value)\n acquisition_log(value, salary, date, id)\nTask: Find name from sales_queue where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(value, salary, amount, status)\n area_registry(level, status, date, amount)\nTask: Select amount from sales_queue where amount is greater than the average of amount in area_registry for matching type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(status, salary, type, id)\n acquisition_log(status, salary, level, amount)\nTask: Select amount from stocking_sites where code exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, status, salary, name)\n personnel_registry(date, type, value, code)\nTask: Find salary from sourcing_list where level appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, amount, level, code)\n cost_centers(name, type, amount, code)\nTask: Select value from sourcing_list where status exists in cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(amount, status, value, type)\n area_registry(value, level, amount, salary)\nTask: Select value from sales_registry that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(id, value, amount, level)\n stocking_sites(level, amount, date, code)\nTask: Select value from sourcing_list where level exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(name, salary, amount, date)\n journal_entries(code, type, name, level)\nTask: Find id from activity_log where code appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(type, date, code, id)\n facility_registry(value, type, date, amount)\nTask: Retrieve name from cost_centers whose level is found in facility_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(status, amount, salary, type)\n activity_log(type, level, name, value)\nTask: Select amount from stock_catalog that have at least one matching row in activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(status, amount, date, value)\n workforce_data(status, salary, value, name)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(id, name, amount, salary)\n sourcing_list(salary, value, type, status)\nTask: Select amount from dispatch_queue where salary is greater than the total of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(level, name, type, amount)\n sourcing_list(status, id, level, salary)\nTask: Find value from area_registry where code appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT value FROM area_registry AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(status, type, level, name)\n activity_log(id, type, value, status)\nTask: Select value from journal_entries where id exists in activity_log for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(amount, value, code, name)\n sales_queue(date, id, name, salary)\nTask: Find name from activity_log where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(code, level, id, amount)\n attribute_groups(amount, name, salary, status)\nTask: Find name from journal_entries where amount exceeds the total value from attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE amount > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(value, date, name, id)\n stocking_sites(id, date, name, status)\nTask: Select amount from journal_entries where type exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(level, id, amount, code)\n portfolio_index(name, amount, value, code)\nTask: Find id from sourcing_list where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, date, amount, level)\n journal_entries(id, type, level, name)\nTask: Find code from dispatch_queue where type appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(type, name, salary, value)\n dispatch_queue(amount, level, type, date)\nTask: Find code from facility_registry where status appears in dispatch_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS inv\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(type, code, salary, status)\n sales_registry(name, amount, id, salary)\nTask: Select salary from sales_queue where value is greater than the total of salary in sales_registry for matching code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE value > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, id, level, amount)\n journal_entries(name, value, salary, date)\nTask: Retrieve name from portfolio_index whose type is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(status, date, type, level)\n sourcing_list(id, level, amount, status)\nTask: Select code from acquisition_log that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(level, code, value, date)\n personnel_registry(value, code, id, amount)\nTask: Retrieve value from journal_entries with value above the MAX(amount) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, salary, type, status)\n portfolio_index(value, date, name, level)\nTask: Find amount from stock_catalog where amount exceeds the total amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, level, id, type)\n personnel_registry(value, code, amount, date)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in personnel_registry sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(date, name, amount, type)\n sales_queue(code, type, salary, id)\nTask: Retrieve id from dispatch_queue whose level is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(code, level, status, date)\n sourcing_list(type, name, level, date)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(value, salary, date, amount)\n engagement_log(date, value, id, amount)\nTask: Select code from sales_registry where value is greater than the maximum of amount in engagement_log for matching status.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(value, date, type, salary)\n stock_catalog(type, code, date, value)\nTask: Find code from cost_centers where a matching record exists in stock_catalog with the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(name, id, amount, salary)\n sales_queue(name, salary, type, status)\nTask: Find name from stocking_sites where level appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, amount, date, level)\n attribute_groups(code, salary, level, name)\nTask: Select amount from cost_centers that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(status, amount, id, salary)\n sales_registry(code, status, name, salary)\nTask: Retrieve id from area_registry with value above the SUM(salary) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE value > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(value, level, code, status)\n sourcing_list(type, id, status, date)\nTask: Select id from stock_catalog that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(value, salary, level, amount)\n attribute_groups(type, code, name, status)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(type, id, amount, code)\n engagement_log(id, type, salary, date)\nTask: Find value from activity_log where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(salary, date, name, status)\n personnel_registry(status, level, name, type)\nTask: Retrieve amount from engagement_log with salary above the MAX(value) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE salary > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(date, type, name, id)\n facility_registry(level, status, salary, type)\nTask: Select code from sales_registry that have at least one matching row in facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(name, amount, id, date)\n area_registry(level, status, salary, amount)\nTask: Select salary from receivables_log where value is greater than the total of amount in area_registry for matching code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE value > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(amount, date, id, level)\n sales_registry(amount, date, id, name)\nTask: Select code from stocking_sites where code exists in sales_registry for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(type, salary, name, status)\n sales_queue(code, date, salary, type)\nTask: Find amount from sourcing_list where salary exceeds the count of amount from sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(status, code, date, type)\n portfolio_index(status, value, date, salary)\nTask: Find amount from sales_registry where id appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(code, amount, salary, level)\n portfolio_index(code, type, name, level)\nTask: Select value from sales_registry where value is greater than the maximum of salary in portfolio_index for matching code.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE value > (\n SELECT MAX(salary) FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(date, status, code, salary)\n activity_log(code, value, amount, id)\nTask: Select name from facility_registry where type exists in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, salary, amount, level)\n portfolio_index(date, type, id, value)\nTask: Find value from sourcing_list where amount exceeds the minimum salary from portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(date, amount, status, value)\n sourcing_list(name, id, status, code)\nTask: Find amount from acquisition_log where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(level, date, code, id)\n sales_queue(date, name, level, code)\nTask: Retrieve amount from area_registry with salary above the MIN(salary) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(salary, id, level, value)\n cost_centers(type, value, amount, status)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(status, date, id, amount)\n sales_registry(level, status, salary, code)\nTask: Find name from sourcing_list where value exceeds the count of amount from sales_registry for the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(value, date, type, status)\n portfolio_index(date, id, status, name)\nTask: Find name from engagement_log where salary exceeds the average salary from portfolio_index for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(date, type, level, code)\n attribute_groups(value, id, level, name)\nTask: Find value from portfolio_index where status appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(status, value, name, id)\n acquisition_log(level, salary, type, amount)\nTask: Select salary from sourcing_list where amount is greater than the total of amount in acquisition_log for matching status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(salary, name, status, level)\n stock_catalog(id, value, amount, date)\nTask: Retrieve code from activity_log that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(salary, id, date, level)\n workforce_data(type, salary, level, date)\nTask: Find name from receivables_log where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(level, value, type, date)\n stock_catalog(level, code, amount, value)\nTask: Retrieve salary from area_registry with salary above the AVG(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(code, id, name, status)\n attribute_groups(salary, status, date, amount)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(type, status, value, date)\n area_registry(level, status, salary, amount)\nTask: Select amount from sales_registry that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(date, id, salary, level)\n acquisition_log(name, value, status, amount)\nTask: Select id from engagement_log where value is greater than the total of value in acquisition_log for matching id.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE value > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(id, salary, date, name)\n activity_log(id, date, code, name)\nTask: Select value from attribute_groups that have at least one matching row in activity_log for the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(level, salary, code, date)\n dispatch_queue(id, date, amount, level)\nTask: Retrieve code from area_registry that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(date, name, status, amount)\n facility_registry(amount, status, level, type)\nTask: Find salary from journal_entries where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(name, level, id, date)\n stocking_sites(value, status, type, salary)\nTask: Select id from activity_log where value is greater than the count of of value in stocking_sites for matching id.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE value > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(level, value, date, type)\n stock_catalog(name, status, salary, date)\nTask: Select name from attribute_groups where id exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(date, level, type, code)\n sales_registry(date, id, level, type)\nTask: Retrieve amount from workforce_data that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(date, code, salary, id)\n cost_centers(name, amount, salary, code)\nTask: Find name from sales_registry where type appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(code, status, type, salary)\n receivables_log(amount, date, name, value)\nTask: Find name from stocking_sites where amount exceeds the minimum value from receivables_log for the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(salary, amount, level, name)\n area_registry(name, status, id, code)\nTask: Select amount from journal_entries where status exists in area_registry for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(code, level, status, value)\n acquisition_log(level, type, date, value)\nTask: Select code from receivables_log where amount is greater than the count of of amount in acquisition_log for matching level.\nSQL:", "sql": "SELECT code FROM receivables_log AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(id, name, type, salary)\n dispatch_queue(amount, type, value, level)\nTask: Find amount from journal_entries where salary exceeds the average salary from dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(date, id, status, value)\n facility_registry(type, name, value, code)\nTask: Find id from acquisition_log where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(salary, type, status, value)\n facility_registry(type, id, value, date)\nTask: Retrieve id from engagement_log whose type is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(date, level, type, id)\n engagement_log(value, amount, type, date)\nTask: Find code from attribute_groups where status appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(amount, level, value, type)\n attribute_groups(id, name, date, salary)\nTask: Find name from personnel_registry where id appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(id, name, level, salary)\n workforce_data(date, value, code, salary)\nTask: Retrieve salary from dispatch_queue with salary above the COUNT(amount) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(amount, name, code, status)\n acquisition_log(amount, date, name, status)\nTask: Retrieve value from dispatch_queue whose status is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(type, amount, id, status)\n area_registry(name, level, type, salary)\nTask: Select amount from journal_entries where code exists in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(id, value, salary, name)\n sourcing_list(amount, type, salary, date)\nTask: Find salary from portfolio_index where amount exceeds the average value from sourcing_list for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE amount > (\n SELECT AVG(value) FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(type, amount, code, id)\n engagement_log(level, code, date, name)\nTask: Find name from activity_log where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(salary, code, type, date)\n attribute_groups(level, status, salary, name)\nTask: Find id from facility_registry where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(id, amount, value, date)\n workforce_data(value, code, amount, id)\nTask: Retrieve code from facility_registry whose type is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(amount, value, type, salary)\n activity_log(status, name, amount, salary)\nTask: Find value from acquisition_log where type appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(level, salary, amount, value)\n engagement_log(date, id, name, salary)\nTask: Select amount from facility_registry that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(id, level, date, code)\n attribute_groups(date, value, id, level)\nTask: Find value from workforce_data where amount exceeds the average value from attribute_groups for the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE amount > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(name, level, status, type)\n sourcing_list(name, type, code, status)\nTask: Find amount from area_registry where type appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(date, id, status, level)\n facility_registry(name, date, value, type)\nTask: Retrieve salary from engagement_log with value above the AVG(value) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(name, value, date, amount)\n dispatch_queue(date, name, level, salary)\nTask: Find code from journal_entries where type appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(status, type, id, value)\n sales_queue(value, type, code, level)\nTask: Find code from dispatch_queue where id appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(status, type, id, code)\n attribute_groups(amount, date, level, type)\nTask: Find salary from portfolio_index where salary exceeds the minimum value from attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE salary > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(date, type, salary, amount)\n personnel_registry(status, amount, type, id)\nTask: Retrieve id from sourcing_list whose level is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(amount, date, type, salary)\n facility_registry(date, type, status, amount)\nTask: Select id from acquisition_log where status exists in facility_registry for the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(level, type, status, salary)\n cost_centers(id, amount, salary, date)\nTask: Find code from acquisition_log where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(type, amount, code, level)\n area_registry(amount, code, date, status)\nTask: Select name from sourcing_list where status exists in area_registry for the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(value, id, level, code)\n personnel_registry(level, name, amount, date)\nTask: Find id from cost_centers where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, value, amount, id)\n journal_entries(value, salary, date, id)\nTask: Select salary from workforce_data that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(id, name, code, value)\n dispatch_queue(level, name, code, date)\nTask: Select value from facility_registry where code exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(id, date, salary, status)\n acquisition_log(salary, code, date, status)\nTask: Select amount from attribute_groups where id exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(type, id, salary, code)\n personnel_registry(name, amount, level, salary)\nTask: Find salary from facility_registry where amount exceeds the count of amount from personnel_registry for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE amount > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(status, code, salary, type)\n stock_catalog(salary, type, name, level)\nTask: Retrieve name from sales_queue whose id is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(amount, name, date, value)\n dispatch_queue(name, status, id, salary)\nTask: Select amount from personnel_registry where level exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(id, status, value, date)\n sales_registry(amount, level, code, id)\nTask: Find value from stocking_sites where salary exceeds the count of value from sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, date, code, type)\n dispatch_queue(value, code, id, level)\nTask: Find id from stocking_sites where code appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(salary, type, status, id)\n workforce_data(name, value, date, code)\nTask: Find salary from attribute_groups where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(date, type, amount, name)\n workforce_data(value, amount, status, level)\nTask: Select id from portfolio_index where salary is greater than the minimum of salary in workforce_data for matching code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, id, level, salary)\n attribute_groups(amount, date, type, level)\nTask: Select name from sourcing_list that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(id, value, date, name)\n engagement_log(name, level, salary, type)\nTask: Select value from cost_centers where value is greater than the total of value in engagement_log for matching level.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE value > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(amount, date, value, code)\n sales_queue(type, level, status, date)\nTask: Retrieve code from workforce_data with value above the MIN(amount) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE value > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(id, code, name, type)\n attribute_groups(date, amount, code, salary)\nTask: Find id from stocking_sites where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(code, salary, name, type)\n stock_catalog(type, amount, level, date)\nTask: Retrieve value from personnel_registry whose level is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(code, id, amount, name)\n personnel_registry(status, amount, type, date)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(value, code, status, level)\n engagement_log(date, salary, name, amount)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(id, type, date, amount)\n cost_centers(name, type, salary, amount)\nTask: Select name from journal_entries where status exists in cost_centers for the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(value, type, status, salary)\n engagement_log(date, id, amount, value)\nTask: Select salary from dispatch_queue that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(name, code, salary, type)\n workforce_data(salary, level, type, code)\nTask: Retrieve name from sales_registry whose status is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(value, type, name, salary)\n cost_centers(date, amount, level, id)\nTask: Retrieve name from portfolio_index with salary above the AVG(salary) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(salary, status, amount, id)\n stocking_sites(level, status, value, code)\nTask: Select amount from engagement_log where type exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(amount, salary, type, date)\n engagement_log(amount, name, value, id)\nTask: Select salary from facility_registry where salary is greater than the minimum of amount in engagement_log for matching id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(type, salary, id, amount)\n personnel_registry(level, date, id, status)\nTask: Find name from sales_registry where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT name FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, date, type, amount)\n acquisition_log(status, level, date, type)\nTask: Select code from cost_centers where amount is greater than the maximum of value in acquisition_log for matching code.\nSQL:", "sql": "SELECT code FROM cost_centers AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(name, date, level, status)\n dispatch_queue(type, level, status, id)\nTask: Find value from stock_catalog where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(level, type, amount, name)\n sourcing_list(id, status, name, amount)\nTask: Select value from portfolio_index that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(code, date, name, salary)\n attribute_groups(id, salary, status, type)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(code, type, value, salary)\n stock_catalog(value, level, type, id)\nTask: Retrieve code from sales_queue with amount above the SUM(amount) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(name, date, status, type)\n portfolio_index(name, salary, status, level)\nTask: Retrieve salary from facility_registry with salary above the MAX(value) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(value, code, status, type)\n attribute_groups(code, date, amount, status)\nTask: Find code from acquisition_log where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(name, status, code, salary)\n personnel_registry(amount, id, code, status)\nTask: Retrieve id from portfolio_index with salary above the SUM(salary) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(code, id, salary, level)\n sourcing_list(level, status, type, value)\nTask: Retrieve id from stock_catalog that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(status, id, level, date)\n receivables_log(salary, status, id, date)\nTask: Retrieve salary from portfolio_index whose status is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(date, amount, status, id)\n activity_log(amount, name, level, value)\nTask: Find id from portfolio_index where status appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(name, salary, value, id)\n cost_centers(status, salary, name, value)\nTask: Retrieve amount from stocking_sites that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(amount, level, salary, date)\n dispatch_queue(salary, value, type, level)\nTask: Select amount from acquisition_log where amount is greater than the count of of value in dispatch_queue for matching level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(status, amount, level, salary)\n attribute_groups(amount, date, status, salary)\nTask: Select id from sourcing_list that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(level, name, date, id)\n area_registry(code, id, date, level)\nTask: Find name from receivables_log where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(amount, salary, status, level)\n receivables_log(level, type, amount, salary)\nTask: Find id from facility_registry where a matching record exists in receivables_log with the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(level, salary, date, name)\n cost_centers(salary, amount, type, name)\nTask: Retrieve code from engagement_log with salary above the MIN(salary) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(amount, type, id, date)\n activity_log(name, date, id, salary)\nTask: Find id from engagement_log where code appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, status, id, amount)\n attribute_groups(id, type, value, level)\nTask: Select amount from stocking_sites where amount is greater than the minimum of amount in attribute_groups for matching id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, date, status, name)\n dispatch_queue(code, salary, name, status)\nTask: Select code from attribute_groups where salary is greater than the total of amount in dispatch_queue for matching id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(type, date, id, name)\n attribute_groups(amount, value, date, code)\nTask: Find name from sales_registry where type appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(name, type, amount, status)\n engagement_log(id, level, code, salary)\nTask: Find amount from dispatch_queue where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(code, type, date, amount)\n dispatch_queue(level, type, id, amount)\nTask: Find salary from stocking_sites where status appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(id, type, level, value)\n facility_registry(value, level, date, id)\nTask: Retrieve id from receivables_log with amount above the MIN(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE amount > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(amount, id, level, code)\n sourcing_list(status, type, value, salary)\nTask: Select name from receivables_log where status exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, value, level, salary)\n stocking_sites(value, amount, id, type)\nTask: Retrieve code from dispatch_queue with value above the SUM(salary) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE value > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(value, level, type, code)\n engagement_log(level, name, id, amount)\nTask: Select id from sourcing_list where amount is greater than the maximum of value in engagement_log for matching code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE amount > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(code, name, value, amount)\n attribute_groups(salary, value, level, type)\nTask: Select id from journal_entries where id exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(id, level, type, amount)\n dispatch_queue(date, level, name, salary)\nTask: Retrieve salary from personnel_registry whose code is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(code, status, name, type)\n acquisition_log(name, value, level, amount)\nTask: Retrieve code from portfolio_index whose code is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(id, value, date, amount)\n engagement_log(type, salary, value, status)\nTask: Find name from personnel_registry where salary exceeds the total value from engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE salary > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(date, level, value, salary)\n stock_catalog(status, value, id, type)\nTask: Select amount from attribute_groups where salary is greater than the average of amount in stock_catalog for matching code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(status, value, code, type)\n sourcing_list(value, salary, status, date)\nTask: Retrieve value from engagement_log with salary above the SUM(amount) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(date, level, salary, code)\n attribute_groups(status, name, date, value)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(type, status, value, id)\n sales_queue(code, date, id, type)\nTask: Retrieve name from area_registry with value above the SUM(amount) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE value > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(status, amount, date, type)\n facility_registry(status, id, value, level)\nTask: Retrieve id from activity_log with value above the SUM(amount) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE value > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(name, status, code, level)\n sourcing_list(type, date, name, id)\nTask: Find name from activity_log where status appears in sourcing_list entries with matching type.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(id, type, name, status)\n stocking_sites(value, id, amount, type)\nTask: Find id from cost_centers where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(amount, code, salary, date)\n engagement_log(date, amount, salary, value)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(id, amount, level, name)\n activity_log(amount, salary, level, type)\nTask: Select value from receivables_log where salary is greater than the count of of salary in activity_log for matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, amount, salary, value)\n engagement_log(name, type, level, id)\nTask: Select amount from dispatch_queue where code exists in engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(name, value, level, amount)\n acquisition_log(type, level, salary, name)\nTask: Find name from cost_centers where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(date, value, status, salary)\n cost_centers(salary, id, code, status)\nTask: Retrieve id from stock_catalog whose code is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, type, amount, value)\n activity_log(value, name, type, salary)\nTask: Retrieve name from sourcing_list with amount above the MIN(salary) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(name, value, id, salary)\n sourcing_list(level, amount, name, date)\nTask: Retrieve amount from cost_centers whose id is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(date, value, amount, salary)\n workforce_data(level, code, id, salary)\nTask: Retrieve name from portfolio_index whose status is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(date, type, id, salary)\n facility_registry(amount, type, code, id)\nTask: Select code from engagement_log where value is greater than the maximum of value in facility_registry for matching status.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE value > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(salary, level, status, name)\n acquisition_log(salary, status, date, value)\nTask: Retrieve value from sales_registry whose status is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(salary, status, code, name)\n activity_log(value, id, salary, status)\nTask: Retrieve salary from sales_registry whose level is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(name, status, value, salary)\n sales_registry(id, level, amount, value)\nTask: Retrieve code from personnel_registry with amount above the COUNT(salary) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(status, level, salary, name)\n engagement_log(date, value, id, code)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(date, type, level, status)\n portfolio_index(status, id, date, code)\nTask: Select salary from facility_registry where salary is greater than the average of amount in portfolio_index for matching id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(code, level, id, name)\n activity_log(status, type, name, date)\nTask: Select code from sales_registry where salary is greater than the average of value in activity_log for matching id.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE salary > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(value, code, status, salary)\n workforce_data(date, name, value, code)\nTask: Find code from activity_log where amount exceeds the minimum value from workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE amount > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(code, name, type, value)\n stock_catalog(type, value, status, amount)\nTask: Select amount from receivables_log that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(amount, salary, level, status)\n engagement_log(level, name, value, code)\nTask: Select amount from portfolio_index that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(id, value, date, amount)\n workforce_data(status, id, name, code)\nTask: Select amount from attribute_groups where salary is greater than the count of of value in workforce_data for matching type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE salary > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(status, type, date, name)\n stocking_sites(value, amount, level, status)\nTask: Select amount from sales_registry where code exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS emp\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(salary, level, status, date)\n portfolio_index(salary, type, id, name)\nTask: Retrieve amount from cost_centers with amount above the AVG(salary) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(salary, date, status, amount)\n sales_queue(value, salary, date, id)\nTask: Select name from engagement_log that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(level, value, amount, name)\n dispatch_queue(salary, name, value, type)\nTask: Find value from sales_queue where a matching record exists in dispatch_queue with the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, value, level, salary)\n acquisition_log(date, id, amount, type)\nTask: Retrieve amount from workforce_data that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(salary, name, type, id)\n portfolio_index(name, level, status, value)\nTask: Select id from engagement_log where id exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(code, salary, id, type)\n engagement_log(name, date, type, status)\nTask: Select code from stocking_sites that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(id, date, value, code)\n sourcing_list(name, date, id, code)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(level, value, id, date)\n engagement_log(name, salary, status, value)\nTask: Select name from attribute_groups where level exists in engagement_log for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(type, value, code, amount)\n sales_queue(name, level, id, type)\nTask: Retrieve salary from receivables_log with value above the AVG(amount) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE value > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(name, id, value, salary)\n cost_centers(code, date, id, level)\nTask: Retrieve value from stocking_sites whose code is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(value, salary, type, level)\n dispatch_queue(code, name, value, amount)\nTask: Find amount from sourcing_list where salary exceeds the count of amount from dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, salary, id, level)\n activity_log(status, value, date, name)\nTask: Select name from dispatch_queue where amount is greater than the maximum of salary in activity_log for matching type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(amount, code, name, id)\n sales_queue(value, status, level, date)\nTask: Select code from sales_registry where salary is greater than the minimum of amount in sales_queue for matching status.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(code, date, name, value)\n sales_registry(salary, name, value, date)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(amount, level, salary, value)\n facility_registry(code, value, level, name)\nTask: Retrieve name from cost_centers whose type is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(name, date, status, id)\n facility_registry(value, name, id, code)\nTask: Select name from portfolio_index where amount is greater than the average of salary in facility_registry for matching code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(type, salary, name, value)\n personnel_registry(code, value, id, date)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(level, date, salary, name)\n stocking_sites(salary, value, type, level)\nTask: Select code from sales_registry where value is greater than the maximum of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE value > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(type, value, date, id)\n portfolio_index(level, date, id, type)\nTask: Find code from acquisition_log where code appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(id, date, amount, salary)\n sales_registry(id, salary, code, name)\nTask: Select code from portfolio_index that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(level, amount, date, value)\n personnel_registry(level, value, id, date)\nTask: Find name from stock_catalog where level appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(amount, value, name, id)\n cost_centers(date, amount, status, name)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(status, value, type, name)\n receivables_log(code, date, level, salary)\nTask: Select value from activity_log where salary is greater than the average of salary in receivables_log for matching level.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(level, code, status, salary)\n sales_registry(date, code, type, id)\nTask: Select id from attribute_groups where value is greater than the total of value in sales_registry for matching type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE value > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(name, level, type, code)\n acquisition_log(date, type, amount, value)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(code, status, amount, salary)\n acquisition_log(level, salary, type, amount)\nTask: Select name from workforce_data where type exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(level, id, amount, salary)\n cost_centers(date, status, value, level)\nTask: Select id from engagement_log that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(salary, id, value, status)\n acquisition_log(amount, salary, value, type)\nTask: Select amount from engagement_log that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, name, salary, status)\n sales_registry(type, code, date, salary)\nTask: Find id from dispatch_queue where amount exceeds the minimum value from sales_registry for the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(status, value, amount, type)\n journal_entries(value, status, amount, code)\nTask: Select code from stock_catalog where level exists in journal_entries for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(amount, id, name, date)\n engagement_log(level, name, status, type)\nTask: Select code from stock_catalog where id exists in engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(date, level, id, value)\n personnel_registry(name, level, status, amount)\nTask: Find value from receivables_log where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(salary, status, name, level)\n sourcing_list(code, id, value, status)\nTask: Select id from journal_entries that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(status, value, code, type)\n sales_queue(status, code, type, name)\nTask: Find name from portfolio_index where code appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(salary, code, level, date)\n acquisition_log(status, name, amount, id)\nTask: Retrieve code from journal_entries with value above the MIN(amount) of acquisition_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE value > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(type, name, level, date)\n facility_registry(amount, value, status, id)\nTask: Select id from attribute_groups where id exists in facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(value, level, salary, amount)\n sales_queue(type, value, id, amount)\nTask: Retrieve code from stock_catalog whose level is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(code, name, type, level)\n attribute_groups(code, level, date, type)\nTask: Find id from sales_registry where level appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(name, id, code, value)\n sales_registry(id, type, status, level)\nTask: Select id from sales_queue where id exists in sales_registry for the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(id, salary, value, code)\n sourcing_list(value, amount, id, salary)\nTask: Find id from facility_registry where value exceeds the maximum value from sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(name, salary, id, level)\n portfolio_index(date, id, salary, value)\nTask: Select amount from receivables_log where code exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(code, type, amount, date)\n engagement_log(amount, salary, status, level)\nTask: Find code from sales_queue where level appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(value, amount, type, code)\n engagement_log(status, salary, value, amount)\nTask: Select id from workforce_data that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(name, type, code, id)\n attribute_groups(name, status, value, salary)\nTask: Find amount from receivables_log where salary exceeds the average salary from attribute_groups for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(code, salary, status, amount)\n engagement_log(id, date, status, level)\nTask: Select value from workforce_data where type exists in engagement_log for the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(date, type, value, code)\n engagement_log(value, date, type, status)\nTask: Retrieve amount from portfolio_index that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(salary, id, value, status)\n portfolio_index(level, type, id, code)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(status, salary, type, date)\n stock_catalog(amount, level, salary, name)\nTask: Find value from dispatch_queue where a matching record exists in stock_catalog with the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(type, code, amount, date)\n dispatch_queue(value, amount, id, type)\nTask: Retrieve amount from receivables_log whose status is found in dispatch_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(type, date, salary, status)\n acquisition_log(type, code, value, status)\nTask: Find amount from sourcing_list where salary exceeds the maximum amount from acquisition_log for the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, value, id, status)\n stocking_sites(status, code, type, id)\nTask: Select salary from receivables_log where id exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, salary, value, status)\n receivables_log(amount, salary, id, code)\nTask: Find code from journal_entries where status appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(value, date, id, level)\n stocking_sites(salary, value, level, date)\nTask: Retrieve value from facility_registry whose level is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, type, value, salary)\n portfolio_index(status, date, id, value)\nTask: Retrieve value from acquisition_log with amount above the COUNT(amount) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE amount > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(type, level, status, salary)\n stock_catalog(name, level, type, salary)\nTask: Find id from facility_registry where amount exceeds the total salary from stock_catalog for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(status, salary, amount, code)\n workforce_data(date, code, status, id)\nTask: Find code from sourcing_list where status appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(name, amount, id, status)\n area_registry(code, value, date, type)\nTask: Select amount from activity_log that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(date, id, status, code)\n workforce_data(type, name, amount, value)\nTask: Retrieve amount from activity_log with salary above the MAX(value) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE salary > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(name, date, level, status)\n engagement_log(value, id, level, status)\nTask: Find name from area_registry where code appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(code, id, date, value)\n personnel_registry(code, name, value, status)\nTask: Retrieve name from sourcing_list whose level is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(name, type, level, amount)\n acquisition_log(type, status, id, level)\nTask: Retrieve value from activity_log with salary above the MIN(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(value, level, type, name)\n journal_entries(name, amount, salary, level)\nTask: Select salary from receivables_log that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(id, amount, level, code)\n dispatch_queue(name, amount, status, value)\nTask: Select name from stocking_sites where value is greater than the minimum of amount in dispatch_queue for matching type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(value, amount, name, id)\n sourcing_list(value, amount, type, id)\nTask: Select salary from attribute_groups where code exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(name, id, date, value)\n dispatch_queue(amount, status, level, code)\nTask: Select amount from cost_centers where value is greater than the average of amount in dispatch_queue for matching id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(name, date, code, amount)\n area_registry(salary, name, amount, id)\nTask: Find value from journal_entries where salary exceeds the average value from area_registry for the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE salary > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(name, code, type, salary)\n engagement_log(amount, value, type, date)\nTask: Find id from stocking_sites where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(date, id, code, value)\n sourcing_list(date, status, type, id)\nTask: Select amount from facility_registry where salary is greater than the total of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(status, level, type, salary)\n receivables_log(value, amount, code, type)\nTask: Find id from area_registry where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(level, name, date, type)\n stock_catalog(status, amount, date, type)\nTask: Select code from sales_registry that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(value, type, id, code)\n workforce_data(code, salary, amount, date)\nTask: Select value from area_registry where level exists in workforce_data for the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(date, salary, level, code)\n workforce_data(type, value, id, status)\nTask: Retrieve code from dispatch_queue whose level is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(status, name, date, code)\n stocking_sites(date, salary, name, code)\nTask: Find amount from receivables_log where code appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(status, amount, salary, name)\n personnel_registry(name, level, date, id)\nTask: Select salary from sourcing_list that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(amount, code, name, type)\n stocking_sites(id, date, level, amount)\nTask: Find name from area_registry where amount exceeds the maximum salary from stocking_sites for the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(amount, status, name, type)\n receivables_log(code, level, name, salary)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(id, value, code, name)\n portfolio_index(type, level, code, status)\nTask: Find value from acquisition_log where amount exceeds the maximum amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(type, id, status, date)\n sales_registry(type, value, amount, id)\nTask: Retrieve code from workforce_data with salary above the COUNT(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(amount, value, code, salary)\n cost_centers(name, type, value, date)\nTask: Select salary from facility_registry where id exists in cost_centers for the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(status, name, salary, value)\n acquisition_log(value, level, date, amount)\nTask: Find name from engagement_log where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(amount, date, id, salary)\n engagement_log(id, amount, level, status)\nTask: Retrieve id from personnel_registry whose status is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(type, name, id, salary)\n receivables_log(amount, salary, code, type)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in receivables_log sharing the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(id, amount, code, type)\n receivables_log(id, level, name, status)\nTask: Select code from attribute_groups where salary is greater than the minimum of value in receivables_log for matching level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE salary > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(date, amount, salary, value)\n sales_queue(status, salary, id, name)\nTask: Find amount from facility_registry where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(amount, salary, code, id)\n sales_registry(date, salary, status, amount)\nTask: Select id from cost_centers that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(type, name, value, status)\n journal_entries(status, level, code, amount)\nTask: Find salary from acquisition_log where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(status, date, amount, value)\n area_registry(status, type, id, code)\nTask: Retrieve value from sales_queue with amount above the COUNT(amount) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, date, value, name)\n area_registry(date, value, level, amount)\nTask: Find value from activity_log where value exceeds the count of salary from area_registry for the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE value > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(value, id, salary, level)\n dispatch_queue(type, id, value, level)\nTask: Select value from workforce_data that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(value, code, type, salary)\n cost_centers(status, code, date, level)\nTask: Select id from area_registry where code exists in cost_centers for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, date, salary, level)\n receivables_log(salary, level, status, type)\nTask: Retrieve code from dispatch_queue whose type is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(code, salary, amount, name)\n dispatch_queue(status, level, code, value)\nTask: Select salary from stocking_sites where value is greater than the average of value in dispatch_queue for matching status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE value > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, amount, date, salary)\n attribute_groups(code, type, amount, level)\nTask: Retrieve salary from dispatch_queue with value above the AVG(amount) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE value > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(status, id, salary, type)\n area_registry(code, amount, status, date)\nTask: Select code from portfolio_index where amount is greater than the minimum of salary in area_registry for matching status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(salary, level, id, amount)\n dispatch_queue(date, salary, type, status)\nTask: Find value from engagement_log where value exceeds the average value from dispatch_queue for the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE value > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(name, id, salary, amount)\n portfolio_index(salary, amount, date, code)\nTask: Find salary from stock_catalog where code appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(id, date, name, type)\n facility_registry(amount, code, salary, type)\nTask: Retrieve name from receivables_log with amount above the MIN(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(salary, type, amount, date)\n engagement_log(date, level, id, type)\nTask: Retrieve id from activity_log with amount above the MIN(value) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE amount > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(status, date, amount, level)\n attribute_groups(date, salary, type, level)\nTask: Select amount from engagement_log that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(amount, value, code, id)\n acquisition_log(id, type, level, status)\nTask: Find value from stocking_sites where code appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(id, value, date, amount)\n stock_catalog(status, level, name, salary)\nTask: Find salary from portfolio_index where value exceeds the count of salary from stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(code, level, name, type)\n attribute_groups(value, level, id, type)\nTask: Select id from activity_log where value is greater than the total of salary in attribute_groups for matching level.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE value > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(date, salary, type, amount)\n activity_log(id, salary, level, status)\nTask: Retrieve id from sales_queue with value above the COUNT(salary) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, level, amount, date)\n workforce_data(type, level, value, id)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(type, date, name, salary)\n facility_registry(type, amount, date, status)\nTask: Retrieve name from sales_registry whose level is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(amount, id, level, date)\n personnel_registry(name, type, id, level)\nTask: Retrieve amount from dispatch_queue whose status is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(name, salary, level, date)\n acquisition_log(name, id, salary, value)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(id, code, value, amount)\n sourcing_list(id, amount, status, code)\nTask: Find value from sales_registry where code appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(type, level, salary, id)\n stock_catalog(salary, code, amount, id)\nTask: Retrieve code from attribute_groups with amount above the AVG(salary) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE amount > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(id, status, amount, date)\n stock_catalog(level, amount, id, salary)\nTask: Find value from journal_entries where value exceeds the total salary from stock_catalog for the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE value > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(type, level, amount, date)\n attribute_groups(salary, code, amount, level)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT code FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(date, type, level, salary)\n receivables_log(code, salary, id, level)\nTask: Find code from stock_catalog where value exceeds the maximum value from receivables_log for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE value > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(name, code, value, id)\n attribute_groups(name, value, salary, level)\nTask: Select salary from stock_catalog where amount is greater than the average of amount in attribute_groups for matching type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(name, date, status, type)\n activity_log(level, name, code, salary)\nTask: Find amount from sales_queue where id appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(salary, status, id, date)\n acquisition_log(name, value, date, code)\nTask: Retrieve id from portfolio_index whose code is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(code, level, value, type)\n cost_centers(type, date, status, amount)\nTask: Retrieve name from receivables_log whose code is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(status, name, id, date)\n workforce_data(date, level, value, type)\nTask: Select id from activity_log that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(id, date, salary, amount)\n activity_log(code, level, amount, type)\nTask: Retrieve name from personnel_registry with salary above the MIN(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(name, status, date, value)\n attribute_groups(date, name, code, value)\nTask: Find id from activity_log where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(name, status, value, code)\n personnel_registry(type, amount, id, status)\nTask: Select value from attribute_groups where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(level, code, type, status)\n dispatch_queue(type, name, code, date)\nTask: Retrieve name from acquisition_log with salary above the COUNT(salary) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(type, value, level, date)\n activity_log(name, code, value, salary)\nTask: Find salary from sales_registry where amount exceeds the count of amount from activity_log for the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE amount > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(name, value, status, date)\n journal_entries(status, value, name, date)\nTask: Find name from receivables_log where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, level, status, date)\n sales_queue(name, salary, status, code)\nTask: Find amount from receivables_log where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(level, salary, amount, id)\n facility_registry(id, status, level, name)\nTask: Select value from stocking_sites where value is greater than the total of salary in facility_registry for matching id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE value > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, code, name, value)\n stocking_sites(level, value, salary, date)\nTask: Retrieve value from attribute_groups whose status is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(code, level, amount, date)\n area_registry(value, type, date, id)\nTask: Retrieve name from stocking_sites whose id is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(id, status, date, level)\n portfolio_index(name, salary, id, amount)\nTask: Select code from facility_registry where level exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(id, date, value, amount)\n stock_catalog(name, id, salary, value)\nTask: Retrieve code from attribute_groups with salary above the MAX(amount) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(name, salary, status, type)\n journal_entries(date, value, name, amount)\nTask: Select salary from sales_registry that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(date, id, status, amount)\n sales_queue(id, code, name, date)\nTask: Find name from workforce_data where salary exceeds the average value from sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(date, status, level, type)\n facility_registry(code, date, status, salary)\nTask: Retrieve id from workforce_data whose level is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM workforce_data AS inv\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(value, code, salary, id)\n cost_centers(level, code, date, type)\nTask: Find id from activity_log where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, type, value, level)\n personnel_registry(status, name, value, salary)\nTask: Select code from portfolio_index where id exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, status, value, level)\n sourcing_list(amount, code, type, status)\nTask: Select code from dispatch_queue where code exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(salary, id, date, amount)\n area_registry(salary, type, value, code)\nTask: Select name from activity_log where id exists in area_registry for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(value, amount, status, salary)\n cost_centers(level, type, id, date)\nTask: Retrieve id from stocking_sites with amount above the MAX(amount) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(status, amount, value, level)\n area_registry(status, type, level, salary)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in area_registry sharing the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(date, name, level, type)\n stock_catalog(name, type, code, amount)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(id, name, amount, type)\n personnel_registry(level, date, type, code)\nTask: Select amount from sales_queue where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(name, id, type, amount)\n dispatch_queue(id, value, level, name)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(value, date, level, id)\n facility_registry(salary, value, code, id)\nTask: Select name from attribute_groups where value is greater than the total of salary in facility_registry for matching status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE value > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(value, type, status, name)\n acquisition_log(code, type, status, amount)\nTask: Retrieve amount from workforce_data with value above the MAX(salary) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE value > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(amount, value, status, type)\n sales_registry(id, amount, salary, name)\nTask: Retrieve id from sales_queue whose status is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(name, salary, status, type)\n portfolio_index(name, amount, value, status)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(name, code, id, salary)\n dispatch_queue(type, status, id, name)\nTask: Retrieve salary from attribute_groups with amount above the AVG(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(level, value, id, code)\n receivables_log(status, salary, name, level)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(level, value, type, name)\n facility_registry(amount, type, value, code)\nTask: Find value from sourcing_list where type appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(name, id, date, level)\n receivables_log(type, value, status, amount)\nTask: Retrieve value from facility_registry whose status is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(code, salary, value, level)\n area_registry(date, id, value, status)\nTask: Select name from sales_queue where level exists in area_registry for the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(value, name, status, code)\n activity_log(amount, date, level, code)\nTask: Retrieve value from facility_registry with value above the COUNT(amount) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(value, type, salary, amount)\n stock_catalog(value, status, code, level)\nTask: Select id from activity_log where id exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(id, amount, name, value)\n stock_catalog(name, date, amount, level)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(date, name, type, id)\n sales_queue(value, code, type, id)\nTask: Find code from stock_catalog where type appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(value, level, status, date)\n workforce_data(status, date, salary, value)\nTask: Find name from receivables_log where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(status, id, value, type)\n stock_catalog(status, salary, date, amount)\nTask: Find id from sales_registry where salary exceeds the maximum salary from stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, level, amount, type)\n dispatch_queue(name, status, type, id)\nTask: Find amount from personnel_registry where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(id, salary, type, value)\n personnel_registry(salary, amount, value, code)\nTask: Select id from stocking_sites where status exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(status, type, value, salary)\n sales_registry(status, code, name, salary)\nTask: Find name from stocking_sites where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(id, name, amount, date)\n personnel_registry(value, status, salary, type)\nTask: Retrieve value from receivables_log with value above the MAX(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "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}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, salary, date, value)\n receivables_log(level, value, code, date)\nTask: Select id from acquisition_log where code exists in receivables_log for the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(date, code, amount, id)\n dispatch_queue(status, code, amount, id)\nTask: Find amount from sales_registry where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(type, name, date, level)\n cost_centers(amount, code, level, id)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(name, date, amount, status)\n facility_registry(date, type, status, salary)\nTask: Find id from stock_catalog where type appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(code, salary, name, amount)\n facility_registry(name, status, id, code)\nTask: Select code from sales_registry where value is greater than the average of amount in facility_registry for matching status.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE value > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(id, status, type, date)\n dispatch_queue(type, date, level, value)\nTask: Find name from receivables_log where value exceeds the maximum value from dispatch_queue for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE value > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(salary, amount, level, name)\n personnel_registry(status, value, date, code)\nTask: Select code from receivables_log where value is greater than the maximum of value in personnel_registry for matching level.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, code, date, name)\n sales_queue(name, status, code, date)\nTask: Retrieve salary from sourcing_list whose id is found in sales_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(date, name, amount, id)\n attribute_groups(name, type, amount, value)\nTask: Select code from sales_registry where status exists in attribute_groups for the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, status, value, id)\n dispatch_queue(level, code, id, name)\nTask: Retrieve name from sourcing_list whose code is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(value, id, level, status)\n facility_registry(level, date, amount, type)\nTask: Select salary from personnel_registry where type exists in facility_registry for the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(value, type, id, date)\n portfolio_index(level, type, amount, name)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(type, salary, status, code)\n sales_queue(amount, value, name, id)\nTask: Find amount from cost_centers where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(type, value, status, id)\n receivables_log(level, status, type, name)\nTask: Select salary from engagement_log where id exists in receivables_log for the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(status, type, id, salary)\n workforce_data(amount, level, type, name)\nTask: Select salary from sales_queue where id exists in workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, level, status, code)\n sales_queue(level, code, type, id)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(date, id, status, level)\n acquisition_log(code, status, id, level)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, type, level, name)\n area_registry(amount, id, code, level)\nTask: Find code from sourcing_list where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, value, type, salary)\n workforce_data(date, status, code, level)\nTask: Find id from stock_catalog where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(name, status, level, value)\n sales_queue(name, type, code, level)\nTask: Select name from acquisition_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(date, name, amount, status)\n area_registry(code, value, level, name)\nTask: Find value from personnel_registry where value exceeds the total value from area_registry for the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS dept\nWHERE value > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(level, value, date, name)\n personnel_registry(code, type, level, status)\nTask: Select code from stock_catalog where status exists in personnel_registry for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(value, status, level, id)\n workforce_data(value, amount, salary, code)\nTask: Select value from sourcing_list where status exists in workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(name, id, value, amount)\n sourcing_list(value, id, name, code)\nTask: Retrieve salary from facility_registry whose type is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(code, value, amount, salary)\n acquisition_log(id, code, level, type)\nTask: Find id from receivables_log where amount exceeds the total salary from acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, level, id, value)\n stock_catalog(status, code, name, id)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(value, date, amount, level)\n stocking_sites(id, code, level, type)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(name, date, value, code)\n sourcing_list(value, name, id, level)\nTask: Find id from dispatch_queue where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, value, amount, status)\n engagement_log(date, level, amount, value)\nTask: Select code from stock_catalog where id exists in engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(code, date, value, salary)\n facility_registry(amount, salary, date, code)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, code, level, amount)\n stocking_sites(salary, id, code, amount)\nTask: Find id from acquisition_log where value exceeds the total amount from stocking_sites for the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE value > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(code, salary, type, amount)\n facility_registry(salary, type, id, amount)\nTask: Retrieve value from stock_catalog with amount above the SUM(value) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE amount > (\n SELECT SUM(value) FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(value, amount, code, id)\n acquisition_log(name, code, date, value)\nTask: Find id from sales_registry where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(type, date, level, id)\n receivables_log(type, value, code, name)\nTask: Find value from acquisition_log where code appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(status, name, code, type)\n stocking_sites(level, code, salary, name)\nTask: Retrieve value from activity_log with value above the COUNT(value) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE value > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, id, salary, code)\n stocking_sites(code, name, amount, id)\nTask: Select id from acquisition_log that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(code, id, date, status)\n stocking_sites(type, code, id, amount)\nTask: Retrieve name from journal_entries whose id is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(code, amount, id, status)\n sales_registry(code, type, status, amount)\nTask: Retrieve name from receivables_log with salary above the COUNT(amount) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, status, salary, type)\n workforce_data(name, type, date, level)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(code, status, date, name)\n personnel_registry(name, level, code, type)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(id, status, date, value)\n receivables_log(date, code, level, salary)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(value, amount, code, level)\n dispatch_queue(level, name, type, code)\nTask: Find amount from attribute_groups where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, salary, id, amount)\n sales_registry(salary, value, name, id)\nTask: Find id from dispatch_queue where amount exceeds the minimum amount from sales_registry for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(date, type, value, salary)\n workforce_data(date, id, salary, level)\nTask: Select salary from stock_catalog that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(name, id, code, type)\n attribute_groups(salary, status, code, name)\nTask: Retrieve id from facility_registry whose status is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(type, level, status, amount)\n personnel_registry(type, id, level, value)\nTask: Retrieve code from journal_entries whose status is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(value, salary, code, id)\n personnel_registry(code, level, type, date)\nTask: Find id from journal_entries where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(level, code, status, date)\n activity_log(amount, value, id, level)\nTask: Find id from area_registry where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(type, code, salary, id)\n sales_registry(type, status, id, value)\nTask: Select name from workforce_data that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(code, amount, level, date)\n journal_entries(date, value, id, status)\nTask: Find salary from sales_registry where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(salary, level, id, type)\n stocking_sites(date, id, code, status)\nTask: Retrieve code from receivables_log whose level is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, amount, type, name)\n sourcing_list(level, amount, date, name)\nTask: Find code from dispatch_queue where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(level, id, name, salary)\n area_registry(level, amount, status, value)\nTask: Select id from engagement_log that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(amount, level, code, status)\n personnel_registry(type, salary, name, code)\nTask: Retrieve amount from workforce_data whose code is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(value, code, date, level)\n dispatch_queue(code, amount, id, name)\nTask: Retrieve code from attribute_groups with salary above the AVG(value) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(date, level, status, id)\n journal_entries(code, name, type, level)\nTask: Find name from cost_centers where salary exceeds the minimum salary from journal_entries for the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(id, date, salary, amount)\n receivables_log(amount, type, date, id)\nTask: Retrieve value from activity_log with salary above the AVG(salary) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(value, name, level, id)\n workforce_data(level, date, code, id)\nTask: Select value from stock_catalog where value is greater than the count of of value in workforce_data for matching status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE value > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(id, value, date, amount)\n dispatch_queue(code, salary, id, amount)\nTask: Retrieve name from portfolio_index with amount above the MAX(salary) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE amount > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(level, amount, code, id)\n area_registry(value, amount, type, level)\nTask: Select id from engagement_log where value is greater than the total of amount in area_registry for matching status.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE value > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(date, name, code, status)\n dispatch_queue(status, value, type, date)\nTask: Find salary from personnel_registry where a matching record exists in dispatch_queue with the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(level, amount, date, code)\n area_registry(name, status, salary, code)\nTask: Retrieve name from stock_catalog whose level is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(amount, value, id, name)\n facility_registry(status, value, name, amount)\nTask: Find code from journal_entries where value exceeds the count of salary from facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(type, amount, date, status)\n receivables_log(type, amount, date, id)\nTask: Find id from dispatch_queue where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(code, date, value, amount)\n personnel_registry(status, salary, type, name)\nTask: Select id from cost_centers where level exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(status, salary, id, type)\n cost_centers(code, date, level, name)\nTask: Retrieve name from activity_log whose status is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(amount, id, value, type)\n sourcing_list(id, name, date, salary)\nTask: Select salary from stock_catalog that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(id, type, value, date)\n stock_catalog(date, level, name, status)\nTask: Retrieve amount from engagement_log with value above the MIN(salary) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE value > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(name, type, date, id)\n area_registry(name, salary, amount, status)\nTask: Retrieve code from activity_log whose code is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(name, amount, id, status)\n sourcing_list(value, level, status, id)\nTask: Select code from journal_entries where status exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, value, code, name)\n sales_registry(type, salary, id, amount)\nTask: Select id from dispatch_queue where level exists in sales_registry for the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(status, name, amount, value)\n sourcing_list(code, id, date, status)\nTask: Retrieve salary from acquisition_log whose level is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS dept\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, date, level, status)\n receivables_log(code, type, value, amount)\nTask: Select id from acquisition_log that have at least one matching row in receivables_log for the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(status, value, type, level)\n cost_centers(id, value, date, name)\nTask: Select code from portfolio_index that have at least one matching row in cost_centers for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(id, name, status, salary)\n journal_entries(status, salary, id, amount)\nTask: Select name from receivables_log that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(type, salary, status, amount)\n cost_centers(id, name, amount, type)\nTask: Find name from stock_catalog where amount exceeds the average salary from cost_centers for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE amount > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(amount, level, code, name)\n receivables_log(level, date, salary, id)\nTask: Retrieve id from dispatch_queue whose level is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(date, salary, id, name)\n journal_entries(date, type, level, salary)\nTask: Find salary from acquisition_log where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(type, name, status, value)\n attribute_groups(code, name, id, value)\nTask: Retrieve code from engagement_log whose id is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS empl\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(status, name, value, type)\n personnel_registry(status, level, code, amount)\nTask: Select id from stock_catalog where value is greater than the minimum of value in personnel_registry for matching level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE value > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(type, id, date, amount)\n workforce_data(code, value, level, type)\nTask: Retrieve value from attribute_groups with amount above the MAX(amount) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(status, date, value, name)\n personnel_registry(amount, status, level, date)\nTask: Find code from engagement_log where amount exceeds the minimum salary from personnel_registry for the same status.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(level, type, amount, date)\n stock_catalog(status, type, code, level)\nTask: Find value from activity_log where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(date, name, salary, type)\n sales_queue(name, type, status, level)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(level, salary, name, value)\n activity_log(level, code, date, value)\nTask: Retrieve id from facility_registry with value above the MIN(value) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE value > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(level, date, status, value)\n stock_catalog(salary, level, status, name)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(id, status, type, value)\n acquisition_log(level, name, type, code)\nTask: Retrieve value from activity_log with salary above the AVG(salary) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(type, value, amount, code)\n sales_queue(amount, code, level, salary)\nTask: Select value from stock_catalog where level exists in sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(level, code, id, amount)\n facility_registry(amount, type, level, date)\nTask: Select salary from sales_registry that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(salary, level, type, id)\n sales_queue(salary, level, name, date)\nTask: Select name from area_registry where level exists in sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(code, id, name, date)\n activity_log(value, date, salary, code)\nTask: Select value from attribute_groups where level exists in activity_log for the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, type, id, code)\n facility_registry(amount, level, id, code)\nTask: Find amount from dispatch_queue where salary exceeds the minimum value from facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(amount, id, date, level)\n sales_registry(id, code, type, status)\nTask: Retrieve id from dispatch_queue whose code is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(type, amount, level, salary)\n acquisition_log(value, id, level, date)\nTask: Select salary from activity_log that have at least one matching row in acquisition_log for the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(code, amount, date, salary)\n engagement_log(value, date, level, status)\nTask: Retrieve name from stock_catalog whose id is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(type, code, date, status)\n receivables_log(code, salary, level, date)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(code, id, value, date)\n stocking_sites(type, code, status, name)\nTask: Select value from attribute_groups where value is greater than the maximum of amount in stocking_sites for matching id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE value > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(date, level, amount, id)\n area_registry(type, status, level, code)\nTask: Find amount from sales_queue where level appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(date, id, amount, salary)\n personnel_registry(value, amount, date, id)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(type, date, value, status)\n sourcing_list(name, status, amount, type)\nTask: Find salary from sales_queue where salary exceeds the total salary from sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(id, name, date, status)\n receivables_log(value, level, status, amount)\nTask: Retrieve value from area_registry that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, value, date, amount)\n stock_catalog(status, id, code, date)\nTask: Retrieve salary from engagement_log whose code is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(name, value, code, amount)\n cost_centers(salary, amount, name, code)\nTask: Find code from stock_catalog where level appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(value, id, date, salary)\n area_registry(salary, value, status, code)\nTask: Find salary from sales_queue where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(level, type, id, name)\n stock_catalog(date, type, amount, value)\nTask: Find name from sales_queue where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(amount, level, value, name)\n sales_registry(code, status, level, amount)\nTask: Find name from engagement_log where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(status, amount, value, date)\n sales_queue(salary, code, amount, status)\nTask: Select code from facility_registry that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(status, salary, id, type)\n sourcing_list(status, name, type, value)\nTask: Find amount from acquisition_log where id appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(salary, amount, id, level)\n activity_log(name, salary, level, id)\nTask: Select code from engagement_log that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(id, status, level, salary)\n stock_catalog(status, salary, value, code)\nTask: Select id from portfolio_index that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(salary, id, name, type)\n stock_catalog(type, status, name, amount)\nTask: Select value from engagement_log where id exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(status, type, level, id)\n receivables_log(status, salary, amount, value)\nTask: Find amount from sales_registry where a matching record exists in receivables_log with the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(date, type, amount, value)\n workforce_data(status, name, level, code)\nTask: Retrieve id from portfolio_index with value above the SUM(salary) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE value > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(value, amount, name, level)\n portfolio_index(salary, status, amount, type)\nTask: Retrieve code from area_registry that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(level, value, salary, date)\n stocking_sites(type, name, id, salary)\nTask: Select id from portfolio_index where salary is greater than the average of salary in stocking_sites for matching id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, id, date, status)\n cost_centers(name, status, date, value)\nTask: Find id from stocking_sites where amount exceeds the minimum amount from cost_centers for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(amount, level, id, value)\n sales_registry(value, id, status, date)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(type, date, level, id)\n dispatch_queue(name, type, status, id)\nTask: Select name from stock_catalog where level exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(date, code, value, level)\n sales_registry(amount, type, value, salary)\nTask: Retrieve code from activity_log that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(type, name, level, date)\n cost_centers(value, amount, name, status)\nTask: Find name from stock_catalog where salary exceeds the minimum amount from cost_centers for the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(salary, id, amount, type)\n stocking_sites(status, level, code, value)\nTask: Retrieve id from sales_registry with salary above the MAX(value) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE salary > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(amount, date, id, name)\n portfolio_index(id, code, salary, status)\nTask: Select name from cost_centers where salary is greater than the average of salary in portfolio_index for matching id.\nSQL:", "sql": "SELECT name FROM cost_centers AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(status, name, type, value)\n sourcing_list(value, id, salary, type)\nTask: Select code from stock_catalog where level exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, level, code, name)\n engagement_log(salary, date, value, name)\nTask: Select code from dispatch_queue that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(type, id, value, code)\n engagement_log(level, amount, value, salary)\nTask: Retrieve name from attribute_groups with value above the AVG(salary) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(level, code, type, salary)\n sales_registry(salary, name, date, status)\nTask: Select salary from stocking_sites where value is greater than the average of salary in sales_registry for matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE value > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(name, id, value, status)\n dispatch_queue(status, name, id, code)\nTask: Retrieve code from receivables_log whose code is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(date, value, type, level)\n facility_registry(id, salary, type, name)\nTask: Select salary from sales_queue where code exists in facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(code, type, status, value)\n journal_entries(amount, id, level, name)\nTask: Find name from area_registry where amount exceeds the count of amount from journal_entries for the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, level, id, date)\n stock_catalog(date, status, type, amount)\nTask: Select name from dispatch_queue where value is greater than the minimum of amount in stock_catalog for matching status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE value > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(name, date, level, code)\n journal_entries(type, status, id, name)\nTask: Retrieve amount from cost_centers whose type is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(status, level, value, name)\n cost_centers(value, salary, level, code)\nTask: Select id from stocking_sites where salary is greater than the minimum of salary in cost_centers for matching id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(code, date, level, name)\n engagement_log(value, level, date, status)\nTask: Retrieve name from receivables_log with amount above the SUM(amount) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(salary, value, date, code)\n workforce_data(level, value, amount, status)\nTask: Find salary from attribute_groups where id appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(type, code, level, id)\n acquisition_log(amount, salary, id, date)\nTask: Select name from stocking_sites where amount is greater than the average of amount in acquisition_log for matching level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(name, value, salary, status)\n area_registry(salary, status, code, level)\nTask: Retrieve amount from personnel_registry that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(value, name, date, level)\n facility_registry(date, status, code, value)\nTask: Find salary from area_registry where value exceeds the maximum salary from facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE value > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(id, value, amount, date)\n attribute_groups(value, status, id, level)\nTask: Select value from personnel_registry where code exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(amount, date, status, value)\n cost_centers(code, status, name, level)\nTask: Select value from sales_registry where amount is greater than the total of salary in cost_centers for matching code.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(level, id, code, value)\n stock_catalog(date, id, code, type)\nTask: Find salary from workforce_data where level appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(amount, code, status, name)\n activity_log(name, id, amount, type)\nTask: Retrieve code from workforce_data whose type is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(date, value, status, id)\n sales_queue(type, code, status, id)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(name, status, level, value)\n attribute_groups(salary, code, date, type)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(value, id, type, amount)\n stocking_sites(level, salary, id, value)\nTask: Retrieve salary from personnel_registry with value above the MAX(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(level, name, id, salary)\n sales_registry(level, status, salary, type)\nTask: Find name from stock_catalog where level appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(date, level, type, id)\n activity_log(date, code, type, level)\nTask: Retrieve name from attribute_groups that have at least one corresponding entry in activity_log sharing the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, value, id, name)\n engagement_log(value, type, date, code)\nTask: Retrieve name from dispatch_queue with salary above the MAX(salary) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE salary > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(status, amount, salary, name)\n activity_log(id, name, level, value)\nTask: Select amount from sales_queue where value is greater than the total of salary in activity_log for matching status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE value > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(salary, code, date, value)\n facility_registry(amount, code, status, type)\nTask: Retrieve name from area_registry with value above the MIN(salary) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE value > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(code, name, status, id)\n area_registry(amount, name, id, type)\nTask: Select salary from sourcing_list that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(value, status, amount, id)\n stock_catalog(name, status, level, amount)\nTask: Retrieve code from area_registry that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(amount, status, date, name)\n acquisition_log(amount, level, value, code)\nTask: Find code from workforce_data where id appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT code FROM workforce_data AS dept\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(name, type, date, level)\n personnel_registry(amount, value, salary, status)\nTask: Retrieve code from activity_log with value above the SUM(amount) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE value > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(code, id, value, type)\n dispatch_queue(level, code, type, salary)\nTask: Retrieve code from stock_catalog with amount above the SUM(amount) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(amount, date, code, name)\n sales_registry(name, level, salary, code)\nTask: Select value from area_registry where type exists in sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(id, level, code, amount)\n stock_catalog(code, name, amount, date)\nTask: Find value from receivables_log where a matching record exists in stock_catalog with the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(type, salary, status, value)\n workforce_data(name, date, code, salary)\nTask: Retrieve id from facility_registry whose status is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(level, type, salary, status)\n sourcing_list(id, amount, name, level)\nTask: Select value from stocking_sites that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(id, amount, code, status)\n cost_centers(amount, name, salary, level)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, level, value, type)\n area_registry(level, date, salary, code)\nTask: Retrieve salary from dispatch_queue whose status is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, level, amount, type)\n area_registry(status, id, code, value)\nTask: Retrieve amount from attribute_groups whose level is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(id, name, type, level)\n receivables_log(value, status, level, id)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(status, name, date, value)\n portfolio_index(type, id, date, code)\nTask: Retrieve salary from acquisition_log whose type is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(status, type, salary, date)\n workforce_data(code, status, date, amount)\nTask: Select salary from cost_centers that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, date, type, name)\n sales_registry(date, amount, status, type)\nTask: Retrieve id from stock_catalog whose type is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(name, amount, status, id)\n area_registry(status, level, value, salary)\nTask: Retrieve code from receivables_log whose level is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(level, amount, value, code)\n acquisition_log(type, code, id, value)\nTask: Select code from journal_entries where status exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(type, id, code, status)\n sales_registry(name, status, salary, date)\nTask: Find name from area_registry where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(id, date, type, status)\n acquisition_log(type, value, name, code)\nTask: Find name from dispatch_queue where value exceeds the total salary from acquisition_log for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE value > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(id, level, code, value)\n stock_catalog(code, id, value, type)\nTask: Select salary from cost_centers where type exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, date, name, status)\n cost_centers(status, type, name, salary)\nTask: Select id from portfolio_index that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(code, date, status, level)\n dispatch_queue(id, value, code, amount)\nTask: Find name from journal_entries where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(salary, type, name, value)\n journal_entries(salary, date, amount, type)\nTask: Select value from receivables_log where value is greater than the average of value in journal_entries for matching status.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE value > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(status, name, date, code)\n personnel_registry(value, salary, name, status)\nTask: Find amount from cost_centers where value exceeds the count of amount from personnel_registry for the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(code, name, status, value)\n receivables_log(level, name, date, type)\nTask: Retrieve salary from activity_log whose id is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(id, status, value, salary)\n activity_log(name, amount, type, salary)\nTask: Find code from stock_catalog where status appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(code, type, date, amount)\n dispatch_queue(level, name, salary, amount)\nTask: Retrieve id from personnel_registry with value above the MIN(amount) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE value > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, amount, level, id)\n acquisition_log(amount, code, status, level)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(date, value, status, amount)\n portfolio_index(date, amount, id, level)\nTask: Retrieve id from activity_log that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(type, level, salary, status)\n receivables_log(status, id, code, salary)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(name, status, value, code)\n acquisition_log(level, code, id, type)\nTask: Find code from area_registry where code appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(level, date, amount, salary)\n cost_centers(code, value, type, salary)\nTask: Find amount from stocking_sites where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(date, level, name, amount)\n stocking_sites(status, name, amount, level)\nTask: Retrieve value from receivables_log whose type is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(code, amount, name, date)\n sourcing_list(status, level, name, amount)\nTask: Select value from acquisition_log that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(type, date, status, salary)\n stock_catalog(type, id, date, status)\nTask: Select name from dispatch_queue that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(level, type, status, amount)\n engagement_log(type, salary, status, name)\nTask: Retrieve id from acquisition_log whose code is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(level, name, amount, value)\n sales_registry(type, code, name, amount)\nTask: Find code from stocking_sites where salary exceeds the average value from sales_registry for the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE salary > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(code, amount, status, salary)\n area_registry(status, amount, value, code)\nTask: Find amount from portfolio_index where type appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(name, code, type, date)\n personnel_registry(salary, name, level, value)\nTask: Find amount from journal_entries where level appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(level, name, amount, type)\n sourcing_list(id, name, date, status)\nTask: Select name from sales_registry that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(status, code, amount, level)\n journal_entries(date, value, type, name)\nTask: Select amount from portfolio_index that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, level, amount, id)\n activity_log(type, amount, id, salary)\nTask: Select id from sourcing_list where level exists in activity_log for the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(level, salary, id, name)\n activity_log(level, id, salary, date)\nTask: Retrieve id from sales_registry whose code is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(status, code, salary, date)\n attribute_groups(date, status, value, id)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, type, salary, code)\n cost_centers(code, name, id, salary)\nTask: Find code from sourcing_list where salary exceeds the minimum value from cost_centers for the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE salary > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(level, type, code, value)\n engagement_log(name, amount, id, code)\nTask: Retrieve value from area_registry whose id is found in engagement_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(type, level, name, salary)\n stock_catalog(type, id, name, salary)\nTask: Select code from dispatch_queue where code exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(status, id, code, amount)\n engagement_log(name, id, date, value)\nTask: Retrieve salary from facility_registry with value above the MIN(value) of engagement_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE value > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(name, date, type, id)\n stocking_sites(amount, type, name, id)\nTask: Find name from activity_log where level appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(level, status, salary, id)\n personnel_registry(code, level, type, amount)\nTask: Retrieve name from journal_entries whose code is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(id, level, name, status)\n cost_centers(status, type, id, code)\nTask: Retrieve id from area_registry that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(amount, salary, name, type)\n stocking_sites(value, status, id, code)\nTask: Find value from receivables_log where salary exceeds the average amount from stocking_sites for the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, code, id, name)\n journal_entries(amount, date, id, value)\nTask: Retrieve code from portfolio_index with value above the COUNT(value) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(code, date, status, id)\n area_registry(amount, status, date, code)\nTask: Find value from journal_entries where id appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(value, level, id, type)\n sales_queue(salary, amount, level, date)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(salary, code, level, name)\n journal_entries(date, name, status, id)\nTask: Find amount from engagement_log where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(name, value, amount, type)\n area_registry(type, salary, level, id)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in area_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(amount, type, level, value)\n personnel_registry(value, id, salary, date)\nTask: Select id from portfolio_index where value is greater than the total of salary in personnel_registry for matching code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE value > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(amount, salary, status, code)\n sourcing_list(code, salary, id, name)\nTask: Select amount from dispatch_queue where id exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, value, name, date)\n attribute_groups(value, name, type, id)\nTask: Find salary from dispatch_queue where status appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, level, name, status)\n dispatch_queue(name, salary, id, level)\nTask: Find id from portfolio_index where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(level, type, code, amount)\n stock_catalog(salary, amount, status, id)\nTask: Find id from acquisition_log where amount exceeds the total value from stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE amount > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(value, amount, salary, type)\n sales_queue(amount, value, type, status)\nTask: Select name from acquisition_log where level exists in sales_queue for the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS inv\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(name, value, level, status)\n area_registry(salary, code, status, amount)\nTask: Retrieve salary from facility_registry whose level is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(code, amount, date, name)\n acquisition_log(level, id, name, date)\nTask: Select name from area_registry where type exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(code, date, name, salary)\n dispatch_queue(name, salary, status, date)\nTask: Select name from sales_registry where type exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(salary, name, amount, id)\n journal_entries(value, date, type, status)\nTask: Retrieve code from portfolio_index with amount above the MIN(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "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}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(name, salary, amount, id)\n facility_registry(date, id, salary, code)\nTask: Retrieve name from journal_entries with value above the SUM(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE value > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(code, level, amount, value)\n portfolio_index(name, level, code, value)\nTask: Select code from receivables_log where status exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(name, amount, salary, date)\n acquisition_log(date, value, name, type)\nTask: Select value from personnel_registry where value is greater than the maximum of amount in acquisition_log for matching code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE value > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(level, name, type, salary)\n sales_registry(code, salary, date, name)\nTask: Find salary from sales_queue where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(code, amount, level, date)\n sourcing_list(level, date, amount, code)\nTask: Select salary from area_registry where code exists in sourcing_list for the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(name, amount, type, id)\n receivables_log(code, value, id, date)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(level, id, code, date)\n receivables_log(date, status, value, amount)\nTask: Find salary from activity_log where value exceeds the count of amount from receivables_log for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(amount, name, id, value)\n journal_entries(level, type, code, date)\nTask: Retrieve code from attribute_groups with salary above the SUM(value) of journal_entries rows sharing the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE salary > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(date, code, value, type)\n journal_entries(value, amount, code, type)\nTask: Find amount from acquisition_log where type appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(value, level, id, name)\n sales_registry(level, salary, type, amount)\nTask: Find id from acquisition_log where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(date, amount, salary, code)\n receivables_log(code, level, value, name)\nTask: Select value from engagement_log where value is greater than the count of of salary in receivables_log for matching type.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(date, type, level, value)\n facility_registry(id, type, date, salary)\nTask: Select salary from receivables_log that have at least one matching row in facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, name, id, level)\n receivables_log(status, value, level, amount)\nTask: Retrieve code from personnel_registry whose type is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, level, id, status)\n portfolio_index(id, level, type, status)\nTask: Find code from dispatch_queue where code appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(salary, date, value, id)\n engagement_log(level, id, amount, value)\nTask: Retrieve value from activity_log that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(id, type, status, level)\n dispatch_queue(id, name, salary, date)\nTask: Select code from workforce_data where id exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(level, type, name, amount)\n journal_entries(name, date, code, amount)\nTask: Find code from dispatch_queue where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(salary, status, level, type)\n attribute_groups(id, salary, value, amount)\nTask: Find salary from workforce_data where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(date, value, amount, level)\n activity_log(amount, id, status, salary)\nTask: Select code from area_registry where level exists in activity_log for the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(name, value, id, amount)\n attribute_groups(level, name, date, status)\nTask: Retrieve name from journal_entries whose code is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, amount, code, type)\n acquisition_log(salary, amount, type, status)\nTask: Find id from dispatch_queue where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(status, id, date, code)\n facility_registry(name, salary, status, id)\nTask: Select code from stocking_sites where status exists in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(type, status, date, level)\n portfolio_index(amount, value, salary, date)\nTask: Find id from engagement_log where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(date, type, name, level)\n portfolio_index(name, amount, level, value)\nTask: Retrieve name from acquisition_log with salary above the MAX(salary) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(date, id, salary, amount)\n area_registry(code, salary, amount, level)\nTask: Retrieve amount from receivables_log with salary above the MAX(value) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE salary > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(date, amount, type, code)\n engagement_log(code, level, date, salary)\nTask: Select id from stock_catalog that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(level, status, date, id)\n sales_registry(status, date, id, amount)\nTask: Select value from journal_entries that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(date, type, name, id)\n workforce_data(type, amount, name, id)\nTask: Find amount from attribute_groups where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(name, date, value, level)\n workforce_data(id, name, amount, code)\nTask: Retrieve name from cost_centers with amount above the SUM(salary) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(salary, type, amount, code)\n facility_registry(id, level, status, type)\nTask: Find value from sales_queue where amount exceeds the maximum value from facility_registry for the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS empl\nWHERE amount > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(amount, code, level, type)\n personnel_registry(code, name, date, value)\nTask: Select amount from acquisition_log that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, value, code, type)\n workforce_data(id, name, status, level)\nTask: Select amount from portfolio_index where amount is greater than the average of value in workforce_data for matching code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE amount > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(code, name, status, date)\n personnel_registry(status, date, type, code)\nTask: Select code from sales_registry that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(salary, level, code, type)\n engagement_log(type, amount, salary, code)\nTask: Retrieve code from stocking_sites whose type is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, id, date, salary)\n workforce_data(name, value, id, level)\nTask: Retrieve salary from stock_catalog with salary above the AVG(amount) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(type, amount, level, value)\n cost_centers(date, type, salary, amount)\nTask: Retrieve value from sales_registry with salary above the SUM(salary) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(code, value, type, id)\n sourcing_list(status, id, date, amount)\nTask: Find salary from stocking_sites where id appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(salary, value, date, level)\n engagement_log(status, salary, name, amount)\nTask: Find salary from cost_centers where value exceeds the count of salary from engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, value, id, type)\n activity_log(code, amount, value, date)\nTask: Retrieve salary from portfolio_index whose status is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(type, amount, name, status)\n journal_entries(amount, type, level, value)\nTask: Find name from stock_catalog where amount exceeds the total salary from journal_entries for the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(level, type, id, status)\n dispatch_queue(code, status, type, id)\nTask: Retrieve code from area_registry with amount above the COUNT(amount) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(level, code, id, date)\n acquisition_log(code, id, value, name)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(name, status, code, level)\n sourcing_list(status, type, level, name)\nTask: Find code from workforce_data where salary exceeds the maximum value from sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE salary > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(value, salary, id, type)\n stock_catalog(level, type, status, amount)\nTask: Select salary from activity_log where level exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(type, date, amount, name)\n cost_centers(name, code, date, level)\nTask: Retrieve value from sales_queue whose id is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(id, value, type, amount)\n activity_log(status, code, level, date)\nTask: Retrieve name from journal_entries whose level is found in activity_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(level, code, type, id)\n portfolio_index(code, type, status, amount)\nTask: Find id from attribute_groups where level appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS prod\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, id, date, name)\n activity_log(name, level, date, type)\nTask: Find code from attribute_groups where value exceeds the minimum value from activity_log for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE value > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(date, amount, level, name)\n sales_queue(amount, value, type, salary)\nTask: Select id from attribute_groups where amount is greater than the maximum of value in sales_queue for matching id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE amount > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(name, level, date, code)\n facility_registry(id, salary, code, name)\nTask: Select salary from cost_centers where salary is greater than the total of value in facility_registry for matching id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE salary > (\n SELECT SUM(value) FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(id, level, code, type)\n acquisition_log(date, salary, status, value)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(level, type, date, name)\n personnel_registry(value, code, level, id)\nTask: Select name from receivables_log where id exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(type, salary, level, code)\n portfolio_index(amount, name, date, status)\nTask: Find name from sales_queue where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(type, name, value, date)\n dispatch_queue(value, salary, amount, code)\nTask: Retrieve value from engagement_log with value above the SUM(value) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE value > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(salary, status, name, value)\n facility_registry(name, id, level, amount)\nTask: Find amount from sales_registry where level appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(status, level, type, id)\n activity_log(date, name, code, status)\nTask: Find amount from facility_registry where status appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(status, code, salary, date)\n acquisition_log(value, id, status, date)\nTask: Select value from sales_queue that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(level, date, amount, code)\n journal_entries(code, amount, name, id)\nTask: Select name from receivables_log that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(value, name, status, code)\n attribute_groups(value, name, id, status)\nTask: Select code from sourcing_list where value is greater than the maximum of value in attribute_groups for matching type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE value > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(value, code, level, status)\n attribute_groups(date, type, code, salary)\nTask: Select salary from area_registry where type exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(id, code, type, date)\n personnel_registry(id, date, amount, status)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(value, type, id, salary)\n cost_centers(level, type, amount, id)\nTask: Retrieve code from sourcing_list whose code is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(date, type, status, salary)\n sourcing_list(amount, name, code, id)\nTask: Find value from stock_catalog where amount exceeds the count of salary from sourcing_list for the same type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(status, date, value, salary)\n receivables_log(value, type, salary, date)\nTask: Select name from sales_queue that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(code, value, salary, type)\n activity_log(salary, value, name, status)\nTask: Select name from stock_catalog where salary is greater than the minimum of amount in activity_log for matching type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, name, code, type)\n journal_entries(id, name, value, status)\nTask: Select code from portfolio_index where salary is greater than the maximum of salary in journal_entries for matching status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(level, id, status, value)\n portfolio_index(level, id, status, value)\nTask: Select code from sales_registry where salary is greater than the total of salary in portfolio_index for matching level.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(name, code, salary, id)\n stocking_sites(code, amount, status, salary)\nTask: Select value from receivables_log that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(value, code, type, amount)\n sales_registry(salary, name, code, level)\nTask: Select id from sales_queue that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, amount, id, date)\n dispatch_queue(name, id, status, type)\nTask: Select salary from personnel_registry that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(date, salary, id, level)\n journal_entries(date, type, status, value)\nTask: Retrieve name from workforce_data with salary above the MIN(salary) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(type, level, id, date)\n workforce_data(level, code, amount, salary)\nTask: Find name from dispatch_queue where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(level, date, type, code)\n receivables_log(level, amount, id, name)\nTask: Retrieve salary from activity_log with salary above the MIN(value) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE salary > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "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}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(status, value, name, code)\n acquisition_log(level, id, status, type)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(name, salary, amount, status)\n facility_registry(type, salary, value, level)\nTask: Select value from receivables_log where value is greater than the total of salary in facility_registry for matching id.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE value > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(salary, type, code, amount)\n sales_registry(date, status, type, level)\nTask: Select id from facility_registry that have at least one matching row in sales_registry for the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(status, level, code, amount)\n acquisition_log(level, id, code, type)\nTask: Retrieve amount from dispatch_queue with amount above the SUM(salary) of acquisition_log rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(id, level, date, amount)\n stocking_sites(type, code, date, value)\nTask: Find value from engagement_log where status appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(status, salary, amount, code)\n journal_entries(salary, id, level, date)\nTask: Select code from engagement_log where amount is greater than the total of value in journal_entries for matching level.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(amount, id, code, name)\n stock_catalog(amount, salary, value, status)\nTask: Find value from sourcing_list where value exceeds the maximum value from stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE value > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(value, name, salary, id)\n sourcing_list(date, value, id, code)\nTask: Retrieve amount from sales_registry whose status is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(amount, level, type, date)\n engagement_log(code, value, name, amount)\nTask: Find id from workforce_data where value exceeds the average salary from engagement_log for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS inv\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(code, name, amount, type)\n personnel_registry(status, level, code, name)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(status, date, amount, name)\n activity_log(salary, type, name, id)\nTask: Retrieve amount from portfolio_index that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(date, name, level, amount)\n engagement_log(level, id, salary, date)\nTask: Find code from stock_catalog where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, code, status, type)\n journal_entries(amount, value, status, salary)\nTask: Retrieve code from attribute_groups with amount above the MIN(amount) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(code, name, type, status)\n acquisition_log(type, salary, level, status)\nTask: Find id from engagement_log where level appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(date, name, status, code)\n cost_centers(id, code, amount, name)\nTask: Find id from stock_catalog where status appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(code, value, amount, name)\n sales_queue(status, salary, type, date)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(amount, level, id, name)\n acquisition_log(name, date, id, status)\nTask: Select code from cost_centers where amount is greater than the total of value in acquisition_log for matching level.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE amount > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(amount, salary, status, code)\n receivables_log(id, value, status, amount)\nTask: Select name from dispatch_queue where code exists in receivables_log for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(status, date, type, code)\n acquisition_log(status, date, id, level)\nTask: Find id from journal_entries where amount exceeds the minimum salary from acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(status, value, level, date)\n journal_entries(id, value, name, amount)\nTask: Retrieve amount from dispatch_queue whose status is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(type, amount, code, level)\n workforce_data(amount, date, type, level)\nTask: Retrieve salary from activity_log with value above the MAX(amount) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM activity_log AS usr\nWHERE value > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(type, value, level, status)\n dispatch_queue(date, type, name, amount)\nTask: Select code from sales_registry where id exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(date, salary, type, value)\n stock_catalog(value, level, id, amount)\nTask: Find name from acquisition_log where status appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(status, level, salary, amount)\n receivables_log(code, salary, name, status)\nTask: Retrieve id from sales_queue with value above the MIN(salary) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE value > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(value, status, salary, type)\n engagement_log(date, type, name, value)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(name, status, amount, level)\n portfolio_index(name, type, amount, code)\nTask: Select salary from dispatch_queue where salary is greater than the minimum of value in portfolio_index for matching code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(date, value, salary, status)\n portfolio_index(amount, id, salary, code)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(type, id, salary, code)\n personnel_registry(id, amount, level, date)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in personnel_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(name, salary, level, date)\n engagement_log(amount, type, level, status)\nTask: Select name from stock_catalog that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(salary, name, status, code)\n sourcing_list(amount, status, level, code)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(level, salary, code, type)\n acquisition_log(name, date, amount, level)\nTask: Select amount from workforce_data where amount is greater than the count of of salary in acquisition_log for matching code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(value, code, date, salary)\n workforce_data(status, amount, code, level)\nTask: Find amount from sales_queue where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, status, code, value)\n dispatch_queue(salary, status, code, amount)\nTask: Find amount from attribute_groups where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(name, status, level, value)\n area_registry(value, name, amount, id)\nTask: Find salary from sales_queue where type appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(type, status, amount, name)\n sourcing_list(level, type, amount, name)\nTask: Find code from area_registry where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(value, date, code, level)\n engagement_log(code, date, status, name)\nTask: Find value from stock_catalog where type appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(name, value, id, code)\n engagement_log(name, level, salary, type)\nTask: Retrieve id from dispatch_queue with value above the COUNT(salary) of engagement_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(level, name, salary, date)\n sourcing_list(amount, code, date, name)\nTask: Find value from area_registry where value exceeds the count of salary from sourcing_list for the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(amount, id, salary, date)\n attribute_groups(amount, level, type, value)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(code, salary, amount, date)\n cost_centers(level, type, status, salary)\nTask: Find salary from sales_registry where value exceeds the minimum value from cost_centers for the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE value > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(date, level, code, status)\n dispatch_queue(name, type, code, value)\nTask: Select value from portfolio_index where value is greater than the count of of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(code, salary, type, id)\n engagement_log(type, id, name, amount)\nTask: Retrieve salary from stock_catalog with value above the MAX(salary) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS emp\nWHERE value > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(status, type, code, level)\n engagement_log(status, level, date, type)\nTask: Select salary from dispatch_queue where code exists in engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(name, type, salary, level)\n personnel_registry(salary, amount, level, name)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(name, status, amount, code)\n personnel_registry(date, level, id, name)\nTask: Retrieve code from attribute_groups with value above the SUM(salary) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE value > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(status, value, salary, level)\n acquisition_log(value, amount, salary, type)\nTask: Retrieve id from sales_registry whose type is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS mgr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(code, name, level, salary)\n journal_entries(code, type, date, id)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(date, value, status, name)\n acquisition_log(level, date, code, value)\nTask: Find amount from personnel_registry where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(value, id, amount, date)\n facility_registry(code, date, id, level)\nTask: Select code from stock_catalog where type exists in facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(name, status, code, type)\n attribute_groups(amount, date, name, code)\nTask: Find salary from cost_centers where amount exceeds the count of amount from attribute_groups for the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, salary, status, date)\n engagement_log(id, salary, type, code)\nTask: Find name from dispatch_queue where salary exceeds the count of value from engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(code, status, id, salary)\n journal_entries(id, value, code, level)\nTask: Select value from facility_registry where status exists in journal_entries for the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(name, value, status, level)\n attribute_groups(date, salary, code, name)\nTask: Retrieve code from engagement_log whose id is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS empl\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(code, id, date, amount)\n portfolio_index(type, id, status, amount)\nTask: Find value from personnel_registry where code appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(value, status, date, type)\n stocking_sites(amount, salary, status, level)\nTask: Find amount from sales_queue where value exceeds the average value from stocking_sites for the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE value > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(id, date, name, type)\n stocking_sites(id, level, date, code)\nTask: Select amount from sales_queue that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(type, date, amount, name)\n area_registry(salary, value, status, date)\nTask: Find id from receivables_log where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(code, type, id, value)\n stock_catalog(status, date, salary, name)\nTask: Select code from engagement_log where salary is greater than the total of value in stock_catalog for matching status.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE salary > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(type, amount, code, date)\n area_registry(name, type, status, code)\nTask: Select amount from dispatch_queue where salary is greater than the minimum of salary in area_registry for matching code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(date, code, type, value)\n journal_entries(status, salary, type, value)\nTask: Find code from workforce_data where salary exceeds the count of value from journal_entries for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, code, level, name)\n engagement_log(code, amount, salary, date)\nTask: Select name from portfolio_index that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(id, salary, date, status)\n activity_log(code, level, value, id)\nTask: Find salary from portfolio_index where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(level, date, salary, code)\n workforce_data(date, level, value, amount)\nTask: Find id from engagement_log where code appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(salary, date, status, code)\n dispatch_queue(value, date, name, salary)\nTask: Retrieve name from portfolio_index that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(id, level, type, code)\n area_registry(value, code, name, level)\nTask: Select salary from sales_queue that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(value, level, salary, status)\n portfolio_index(type, salary, value, name)\nTask: Retrieve name from stocking_sites whose type is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(date, type, value, name)\n workforce_data(value, id, level, name)\nTask: Select code from journal_entries where amount is greater than the total of salary in workforce_data for matching status.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, code, id, salary)\n engagement_log(amount, type, value, salary)\nTask: Select value from dispatch_queue where type exists in engagement_log for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(type, code, name, id)\n sales_registry(type, name, level, amount)\nTask: Find name from personnel_registry where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(id, type, code, amount)\n facility_registry(name, level, salary, code)\nTask: Select code from workforce_data that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(value, salary, code, name)\n sales_registry(level, name, code, value)\nTask: Retrieve salary from cost_centers whose code is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(type, level, value, code)\n receivables_log(date, id, type, amount)\nTask: Select amount from facility_registry where code exists in receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(type, salary, id, status)\n sales_registry(type, amount, value, code)\nTask: Find id from portfolio_index where salary exceeds the total salary from sales_registry for the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE salary > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(code, level, type, id)\n area_registry(id, level, type, date)\nTask: Find code from stocking_sites where amount exceeds the total amount from area_registry for the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(level, status, code, type)\n personnel_registry(name, date, id, salary)\nTask: Find value from attribute_groups where code appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(level, amount, salary, value)\n cost_centers(status, date, name, level)\nTask: Retrieve name from activity_log that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(amount, date, level, name)\n journal_entries(date, type, salary, status)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(date, value, code, status)\n sales_registry(amount, salary, value, status)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(date, amount, type, code)\n stocking_sites(value, date, name, type)\nTask: Find amount from sales_registry where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(id, level, name, date)\n cost_centers(status, salary, value, date)\nTask: Select code from journal_entries where type exists in cost_centers for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, code, date, status)\n stocking_sites(name, level, amount, date)\nTask: Retrieve code from dispatch_queue whose type is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(name, value, level, status)\n stock_catalog(type, status, date, code)\nTask: Retrieve salary from sales_queue with amount above the MIN(value) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE amount > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(level, status, type, amount)\n workforce_data(code, value, type, date)\nTask: Select amount from sourcing_list that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(salary, status, name, id)\n sales_registry(type, code, salary, date)\nTask: Find salary from stock_catalog where id appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(salary, name, value, type)\n acquisition_log(id, salary, value, type)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(salary, name, amount, level)\n workforce_data(id, date, amount, status)\nTask: Select value from activity_log where salary is greater than the maximum of value in workforce_data for matching level.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE salary > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(salary, amount, type, code)\n personnel_registry(status, id, value, date)\nTask: Select code from activity_log where salary is greater than the total of salary in personnel_registry for matching id.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(id, date, level, code)\n journal_entries(id, salary, date, level)\nTask: Find name from engagement_log where id appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(id, salary, code, amount)\n attribute_groups(type, date, salary, amount)\nTask: Select code from journal_entries that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(type, code, amount, id)\n facility_registry(level, status, amount, id)\nTask: Retrieve name from stocking_sites whose level is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS usr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(id, date, salary, amount)\n area_registry(status, level, code, id)\nTask: Retrieve code from facility_registry that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(name, level, salary, date)\n workforce_data(type, name, level, id)\nTask: Select value from facility_registry where type exists in workforce_data for the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS ord\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(name, value, status, amount)\n sales_queue(id, salary, status, name)\nTask: Find id from cost_centers where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, date, salary, id)\n sales_registry(status, type, level, salary)\nTask: Find salary from sourcing_list where type appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(id, date, value, type)\n facility_registry(date, salary, code, status)\nTask: Retrieve name from journal_entries whose type is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(type, id, date, status)\n dispatch_queue(name, status, date, level)\nTask: Select code from sales_queue where level exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(date, status, name, salary)\n cost_centers(date, level, type, value)\nTask: Find code from activity_log where amount exceeds the minimum amount from cost_centers for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(status, id, date, level)\n sales_queue(type, amount, name, status)\nTask: Find name from cost_centers where salary exceeds the count of value from sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(value, id, status, level)\n receivables_log(status, value, id, amount)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(date, name, level, status)\n dispatch_queue(code, id, date, salary)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(value, salary, level, amount)\n workforce_data(code, salary, type, id)\nTask: Find amount from sourcing_list where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(salary, date, id, status)\n area_registry(date, level, value, amount)\nTask: Find amount from attribute_groups where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(name, date, code, status)\n sales_registry(date, type, code, value)\nTask: Select code from facility_registry where value is greater than the minimum of value in sales_registry for matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE value > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(name, date, level, salary)\n acquisition_log(level, type, amount, salary)\nTask: Find salary from receivables_log where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(type, status, name, salary)\n portfolio_index(amount, code, type, level)\nTask: Find value from stocking_sites where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(amount, status, date, name)\n sales_registry(code, level, status, id)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(name, code, level, id)\n dispatch_queue(code, amount, status, type)\nTask: Select id from journal_entries that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, name, date, level)\n stock_catalog(level, date, name, code)\nTask: Retrieve id from dispatch_queue with value above the MAX(amount) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(level, status, name, id)\n stocking_sites(level, name, type, value)\nTask: Find salary from sales_queue where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(type, level, id, value)\n journal_entries(id, name, status, amount)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(amount, name, level, code)\n attribute_groups(date, id, name, level)\nTask: Retrieve id from area_registry whose id is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, id, date, status)\n journal_entries(date, name, value, salary)\nTask: Retrieve value from cost_centers that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(value, name, level, type)\n cost_centers(amount, salary, level, date)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(level, amount, date, type)\n sourcing_list(status, name, value, level)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(value, status, code, date)\n acquisition_log(amount, id, name, code)\nTask: Find code from stock_catalog where salary exceeds the maximum amount from acquisition_log for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, level, name, status)\n activity_log(code, type, status, date)\nTask: Select id from stock_catalog that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(amount, status, code, level)\n facility_registry(status, date, value, type)\nTask: Retrieve code from sales_registry with amount above the AVG(amount) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(date, level, value, id)\n attribute_groups(amount, code, id, type)\nTask: Select amount from sourcing_list that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(level, id, salary, code)\n sales_queue(date, value, code, status)\nTask: Find salary from stock_catalog where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, level, name, value)\n sales_registry(id, value, name, salary)\nTask: Select name from attribute_groups that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(status, code, type, salary)\n stock_catalog(id, code, salary, level)\nTask: Retrieve id from area_registry whose status is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(id, amount, code, value)\n facility_registry(date, type, amount, code)\nTask: Select name from acquisition_log where id exists in facility_registry for the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(id, amount, salary, date)\n sales_registry(type, id, status, name)\nTask: Retrieve amount from stock_catalog with amount above the MIN(value) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(name, amount, level, salary)\n stocking_sites(amount, type, status, value)\nTask: Select code from portfolio_index that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(value, amount, name, salary)\n engagement_log(date, status, id, type)\nTask: Select amount from acquisition_log where status exists in engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(date, id, type, code)\n facility_registry(status, date, amount, level)\nTask: Select id from receivables_log where value is greater than the count of of salary in facility_registry for matching level.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(salary, type, code, level)\n receivables_log(value, id, name, amount)\nTask: Select name from attribute_groups where type exists in receivables_log for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(code, amount, salary, date)\n sales_queue(level, salary, status, value)\nTask: Select id from workforce_data where salary is greater than the minimum of amount in sales_queue for matching level.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(level, salary, status, type)\n workforce_data(name, salary, type, level)\nTask: Select id from sourcing_list that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(code, status, amount, salary)\n workforce_data(status, id, date, level)\nTask: Select salary from activity_log where amount is greater than the average of salary in workforce_data for matching level.\nSQL:", "sql": "SELECT salary FROM activity_log AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, type, name, code)\n personnel_registry(value, id, level, name)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(amount, status, code, date)\n sourcing_list(code, name, salary, level)\nTask: Retrieve value from attribute_groups whose code is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(level, code, amount, salary)\n sourcing_list(id, code, amount, value)\nTask: Select amount from engagement_log where amount is greater than the total of value in sourcing_list for matching level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE amount > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(name, level, type, id)\n area_registry(id, level, status, date)\nTask: Find code from attribute_groups where id appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(amount, type, code, date)\n facility_registry(type, status, code, date)\nTask: Select code from area_registry that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(id, date, type, level)\n area_registry(level, date, name, id)\nTask: Retrieve salary from portfolio_index whose code is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(value, date, level, status)\n sales_registry(salary, type, amount, code)\nTask: Find code from activity_log where status appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(salary, code, value, name)\n stocking_sites(value, date, id, amount)\nTask: Retrieve id from sales_queue with value above the AVG(value) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE value > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(id, type, amount, level)\n stock_catalog(level, status, type, id)\nTask: Find id from facility_registry where amount exceeds the average amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(amount, salary, code, date)\n area_registry(type, status, name, date)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(name, type, level, id)\n engagement_log(amount, name, value, status)\nTask: Find code from receivables_log where amount exceeds the count of salary from engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, type, id, date)\n journal_entries(status, value, level, type)\nTask: Find name from activity_log where code appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(date, name, code, amount)\n dispatch_queue(type, date, id, code)\nTask: Retrieve id from sales_queue with amount above the COUNT(value) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(name, date, id, code)\n engagement_log(date, level, name, code)\nTask: Find code from dispatch_queue where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(date, value, type, salary)\n stock_catalog(value, id, date, level)\nTask: Select salary from activity_log where status exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(status, type, value, code)\n portfolio_index(code, level, type, id)\nTask: Find salary from workforce_data where id appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(name, level, date, amount)\n sourcing_list(value, id, code, status)\nTask: Find amount from activity_log where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, status, value, name)\n facility_registry(code, level, type, value)\nTask: Select name from acquisition_log where code exists in facility_registry for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(value, level, status, salary)\n journal_entries(amount, id, status, type)\nTask: Select salary from portfolio_index that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(type, date, code, amount)\n receivables_log(code, date, status, type)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(name, type, id, status)\n dispatch_queue(salary, date, type, id)\nTask: Select value from sales_queue where id exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(level, salary, status, name)\n facility_registry(name, id, level, salary)\nTask: Find value from area_registry where status appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(id, code, amount, value)\n dispatch_queue(status, code, date, amount)\nTask: Select value from receivables_log that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(date, status, id, salary)\n facility_registry(name, id, level, date)\nTask: Find id from sales_registry where level appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(level, amount, salary, id)\n portfolio_index(status, date, name, id)\nTask: Select value from activity_log that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(salary, amount, type, value)\n engagement_log(id, type, value, name)\nTask: Retrieve name from sales_queue with amount above the SUM(amount) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE amount > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(date, name, amount, level)\n sales_registry(id, level, name, code)\nTask: Select value from sourcing_list that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(value, amount, type, salary)\n engagement_log(amount, level, date, value)\nTask: Retrieve salary from area_registry whose level is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS ord\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(date, salary, name, level)\n journal_entries(code, amount, name, salary)\nTask: Select amount from activity_log where amount is greater than the minimum of salary in journal_entries for matching status.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(amount, id, code, salary)\n sourcing_list(amount, code, date, name)\nTask: Select name from dispatch_queue where id exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(level, code, id, type)\n portfolio_index(amount, salary, value, status)\nTask: Find value from journal_entries where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(salary, type, date, level)\n activity_log(code, salary, amount, date)\nTask: Find salary from engagement_log where status appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(date, name, code, type)\n journal_entries(name, date, amount, id)\nTask: Retrieve id from sourcing_list whose level is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(id, level, value, name)\n dispatch_queue(date, salary, level, id)\nTask: Select amount from journal_entries where salary is greater than the total of amount in dispatch_queue for matching level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(name, status, amount, salary)\n cost_centers(name, date, code, id)\nTask: Find code from sales_queue where code appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(date, value, salary, name)\n stocking_sites(id, salary, value, amount)\nTask: Find amount from stock_catalog where status appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(code, value, id, salary)\n stock_catalog(status, id, salary, value)\nTask: Find name from sales_registry where value exceeds the total amount from stock_catalog for the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(type, value, salary, name)\n activity_log(level, status, date, name)\nTask: Retrieve salary from sales_queue whose level is found in activity_log rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(value, level, code, name)\n stocking_sites(value, date, type, id)\nTask: Retrieve code from cost_centers that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(name, type, id, level)\n attribute_groups(level, salary, date, value)\nTask: Select amount from sales_registry that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(id, code, name, amount)\n sourcing_list(salary, amount, level, value)\nTask: Retrieve id from sales_queue whose code is found in sourcing_list rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(status, code, name, level)\n acquisition_log(salary, amount, type, date)\nTask: Retrieve salary from journal_entries whose level is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(status, amount, level, name)\n cost_centers(code, name, level, value)\nTask: Find amount from area_registry where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, amount, status, date)\n sourcing_list(value, date, status, code)\nTask: Retrieve amount from stocking_sites that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(status, code, type, name)\n stocking_sites(amount, name, date, type)\nTask: Retrieve code from activity_log with value above the AVG(value) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE value > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(salary, name, code, status)\n sourcing_list(status, name, salary, date)\nTask: Select amount from engagement_log that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(value, amount, code, status)\n engagement_log(amount, type, salary, name)\nTask: Find amount from stocking_sites where amount exceeds the total value from engagement_log for the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE amount > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(id, amount, code, salary)\n area_registry(amount, name, salary, value)\nTask: Find name from sales_queue where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(type, name, amount, value)\n workforce_data(code, id, status, salary)\nTask: Find amount from area_registry where amount exceeds the maximum value from workforce_data for the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(salary, status, level, code)\n engagement_log(type, id, status, salary)\nTask: Find salary from activity_log where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(amount, date, level, name)\n attribute_groups(id, value, level, type)\nTask: Find id from sales_registry where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(date, code, id, status)\n receivables_log(code, level, value, name)\nTask: Find id from cost_centers where salary exceeds the average value from receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(value, date, type, id)\n attribute_groups(date, level, amount, value)\nTask: Select code from engagement_log where amount is greater than the maximum of value in attribute_groups for matching id.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE amount > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(status, name, type, code)\n stock_catalog(value, date, level, salary)\nTask: Select code from area_registry where amount is greater than the total of value in stock_catalog for matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE amount > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(name, value, level, status)\n stock_catalog(level, salary, code, date)\nTask: Select id from stocking_sites where type exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(value, level, date, amount)\n personnel_registry(level, salary, amount, id)\nTask: Find salary from portfolio_index where value exceeds the total amount from personnel_registry for the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE value > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(salary, level, value, name)\n facility_registry(status, salary, id, value)\nTask: Retrieve name from personnel_registry with amount above the COUNT(amount) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(id, date, code, name)\n dispatch_queue(salary, code, id, name)\nTask: Find value from stocking_sites where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(id, date, salary, value)\n stocking_sites(type, level, name, amount)\nTask: Find name from stock_catalog where id appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(id, code, amount, salary)\n journal_entries(code, status, level, value)\nTask: Find code from attribute_groups where code appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(name, date, type, code)\n journal_entries(value, date, status, name)\nTask: Retrieve code from sourcing_list with value above the MAX(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE value > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(value, salary, level, name)\n area_registry(amount, name, code, date)\nTask: Find amount from stock_catalog where status appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(value, amount, code, level)\n sourcing_list(code, type, amount, date)\nTask: Select code from stock_catalog that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(id, salary, type, status)\n sales_registry(status, type, salary, level)\nTask: Retrieve id from engagement_log with amount above the MAX(amount) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(id, salary, type, code)\n portfolio_index(amount, status, type, salary)\nTask: Retrieve salary from dispatch_queue with value above the MAX(salary) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE value > (\n SELECT MAX(salary) FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(value, level, code, amount)\n cost_centers(name, date, status, value)\nTask: Find code from activity_log where type appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(status, date, id, level)\n sourcing_list(salary, type, status, id)\nTask: Find id from cost_centers where salary exceeds the total amount from sourcing_list for the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(type, id, status, value)\n cost_centers(id, type, salary, level)\nTask: Retrieve salary from attribute_groups with salary above the SUM(salary) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(name, id, salary, level)\n acquisition_log(id, code, status, value)\nTask: Select id from sales_queue where code exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(level, salary, id, code)\n personnel_registry(id, value, salary, name)\nTask: Select code from journal_entries where value is greater than the count of of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE value > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(value, code, date, id)\n facility_registry(type, id, date, status)\nTask: Find code from stock_catalog where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(level, date, salary, value)\n sales_registry(type, status, value, level)\nTask: Select salary from sales_queue where id exists in sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(date, id, name, value)\n sourcing_list(salary, code, name, amount)\nTask: Find code from area_registry where level appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(status, type, code, value)\n facility_registry(id, value, date, level)\nTask: Find amount from sales_registry where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(code, level, salary, id)\n attribute_groups(amount, value, type, salary)\nTask: Retrieve salary from cost_centers that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(date, id, name, amount)\n dispatch_queue(name, date, amount, code)\nTask: Select code from personnel_registry where code exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(date, salary, code, level)\n receivables_log(id, level, amount, date)\nTask: Select name from portfolio_index that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(salary, id, name, level)\n stock_catalog(amount, id, salary, level)\nTask: Select salary from receivables_log where value is greater than the minimum of value in stock_catalog for matching type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE value > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(id, date, type, salary)\n stocking_sites(value, id, level, salary)\nTask: Select code from facility_registry where amount is greater than the total of salary in stocking_sites for matching status.\nSQL:", "sql": "SELECT code FROM facility_registry AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(value, level, status, amount)\n sourcing_list(code, amount, value, level)\nTask: Select salary from workforce_data where id exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(code, value, date, type)\n workforce_data(amount, value, name, date)\nTask: Select amount from sourcing_list where code exists in workforce_data for the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(type, status, name, amount)\n attribute_groups(value, status, amount, id)\nTask: Retrieve code from activity_log whose type is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(value, name, type, amount)\n sales_queue(amount, date, type, status)\nTask: Retrieve value from facility_registry with amount above the SUM(salary) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(salary, name, id, status)\n activity_log(date, name, salary, status)\nTask: Retrieve id from engagement_log with value above the AVG(amount) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE value > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(date, name, salary, value)\n cost_centers(date, name, type, value)\nTask: Select amount from workforce_data that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(salary, amount, value, type)\n portfolio_index(id, amount, name, salary)\nTask: Select id from receivables_log where code exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(date, name, type, level)\n dispatch_queue(salary, id, code, value)\nTask: Find code from personnel_registry where level appears in dispatch_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(id, status, name, code)\n workforce_data(id, name, date, type)\nTask: Select code from portfolio_index that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(amount, value, name, status)\n sales_registry(id, code, status, type)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(salary, id, level, type)\n personnel_registry(code, level, id, salary)\nTask: Retrieve name from journal_entries with value above the MIN(amount) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(value, id, status, salary)\n facility_registry(level, status, salary, amount)\nTask: Retrieve amount from personnel_registry whose type is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(id, status, date, type)\n facility_registry(code, value, name, id)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(id, name, value, status)\n personnel_registry(level, value, name, amount)\nTask: Find name from stock_catalog where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, id, salary, type)\n facility_registry(status, id, code, type)\nTask: Find id from dispatch_queue where type appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(date, code, status, level)\n activity_log(amount, name, value, date)\nTask: Retrieve name from sales_queue that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(type, salary, value, id)\n acquisition_log(salary, type, date, id)\nTask: Select id from portfolio_index that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(level, status, date, value)\n facility_registry(salary, type, status, level)\nTask: Retrieve code from area_registry with value above the MIN(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE value > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(type, value, status, salary)\n journal_entries(code, name, status, value)\nTask: Select value from portfolio_index where amount is greater than the total of amount in journal_entries for matching type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(id, value, salary, code)\n portfolio_index(type, status, amount, level)\nTask: Find id from personnel_registry where code appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(value, id, amount, level)\n sales_queue(name, level, date, type)\nTask: Retrieve name from acquisition_log whose status is found in sales_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, salary, value, type)\n attribute_groups(salary, id, date, value)\nTask: Select salary from dispatch_queue where id exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(status, level, value, date)\n area_registry(value, id, date, name)\nTask: Select id from activity_log that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, level, amount, code)\n area_registry(type, code, salary, value)\nTask: Find code from portfolio_index where salary exceeds the total value from area_registry for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(value, status, id, date)\n receivables_log(code, date, value, amount)\nTask: Find amount from sourcing_list where salary exceeds the count of salary from receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(name, status, value, salary)\n engagement_log(date, status, name, value)\nTask: Retrieve name from activity_log with value above the SUM(value) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE value > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(date, value, name, salary)\n sales_registry(value, type, date, salary)\nTask: Find code from portfolio_index where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(code, level, amount, date)\n journal_entries(name, date, amount, type)\nTask: Retrieve salary from acquisition_log with value above the MAX(salary) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE value > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "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}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(status, name, amount, salary)\n journal_entries(date, type, level, id)\nTask: Retrieve value from receivables_log with amount above the COUNT(value) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(amount, status, type, code)\n sales_registry(code, status, name, salary)\nTask: Retrieve salary from personnel_registry with amount above the MIN(value) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(date, code, type, level)\n area_registry(date, code, salary, value)\nTask: Select name from personnel_registry where salary is greater than the count of of salary in area_registry for matching level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(level, value, amount, name)\n engagement_log(id, date, code, salary)\nTask: Find code from stocking_sites where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(amount, id, value, code)\n attribute_groups(amount, code, salary, id)\nTask: Find value from facility_registry where value exceeds the total amount from attribute_groups for the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE value > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(status, level, value, name)\n attribute_groups(amount, code, level, salary)\nTask: Retrieve amount from acquisition_log with salary above the MIN(salary) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(code, amount, level, name)\n cost_centers(level, status, salary, code)\nTask: Retrieve id from personnel_registry whose status is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(name, amount, type, code)\n dispatch_queue(status, type, id, date)\nTask: Select salary from stock_catalog where salary is greater than the count of of amount in dispatch_queue for matching status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(date, status, id, code)\n receivables_log(code, status, value, type)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(level, name, type, status)\n stock_catalog(salary, id, code, amount)\nTask: Select code from facility_registry where amount is greater than the count of of amount in stock_catalog for matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(type, value, name, status)\n stock_catalog(salary, value, type, name)\nTask: Select id from sales_registry where value is greater than the average of value in stock_catalog for matching code.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE value > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(amount, level, value, date)\n stock_catalog(value, id, salary, amount)\nTask: Select code from cost_centers where amount is greater than the total of amount in stock_catalog for matching type.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(salary, id, value, code)\n cost_centers(status, amount, id, name)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(type, date, salary, id)\n facility_registry(value, name, amount, id)\nTask: Retrieve id from area_registry that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(value, name, status, type)\n sales_registry(amount, id, type, salary)\nTask: Select name from journal_entries that have at least one matching row in sales_registry for the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(amount, level, type, date)\n sourcing_list(salary, type, code, name)\nTask: Find amount from stocking_sites where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(amount, salary, name, code)\n sourcing_list(value, status, code, id)\nTask: Retrieve amount from sales_queue with salary above the MIN(amount) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(level, status, name, id)\n facility_registry(salary, type, name, date)\nTask: Select code from stocking_sites where salary is greater than the average of salary in facility_registry for matching type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(type, salary, id, date)\n area_registry(level, id, name, salary)\nTask: Find code from sales_registry where level appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, type, date, name)\n personnel_registry(date, salary, amount, status)\nTask: Find salary from receivables_log where type appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(salary, code, type, date)\n workforce_data(code, value, salary, amount)\nTask: Retrieve salary from sales_registry whose status is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(name, type, salary, amount)\n sourcing_list(salary, date, level, type)\nTask: Find value from area_registry where value exceeds the total amount from sourcing_list for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE value > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(status, amount, date, level)\n acquisition_log(date, type, value, status)\nTask: Retrieve code from workforce_data with value above the MIN(value) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE value > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(level, name, code, value)\n dispatch_queue(name, type, code, level)\nTask: Retrieve amount from workforce_data with value above the AVG(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE value > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(type, salary, name, id)\n journal_entries(value, amount, code, type)\nTask: Retrieve value from area_registry with value above the COUNT(value) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, value, status, name)\n portfolio_index(status, salary, level, name)\nTask: Find salary from attribute_groups where code appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(level, name, salary, type)\n journal_entries(date, status, code, amount)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(value, salary, date, amount)\n receivables_log(id, type, level, status)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(id, level, amount, date)\n cost_centers(date, level, salary, id)\nTask: Find value from sales_queue where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(code, date, name, status)\n journal_entries(type, date, id, status)\nTask: Find id from area_registry where status appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(name, value, code, status)\n activity_log(id, status, name, amount)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(date, id, salary, level)\n stocking_sites(level, salary, code, type)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(code, date, level, amount)\n area_registry(id, level, status, value)\nTask: Select value from personnel_registry that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(date, value, amount, code)\n dispatch_queue(amount, status, id, value)\nTask: Find name from journal_entries where value exceeds the maximum amount from dispatch_queue for the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(code, id, type, salary)\n stocking_sites(amount, salary, name, code)\nTask: Retrieve id from activity_log whose level is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(id, code, value, level)\n sales_queue(status, type, salary, code)\nTask: Find value from stocking_sites where status appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(value, name, level, id)\n sourcing_list(salary, type, status, date)\nTask: Select value from stocking_sites that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(type, id, name, date)\n activity_log(status, date, level, salary)\nTask: Select id from area_registry that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(amount, salary, date, type)\n dispatch_queue(value, type, level, name)\nTask: Retrieve id from cost_centers with amount above the AVG(value) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE amount > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(value, id, date, type)\n cost_centers(id, amount, code, value)\nTask: Find id from area_registry where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(code, salary, amount, id)\n facility_registry(level, code, amount, value)\nTask: Select amount from activity_log where level exists in facility_registry for the same level.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(code, date, amount, level)\n workforce_data(status, id, name, level)\nTask: Find name from portfolio_index where type appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(date, amount, code, salary)\n dispatch_queue(salary, value, type, level)\nTask: Select name from journal_entries where value is greater than the total of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE value > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(value, type, amount, status)\n dispatch_queue(value, salary, amount, date)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(status, id, name, value)\n acquisition_log(amount, date, code, id)\nTask: Retrieve value from journal_entries with salary above the AVG(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(date, salary, code, amount)\n portfolio_index(amount, code, id, status)\nTask: Retrieve name from journal_entries whose status is found in portfolio_index rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(level, status, value, amount)\n stocking_sites(id, code, type, name)\nTask: Select salary from sales_queue where salary is greater than the average of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(id, amount, status, level)\n workforce_data(salary, value, level, name)\nTask: Select name from receivables_log that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(type, status, code, amount)\n personnel_registry(date, status, id, salary)\nTask: Find amount from workforce_data where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(level, salary, date, type)\n engagement_log(salary, amount, name, value)\nTask: Select salary from acquisition_log where amount is greater than the count of of salary in engagement_log for matching id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(date, name, salary, amount)\n dispatch_queue(value, salary, date, level)\nTask: Find value from personnel_registry where amount exceeds the average amount from dispatch_queue for the same type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, code, level, type)\n portfolio_index(date, value, name, salary)\nTask: Find amount from acquisition_log where level appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(code, name, date, type)\n cost_centers(name, type, value, date)\nTask: Select id from journal_entries where value is greater than the maximum of salary in cost_centers for matching type.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE value > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, type, value, level)\n sales_registry(id, salary, amount, date)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(name, status, amount, code)\n cost_centers(id, salary, date, value)\nTask: Find id from activity_log where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(value, salary, amount, id)\n area_registry(id, value, code, salary)\nTask: Select amount from journal_entries that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(status, type, date, level)\n portfolio_index(status, date, code, salary)\nTask: Retrieve salary from journal_entries with amount above the SUM(amount) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(status, level, date, id)\n workforce_data(salary, id, type, amount)\nTask: Find id from sales_queue where salary exceeds the count of salary from workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(amount, name, value, date)\n personnel_registry(id, level, type, date)\nTask: Retrieve code from acquisition_log whose status is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(value, status, date, level)\n acquisition_log(value, date, status, level)\nTask: Retrieve id from stocking_sites with amount above the MAX(amount) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(id, amount, salary, name)\n activity_log(level, value, id, status)\nTask: Select value from engagement_log where salary is greater than the minimum of amount in activity_log for matching status.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(amount, status, value, code)\n stock_catalog(code, type, level, name)\nTask: Retrieve code from workforce_data whose id is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(amount, status, id, date)\n stock_catalog(value, type, salary, amount)\nTask: Find amount from workforce_data where a matching record exists in stock_catalog with the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, code, status, name)\n personnel_registry(status, amount, type, value)\nTask: Select salary from activity_log where amount is greater than the maximum of value in personnel_registry for matching type.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE amount > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(date, level, amount, code)\n personnel_registry(amount, date, id, name)\nTask: Retrieve salary from journal_entries with amount above the COUNT(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(amount, id, value, level)\n sales_queue(salary, date, id, code)\nTask: Retrieve value from facility_registry whose status is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(value, level, date, amount)\n workforce_data(value, code, id, type)\nTask: Find code from area_registry where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(status, code, salary, name)\n sourcing_list(level, status, value, id)\nTask: Retrieve value from workforce_data whose status is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(value, date, type, code)\n personnel_registry(value, salary, status, name)\nTask: Retrieve value from activity_log with value above the SUM(salary) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS dept\nWHERE value > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(level, value, type, id)\n personnel_registry(id, date, name, amount)\nTask: Retrieve amount from portfolio_index that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(level, amount, value, status)\n workforce_data(name, code, level, status)\nTask: Retrieve salary from stocking_sites with amount above the AVG(salary) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(type, amount, status, code)\n portfolio_index(code, status, id, name)\nTask: Retrieve id from cost_centers whose level is found in portfolio_index rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(name, value, id, amount)\n stocking_sites(status, type, name, value)\nTask: Select value from activity_log where level exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(id, salary, amount, code)\n attribute_groups(id, type, status, date)\nTask: Retrieve amount from sales_queue with salary above the SUM(amount) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(value, code, level, name)\n receivables_log(amount, date, id, value)\nTask: Retrieve code from journal_entries whose level is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(amount, code, date, salary)\n activity_log(date, id, amount, level)\nTask: Find code from personnel_registry where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(salary, level, amount, name)\n acquisition_log(salary, id, code, status)\nTask: Select id from receivables_log that have at least one matching row in acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(level, date, status, salary)\n sourcing_list(value, id, type, amount)\nTask: Select value from journal_entries where status exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(status, id, amount, type)\n cost_centers(amount, status, date, salary)\nTask: Find code from acquisition_log where salary exceeds the average amount from cost_centers for the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(date, name, salary, value)\n activity_log(code, value, date, name)\nTask: Find id from workforce_data where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(code, salary, value, status)\n stock_catalog(level, date, salary, type)\nTask: Select id from portfolio_index where value is greater than the average of value in stock_catalog for matching status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE value > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, status, date, id)\n stock_catalog(id, value, salary, name)\nTask: Retrieve amount from stocking_sites with value above the MIN(amount) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE value > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(code, amount, salary, id)\n receivables_log(amount, level, code, salary)\nTask: Find amount from journal_entries where id appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(code, salary, name, id)\n sales_queue(code, type, level, value)\nTask: Retrieve value from portfolio_index with value above the MAX(salary) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE value > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(salary, status, code, level)\n attribute_groups(salary, value, amount, code)\nTask: Retrieve code from cost_centers that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(amount, status, level, date)\n portfolio_index(code, date, type, salary)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT code FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(name, level, salary, code)\n stock_catalog(status, name, level, type)\nTask: Retrieve value from acquisition_log whose code is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(type, status, id, amount)\n dispatch_queue(name, level, type, amount)\nTask: Find code from stocking_sites where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(code, id, salary, name)\n cost_centers(value, name, salary, date)\nTask: Retrieve amount from sales_queue with amount above the COUNT(value) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(level, amount, id, date)\n sourcing_list(salary, code, date, amount)\nTask: Retrieve salary from cost_centers whose level is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(level, name, id, type)\n area_registry(type, code, value, date)\nTask: Select value from attribute_groups that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(name, amount, level, code)\n stocking_sites(id, code, salary, amount)\nTask: Select salary from acquisition_log that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(level, type, value, amount)\n personnel_registry(type, amount, name, id)\nTask: Retrieve salary from sourcing_list whose status is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(id, amount, value, name)\n portfolio_index(amount, name, code, status)\nTask: Find amount from workforce_data where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(level, amount, value, type)\n cost_centers(salary, date, code, amount)\nTask: Find id from sourcing_list where type appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(id, salary, amount, status)\n sales_queue(name, id, level, amount)\nTask: Select code from stock_catalog where salary is greater than the total of value in sales_queue for matching type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE salary > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(status, date, id, code)\n sales_queue(date, amount, type, status)\nTask: Find code from stocking_sites where value exceeds the minimum salary from sales_queue for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE value > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(id, date, type, value)\n sales_registry(level, amount, status, id)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(code, salary, amount, name)\n engagement_log(salary, level, date, status)\nTask: Retrieve id from attribute_groups that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, status, name, level)\n attribute_groups(name, level, amount, status)\nTask: Find code from stocking_sites where value exceeds the count of amount from attribute_groups for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(name, value, salary, id)\n portfolio_index(name, level, amount, date)\nTask: Find code from sales_registry where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(status, name, type, amount)\n dispatch_queue(date, salary, type, amount)\nTask: Retrieve value from activity_log with amount above the MIN(amount) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE amount > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(amount, status, code, name)\n sales_registry(id, level, amount, salary)\nTask: Select amount from workforce_data that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(value, salary, code, id)\n engagement_log(date, code, salary, id)\nTask: Select name from attribute_groups where amount is greater than the total of value in engagement_log for matching level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE amount > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(level, status, id, amount)\n stocking_sites(salary, status, date, amount)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(type, level, name, code)\n receivables_log(code, date, value, type)\nTask: Select id from engagement_log where amount is greater than the minimum of amount in receivables_log for matching type.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE amount > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(value, amount, status, id)\n dispatch_queue(type, id, level, value)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(salary, value, name, id)\n stock_catalog(code, status, date, value)\nTask: Select code from sales_registry where value is greater than the count of of amount in stock_catalog for matching type.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(id, date, code, amount)\n portfolio_index(code, status, type, salary)\nTask: Find name from area_registry where code appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(amount, name, level, value)\n activity_log(value, id, amount, level)\nTask: Find salary from workforce_data where id appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(id, name, amount, value)\n sourcing_list(type, amount, value, name)\nTask: Find code from journal_entries where level appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(code, date, type, id)\n engagement_log(name, code, id, amount)\nTask: Find code from sales_registry where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(type, amount, level, date)\n sales_registry(id, value, type, salary)\nTask: Find amount from dispatch_queue where amount exceeds the average salary from sales_registry for the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE amount > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, amount, name, level)\n sales_registry(type, date, name, id)\nTask: Find value from dispatch_queue where code appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(type, level, date, status)\n stock_catalog(salary, status, type, amount)\nTask: Select name from journal_entries where salary is greater than the minimum of salary in stock_catalog for matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(status, id, amount, date)\n stock_catalog(id, date, name, status)\nTask: Select amount from sales_queue that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(code, type, date, status)\n cost_centers(status, date, code, level)\nTask: Find id from sourcing_list where value exceeds the total salary from cost_centers for the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE value > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(name, date, level, status)\n cost_centers(type, date, salary, level)\nTask: Select salary from stock_catalog where value is greater than the total of salary in cost_centers for matching type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE value > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, value, status, id)\n portfolio_index(value, amount, id, code)\nTask: Find code from receivables_log where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT code FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(code, level, id, date)\n sales_queue(type, status, value, name)\nTask: Retrieve id from dispatch_queue whose id is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(level, date, amount, name)\n dispatch_queue(level, date, id, type)\nTask: Retrieve name from portfolio_index that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(level, salary, status, amount)\n engagement_log(date, amount, type, level)\nTask: Select id from personnel_registry where amount is greater than the average of salary in engagement_log for matching id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(status, amount, id, level)\n receivables_log(status, id, value, type)\nTask: Select salary from facility_registry where value is greater than the minimum of value in receivables_log for matching level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE value > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(value, type, id, salary)\n stocking_sites(salary, level, code, value)\nTask: Retrieve code from journal_entries with value above the COUNT(amount) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(name, date, amount, level)\n personnel_registry(status, code, level, value)\nTask: Select value from portfolio_index where level exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(date, code, salary, type)\n receivables_log(type, date, id, amount)\nTask: Retrieve amount from activity_log that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(amount, code, date, type)\n activity_log(id, value, code, amount)\nTask: Find salary from dispatch_queue where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(level, value, date, id)\n facility_registry(code, value, date, type)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(date, value, salary, status)\n sales_registry(salary, id, type, status)\nTask: Select salary from sales_queue where type exists in sales_registry for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(code, name, value, id)\n sourcing_list(date, code, name, amount)\nTask: Find id from sales_queue where status appears in sourcing_list entries with matching type.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(id, date, name, type)\n attribute_groups(name, type, code, status)\nTask: Find name from portfolio_index where salary exceeds the maximum value from attribute_groups for the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(level, amount, status, salary)\n area_registry(value, level, status, id)\nTask: Select name from stocking_sites that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(code, type, salary, status)\n receivables_log(id, amount, name, code)\nTask: Retrieve id from sales_queue with amount above the AVG(amount) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(type, value, status, id)\n engagement_log(level, name, id, code)\nTask: Find value from journal_entries where type appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(value, id, amount, level)\n acquisition_log(date, type, salary, code)\nTask: Retrieve salary from journal_entries whose code is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(code, type, salary, id)\n area_registry(salary, type, code, level)\nTask: Find id from personnel_registry where value exceeds the average salary from area_registry for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE value > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, salary, date, type)\n activity_log(type, amount, value, id)\nTask: Find name from portfolio_index where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(name, amount, id, salary)\n journal_entries(status, type, salary, level)\nTask: Find value from sales_registry where type appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(status, code, salary, date)\n personnel_registry(level, code, name, salary)\nTask: Find code from facility_registry where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(value, amount, status, level)\n stocking_sites(amount, name, value, status)\nTask: Find amount from acquisition_log where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(salary, code, name, date)\n activity_log(name, status, amount, type)\nTask: Select code from sourcing_list where level exists in activity_log for the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(value, id, level, code)\n stock_catalog(id, status, value, type)\nTask: Find name from portfolio_index where salary exceeds the total amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(level, status, value, id)\n portfolio_index(value, date, code, amount)\nTask: Find id from sourcing_list where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, date, status, id)\n sourcing_list(value, type, name, level)\nTask: Retrieve code from dispatch_queue whose status is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(date, id, amount, type)\n engagement_log(type, level, value, date)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(name, level, id, code)\n personnel_registry(level, type, status, value)\nTask: Find amount from stocking_sites where level appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(code, type, date, amount)\n stocking_sites(amount, code, type, value)\nTask: Find amount from cost_centers where salary exceeds the maximum amount from stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, id, code, value)\n personnel_registry(code, level, date, id)\nTask: Find id from dispatch_queue where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(code, amount, type, salary)\n sales_queue(salary, type, name, level)\nTask: Select code from workforce_data where salary is greater than the maximum of value in sales_queue for matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE salary > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, name, level, value)\n attribute_groups(level, type, code, date)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(type, name, salary, amount)\n sales_registry(date, status, code, amount)\nTask: Find value from attribute_groups where amount exceeds the minimum value from sales_registry for the same type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, code, date, type)\n acquisition_log(level, date, code, name)\nTask: Find id from dispatch_queue where level appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(code, id, date, type)\n receivables_log(id, level, code, value)\nTask: Select salary from acquisition_log where type exists in receivables_log for the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(amount, type, name, status)\n facility_registry(value, amount, salary, code)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(type, status, amount, value)\n area_registry(status, salary, code, level)\nTask: Select amount from stocking_sites where salary is greater than the total of amount in area_registry for matching type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(amount, date, name, status)\n stock_catalog(level, code, type, status)\nTask: Select code from area_registry where code exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(id, name, amount, salary)\n portfolio_index(amount, type, status, name)\nTask: Find name from facility_registry where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(id, salary, type, level)\n cost_centers(amount, value, id, status)\nTask: Select name from sales_queue where type exists in cost_centers for the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, level, date, value)\n dispatch_queue(id, status, amount, name)\nTask: Retrieve value from stock_catalog whose level is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(date, type, amount, level)\n personnel_registry(amount, type, code, date)\nTask: Retrieve name from journal_entries with salary above the SUM(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE salary > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, type, level, date)\n workforce_data(type, salary, date, status)\nTask: Find salary from dispatch_queue where amount exceeds the total value from workforce_data for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(value, type, date, level)\n journal_entries(date, name, status, salary)\nTask: Find id from sales_queue where status appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT id FROM sales_queue AS usr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(date, id, status, level)\n portfolio_index(level, id, date, type)\nTask: Retrieve id from acquisition_log with value above the COUNT(amount) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(level, value, status, name)\n stocking_sites(id, type, amount, value)\nTask: Find code from engagement_log where value exceeds the average value from stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE value > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(level, name, status, value)\n acquisition_log(type, id, amount, salary)\nTask: Select code from facility_registry where amount is greater than the count of of amount in acquisition_log for matching level.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(name, amount, salary, date)\n stock_catalog(id, status, salary, name)\nTask: Retrieve salary from stocking_sites whose status is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(status, salary, name, date)\n activity_log(name, status, id, type)\nTask: Retrieve value from sales_queue with amount above the SUM(value) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE amount > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(code, level, name, amount)\n attribute_groups(status, date, salary, id)\nTask: Find code from workforce_data where level appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, level, salary, type)\n area_registry(status, amount, name, value)\nTask: Retrieve id from dispatch_queue with amount above the COUNT(salary) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE amount > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(id, salary, amount, level)\n personnel_registry(status, type, code, level)\nTask: Select name from attribute_groups where salary is greater than the average of value in personnel_registry for matching level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE salary > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(salary, value, name, status)\n engagement_log(type, status, level, code)\nTask: Retrieve amount from dispatch_queue with amount above the MAX(value) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, value, salary, level)\n engagement_log(level, value, amount, name)\nTask: Find code from personnel_registry where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(code, level, name, type)\n activity_log(code, date, salary, id)\nTask: Select code from cost_centers that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(code, amount, status, type)\n dispatch_queue(level, salary, date, name)\nTask: Select code from portfolio_index that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(code, id, amount, name)\n receivables_log(level, date, name, amount)\nTask: Retrieve id from workforce_data whose level is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(name, salary, code, id)\n workforce_data(level, salary, value, code)\nTask: Select amount from attribute_groups where code exists in workforce_data for the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(name, status, code, type)\n stock_catalog(level, date, id, status)\nTask: Select amount from workforce_data that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, code, type, name)\n journal_entries(value, type, status, code)\nTask: Find salary from stocking_sites where level appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(date, status, type, id)\n workforce_data(name, salary, date, level)\nTask: Find id from activity_log where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(salary, status, value, id)\n cost_centers(amount, date, name, salary)\nTask: Retrieve salary from activity_log with salary above the MIN(value) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE salary > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(value, code, amount, id)\n receivables_log(date, id, salary, value)\nTask: Find name from activity_log where code appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(name, value, level, status)\n sales_registry(date, name, id, code)\nTask: Find amount from stocking_sites where salary exceeds the average salary from sales_registry for the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(id, code, level, name)\n activity_log(amount, name, date, type)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(date, salary, level, value)\n workforce_data(level, id, name, value)\nTask: Retrieve amount from stocking_sites whose id is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(value, date, code, level)\n attribute_groups(code, date, salary, id)\nTask: Select id from workforce_data where level exists in attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(date, code, status, value)\n activity_log(status, level, type, date)\nTask: Find salary from acquisition_log where salary exceeds the count of amount from activity_log for the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE salary > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(value, code, id, status)\n stocking_sites(date, status, amount, code)\nTask: Select code from sales_queue where code exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS inv\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(name, salary, code, type)\n acquisition_log(level, name, type, date)\nTask: Retrieve name from portfolio_index that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(type, amount, id, salary)\n facility_registry(salary, type, amount, date)\nTask: Retrieve amount from area_registry whose level is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(id, status, date, code)\n sales_queue(id, status, code, name)\nTask: Select salary from sourcing_list where salary is greater than the maximum of amount in sales_queue for matching status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(type, status, salary, code)\n sales_registry(salary, date, value, type)\nTask: Select id from stock_catalog that have at least one matching row in sales_registry for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(id, salary, value, date)\n journal_entries(status, date, level, type)\nTask: Retrieve name from acquisition_log whose code is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(status, date, type, amount)\n dispatch_queue(salary, status, name, date)\nTask: Select code from personnel_registry that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(status, code, level, date)\n stock_catalog(level, salary, status, amount)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(type, salary, value, date)\n stock_catalog(amount, level, salary, type)\nTask: Select value from sales_queue that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, id, code, level)\n portfolio_index(salary, value, name, date)\nTask: Find salary from stocking_sites where salary exceeds the maximum salary from portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(value, salary, code, level)\n attribute_groups(amount, value, level, salary)\nTask: Select id from workforce_data where code exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(status, value, id, type)\n receivables_log(date, amount, id, code)\nTask: Retrieve salary from personnel_registry whose code is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, name, level, date)\n stocking_sites(id, salary, name, date)\nTask: Find amount from personnel_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, amount, status, id)\n sales_queue(value, salary, name, level)\nTask: Retrieve code from stock_catalog with amount above the AVG(value) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(level, type, date, code)\n stock_catalog(salary, code, level, id)\nTask: Find amount from receivables_log where salary exceeds the minimum value from stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE salary > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(level, status, date, salary)\n engagement_log(status, level, name, amount)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(id, level, amount, name)\n sales_registry(salary, name, status, type)\nTask: Select id from sales_queue where id exists in sales_registry for the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, type, value, amount)\n personnel_registry(salary, code, level, name)\nTask: Retrieve amount from dispatch_queue with salary above the MIN(value) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(type, code, name, amount)\n area_registry(salary, type, code, id)\nTask: Retrieve value from journal_entries with salary above the MIN(value) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE salary > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(value, name, salary, id)\n sales_queue(status, date, id, code)\nTask: Retrieve value from sales_registry whose status is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(type, salary, code, date)\n journal_entries(level, salary, date, name)\nTask: Select salary from stocking_sites where value is greater than the total of amount in journal_entries for matching status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE value > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(value, amount, salary, code)\n receivables_log(date, level, salary, id)\nTask: Select name from area_registry where value is greater than the minimum of salary in receivables_log for matching code.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE value > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(level, status, salary, amount)\n activity_log(code, date, name, salary)\nTask: Find name from facility_registry where value exceeds the count of salary from activity_log for the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE value > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(salary, amount, name, id)\n workforce_data(amount, level, status, value)\nTask: Find code from acquisition_log where code appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(salary, code, type, date)\n acquisition_log(type, code, name, value)\nTask: Select id from stock_catalog where id exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(name, amount, id, date)\n personnel_registry(type, salary, code, level)\nTask: Find name from engagement_log where salary exceeds the total value from personnel_registry for the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE salary > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(date, code, name, id)\n stock_catalog(name, level, date, amount)\nTask: Select id from stocking_sites that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(type, name, id, code)\n receivables_log(name, id, salary, value)\nTask: Retrieve amount from facility_registry whose code is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(id, date, level, amount)\n attribute_groups(date, value, salary, code)\nTask: Find salary from facility_registry where type appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(salary, amount, type, date)\n dispatch_queue(name, code, salary, status)\nTask: Retrieve value from activity_log that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(type, status, code, salary)\n acquisition_log(type, name, code, level)\nTask: Retrieve id from sourcing_list with salary above the AVG(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(value, type, code, salary)\n cost_centers(type, status, level, salary)\nTask: Find salary from facility_registry where type appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(value, code, status, date)\n journal_entries(name, status, type, code)\nTask: Select amount from activity_log that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(value, name, type, level)\n activity_log(type, salary, code, date)\nTask: Select code from attribute_groups where value is greater than the total of amount in activity_log for matching type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE value > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(type, level, amount, date)\n area_registry(salary, amount, type, status)\nTask: Find amount from sourcing_list where amount exceeds the count of value from area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, level, type, status)\n sales_registry(type, id, amount, name)\nTask: Find amount from portfolio_index where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(value, status, type, amount)\n acquisition_log(date, type, level, amount)\nTask: Find name from sales_queue where amount exceeds the count of value from acquisition_log for the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(salary, status, value, amount)\n personnel_registry(id, level, type, value)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(amount, salary, date, id)\n dispatch_queue(date, salary, code, amount)\nTask: Find name from facility_registry where type appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(level, status, value, code)\n journal_entries(amount, level, salary, value)\nTask: Select salary from stocking_sites that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(value, type, amount, id)\n cost_centers(level, date, code, value)\nTask: Retrieve amount from attribute_groups with salary above the AVG(amount) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(value, status, type, code)\n activity_log(type, amount, date, salary)\nTask: Select value from facility_registry where code exists in activity_log for the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(salary, status, amount, value)\n activity_log(value, id, type, date)\nTask: Find value from attribute_groups where id appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(value, id, date, code)\n workforce_data(name, value, date, level)\nTask: Select name from sales_queue where status exists in workforce_data for the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(value, id, level, date)\n stock_catalog(code, status, id, name)\nTask: Find value from engagement_log where amount exceeds the maximum salary from stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(amount, type, id, name)\n stocking_sites(value, id, level, status)\nTask: Retrieve amount from personnel_registry that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(id, date, code, salary)\n acquisition_log(code, date, type, level)\nTask: Find salary from activity_log where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(date, value, salary, code)\n stocking_sites(value, level, salary, code)\nTask: Select id from stock_catalog where value is greater than the total of value in stocking_sites for matching type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, level, id, date)\n activity_log(amount, status, code, value)\nTask: Retrieve amount from stocking_sites that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(id, status, value, type)\n dispatch_queue(amount, value, code, status)\nTask: Find code from facility_registry where code appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(status, type, id, salary)\n personnel_registry(amount, level, date, name)\nTask: Find name from sales_queue where level appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(code, status, type, salary)\n attribute_groups(status, code, level, name)\nTask: Find id from journal_entries where level appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(date, level, value, salary)\n facility_registry(date, level, code, type)\nTask: Find value from acquisition_log where value exceeds the maximum value from facility_registry for the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE value > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(amount, status, salary, date)\n journal_entries(date, type, code, id)\nTask: Retrieve code from sales_registry whose status is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(salary, name, amount, status)\n attribute_groups(status, type, date, salary)\nTask: Retrieve name from sales_queue whose code is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(value, amount, level, id)\n attribute_groups(date, level, id, code)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, code, value, date)\n facility_registry(level, status, amount, date)\nTask: Find salary from attribute_groups where code appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(id, type, name, level)\n engagement_log(date, salary, level, value)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(status, value, name, id)\n area_registry(value, date, level, status)\nTask: Find amount from personnel_registry where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(salary, value, code, type)\n stocking_sites(date, value, level, name)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, level, type, amount)\n sales_registry(id, type, amount, name)\nTask: Retrieve id from dispatch_queue whose id is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(code, value, status, id)\n cost_centers(date, code, salary, id)\nTask: Retrieve amount from portfolio_index with salary above the SUM(value) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE salary > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(level, code, status, value)\n engagement_log(code, id, type, level)\nTask: Find code from area_registry where salary exceeds the count of amount from engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(status, type, name, date)\n stock_catalog(code, id, status, level)\nTask: Find salary from acquisition_log where type appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(name, type, salary, value)\n sales_registry(amount, id, type, code)\nTask: Retrieve value from receivables_log with salary above the AVG(value) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS ord\nWHERE salary > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(code, id, value, name)\n receivables_log(date, type, name, salary)\nTask: Select salary from portfolio_index where amount is greater than the average of salary in receivables_log for matching id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(date, code, type, status)\n sourcing_list(value, code, salary, name)\nTask: Find id from attribute_groups where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(salary, type, code, date)\n facility_registry(amount, type, salary, name)\nTask: Retrieve value from attribute_groups whose id is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(value, level, amount, status)\n cost_centers(level, amount, name, type)\nTask: Select name from attribute_groups where id exists in cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(status, amount, name, code)\n portfolio_index(amount, status, id, name)\nTask: Find code from workforce_data where salary exceeds the minimum value from portfolio_index for the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE salary > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(salary, type, level, name)\n sales_registry(id, amount, date, status)\nTask: Select id from workforce_data that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, date, name, level)\n sales_queue(type, name, salary, code)\nTask: Find amount from stock_catalog where type appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, code, amount, type)\n area_registry(id, name, type, level)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(name, value, code, amount)\n sourcing_list(salary, id, code, type)\nTask: Find amount from stocking_sites where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(level, value, code, amount)\n receivables_log(amount, type, code, level)\nTask: Select amount from acquisition_log that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(id, value, name, code)\n sales_queue(name, value, level, id)\nTask: Select code from facility_registry where value is greater than the total of amount in sales_queue for matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE value > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(name, date, id, salary)\n journal_entries(salary, value, amount, name)\nTask: Retrieve name from sales_queue with salary above the MAX(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, value, amount, name)\n sourcing_list(name, type, value, date)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(type, id, date, salary)\n sales_registry(salary, name, code, value)\nTask: Select name from area_registry where code exists in sales_registry for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(date, status, id, name)\n workforce_data(level, date, name, status)\nTask: Select id from attribute_groups where value is greater than the minimum of value in workforce_data for matching code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE value > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(salary, status, amount, date)\n sales_queue(id, value, amount, date)\nTask: Find salary from sales_registry where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(status, amount, id, level)\n journal_entries(level, salary, name, id)\nTask: Select id from area_registry where status exists in journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(name, salary, status, code)\n workforce_data(amount, level, code, status)\nTask: Find value from journal_entries where level appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(level, type, code, value)\n sales_queue(level, status, id, name)\nTask: Select value from stock_catalog that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(level, type, name, amount)\n activity_log(name, amount, type, level)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(amount, salary, status, name)\n facility_registry(code, value, level, status)\nTask: Find code from stocking_sites where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(date, amount, level, id)\n sourcing_list(date, name, value, code)\nTask: Find name from stock_catalog where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, value, name, id)\n area_registry(date, salary, amount, code)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(salary, code, id, amount)\n workforce_data(id, status, salary, code)\nTask: Find code from personnel_registry where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(value, name, code, level)\n sales_registry(type, id, value, code)\nTask: Find salary from sales_queue where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(id, code, salary, type)\n receivables_log(value, code, salary, name)\nTask: Retrieve salary from journal_entries whose type is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(type, status, amount, salary)\n dispatch_queue(type, amount, salary, level)\nTask: Find code from stocking_sites where id appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(code, amount, type, salary)\n cost_centers(id, salary, value, name)\nTask: Select value from sales_registry where status exists in cost_centers for the same code.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(value, salary, date, amount)\n stocking_sites(level, value, name, amount)\nTask: Retrieve name from activity_log that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(level, status, salary, value)\n sales_registry(name, amount, id, type)\nTask: Find amount from engagement_log where code appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(date, amount, type, salary)\n activity_log(value, name, salary, type)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(code, type, amount, salary)\n sales_queue(amount, status, salary, code)\nTask: Select name from workforce_data that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(level, amount, date, name)\n area_registry(id, value, status, salary)\nTask: Retrieve name from attribute_groups whose code is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(status, salary, name, code)\n attribute_groups(date, id, name, salary)\nTask: Select amount from sourcing_list where status exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(code, date, name, status)\n cost_centers(value, date, status, amount)\nTask: Select value from personnel_registry where salary is greater than the count of of amount in cost_centers for matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(date, salary, amount, status)\n portfolio_index(type, name, date, status)\nTask: Select amount from sales_registry that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(id, level, value, name)\n facility_registry(type, value, name, id)\nTask: Retrieve code from receivables_log whose level is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(amount, salary, status, type)\n receivables_log(level, name, status, salary)\nTask: Find id from portfolio_index where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(name, amount, salary, type)\n acquisition_log(level, id, date, value)\nTask: Find id from portfolio_index where status appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(date, value, type, salary)\n sourcing_list(amount, value, id, status)\nTask: Find salary from engagement_log where amount exceeds the total amount from sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, code, name, value)\n facility_registry(type, value, level, name)\nTask: Retrieve amount from stock_catalog whose code is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(code, type, id, name)\n workforce_data(amount, status, type, salary)\nTask: Retrieve id from facility_registry whose status is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, name, status, type)\n area_registry(salary, value, amount, id)\nTask: Select salary from acquisition_log where code exists in area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(date, salary, id, status)\n acquisition_log(code, salary, id, status)\nTask: Retrieve amount from sales_queue with amount above the MAX(value) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS emp\nWHERE amount > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(type, level, value, amount)\n activity_log(salary, type, status, value)\nTask: Select amount from journal_entries where type exists in activity_log for the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, date, code, salary)\n cost_centers(type, level, id, name)\nTask: Select value from stocking_sites that have at least one matching row in cost_centers for the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(level, date, amount, salary)\n area_registry(name, code, id, status)\nTask: Select name from engagement_log that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(value, level, status, date)\n stocking_sites(level, type, salary, amount)\nTask: Find id from sales_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(name, value, status, type)\n portfolio_index(name, date, id, status)\nTask: Retrieve value from personnel_registry whose id is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(name, salary, date, id)\n engagement_log(status, name, type, date)\nTask: Find id from dispatch_queue where amount exceeds the average value from engagement_log for the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(salary, type, amount, id)\n personnel_registry(id, type, amount, status)\nTask: Find value from facility_registry where amount exceeds the average value from personnel_registry for the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE amount > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(salary, level, code, date)\n journal_entries(salary, type, id, code)\nTask: Select code from portfolio_index where value is greater than the average of value in journal_entries for matching type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE value > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(status, name, value, id)\n sales_registry(value, id, date, salary)\nTask: Retrieve value from cost_centers with salary above the MAX(salary) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE salary > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, name, amount, code)\n acquisition_log(date, value, id, level)\nTask: Find id from dispatch_queue where salary exceeds the count of value from acquisition_log for the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(type, status, id, code)\n engagement_log(salary, date, type, value)\nTask: Select id from portfolio_index that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(value, salary, code, name)\n journal_entries(code, id, status, name)\nTask: Select id from sourcing_list where type exists in journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(name, value, date, code)\n personnel_registry(salary, value, id, name)\nTask: Select salary from sourcing_list that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(id, level, code, value)\n area_registry(name, status, salary, type)\nTask: Retrieve amount from sales_registry with salary above the COUNT(value) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(type, name, amount, date)\n dispatch_queue(name, amount, status, id)\nTask: Select salary from portfolio_index where level exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(status, amount, salary, name)\n sales_registry(name, date, code, status)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(name, status, level, type)\n acquisition_log(status, level, name, amount)\nTask: Retrieve value from stocking_sites with value above the AVG(amount) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE value > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(status, name, amount, type)\n facility_registry(name, status, value, date)\nTask: Retrieve name from portfolio_index whose type is found in facility_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(level, date, code, id)\n acquisition_log(status, salary, code, value)\nTask: Select value from sales_queue where value is greater than the maximum of value in acquisition_log for matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE value > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(status, level, code, date)\n journal_entries(level, status, date, name)\nTask: Find name from receivables_log where salary exceeds the total value from journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE salary > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, salary, type, value)\n receivables_log(name, salary, date, status)\nTask: Retrieve id from stocking_sites whose id is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(date, amount, code, id)\n sourcing_list(status, salary, name, value)\nTask: Find name from stock_catalog where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(id, value, type, status)\n receivables_log(salary, date, amount, name)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, status, code, id)\n stocking_sites(amount, status, value, salary)\nTask: Retrieve salary from cost_centers that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(level, type, name, status)\n facility_registry(code, name, value, id)\nTask: Retrieve code from sales_queue whose level is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(name, type, id, level)\n dispatch_queue(name, date, status, salary)\nTask: Retrieve amount from attribute_groups whose level is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(amount, status, salary, type)\n area_registry(name, date, code, value)\nTask: Find id from sales_registry where amount exceeds the minimum amount from area_registry for the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(value, salary, date, type)\n sourcing_list(id, name, code, value)\nTask: Select salary from workforce_data where amount is greater than the maximum of value in sourcing_list for matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE amount > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(name, status, level, salary)\n personnel_registry(name, type, id, date)\nTask: Find salary from cost_centers where code appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(type, date, level, salary)\n sales_registry(status, amount, code, level)\nTask: Select code from area_registry where level exists in sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(value, level, code, salary)\n engagement_log(name, code, value, amount)\nTask: Select value from facility_registry where value is greater than the total of amount in engagement_log for matching code.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE value > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(code, id, amount, type)\n engagement_log(name, date, value, status)\nTask: Retrieve name from attribute_groups with salary above the SUM(amount) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(amount, date, name, level)\n sales_queue(salary, id, amount, value)\nTask: Retrieve amount from journal_entries whose status is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(name, value, level, type)\n sales_queue(date, level, value, type)\nTask: Select value from attribute_groups where code exists in sales_queue for the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(date, level, code, amount)\n journal_entries(date, id, type, amount)\nTask: Retrieve name from personnel_registry whose code is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(date, amount, value, salary)\n receivables_log(date, code, id, value)\nTask: Find value from area_registry where level appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, status, value, level)\n receivables_log(salary, amount, status, value)\nTask: Select value from personnel_registry where salary is greater than the count of of value in receivables_log for matching id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS prod\nWHERE salary > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(code, salary, level, name)\n journal_entries(level, date, amount, status)\nTask: Retrieve name from area_registry whose type is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(date, name, type, status)\n engagement_log(status, name, date, id)\nTask: Retrieve code from attribute_groups whose id is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(name, id, level, value)\n cost_centers(code, type, level, status)\nTask: Find name from journal_entries where code appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(id, type, status, level)\n receivables_log(type, amount, level, salary)\nTask: Retrieve amount from facility_registry with amount above the AVG(amount) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(amount, level, code, salary)\n workforce_data(code, name, amount, salary)\nTask: Retrieve value from facility_registry with salary above the MAX(salary) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(id, status, amount, code)\n dispatch_queue(code, salary, id, type)\nTask: Find salary from journal_entries where value exceeds the maximum amount from dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(name, amount, value, level)\n personnel_registry(type, amount, id, value)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(id, amount, salary, status)\n workforce_data(amount, id, date, value)\nTask: Select name from engagement_log where level exists in workforce_data for the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(date, value, amount, type)\n personnel_registry(amount, type, level, salary)\nTask: Select code from portfolio_index where id exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(code, type, date, name)\n journal_entries(level, code, name, type)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(date, status, salary, type)\n engagement_log(type, status, salary, name)\nTask: Find value from workforce_data where status appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(value, id, date, salary)\n stocking_sites(status, id, salary, level)\nTask: Select id from journal_entries where status exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(value, level, type, status)\n sales_queue(type, salary, status, level)\nTask: Retrieve name from receivables_log with amount above the COUNT(salary) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(date, value, id, amount)\n attribute_groups(type, salary, amount, code)\nTask: Retrieve value from cost_centers with value above the COUNT(amount) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(date, level, type, amount)\n stocking_sites(name, date, status, salary)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(value, date, type, id)\n stock_catalog(amount, level, code, name)\nTask: Retrieve value from workforce_data with amount above the SUM(value) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE amount > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(level, name, code, amount)\n workforce_data(level, type, name, date)\nTask: Retrieve amount from personnel_registry whose code is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(name, id, status, date)\n sourcing_list(amount, code, value, type)\nTask: Select amount from area_registry that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(type, level, amount, value)\n dispatch_queue(date, level, code, type)\nTask: Select amount from sales_queue that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(status, amount, salary, type)\n stocking_sites(level, id, salary, date)\nTask: Select id from engagement_log where value is greater than the maximum of amount in stocking_sites for matching level.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE value > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(amount, code, salary, date)\n workforce_data(date, id, type, salary)\nTask: Find amount from sourcing_list where salary exceeds the maximum amount from workforce_data for the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE salary > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(code, salary, type, date)\n journal_entries(type, status, date, value)\nTask: Retrieve code from attribute_groups with amount above the AVG(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(id, status, type, name)\n cost_centers(date, salary, amount, name)\nTask: Find name from sourcing_list where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(type, salary, amount, level)\n dispatch_queue(status, value, amount, date)\nTask: Select value from receivables_log that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(name, code, status, level)\n sales_registry(code, value, id, amount)\nTask: Retrieve amount from area_registry whose id is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, type, date, name)\n sales_queue(level, status, code, value)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(id, name, salary, value)\n stock_catalog(type, salary, status, level)\nTask: Retrieve name from attribute_groups that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(type, salary, code, level)\n engagement_log(value, amount, date, level)\nTask: Retrieve id from facility_registry with amount above the SUM(salary) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(code, date, status, amount)\n journal_entries(salary, name, type, value)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(name, date, salary, level)\n sourcing_list(level, id, type, salary)\nTask: Select amount from stocking_sites where amount is greater than the total of amount in sourcing_list for matching status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(value, type, status, salary)\n sourcing_list(date, salary, code, status)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(date, type, value, level)\n sourcing_list(status, level, value, type)\nTask: Retrieve name from acquisition_log with salary above the MIN(salary) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, salary, value, amount)\n sales_queue(amount, status, id, date)\nTask: Retrieve name from portfolio_index with amount above the COUNT(value) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(amount, date, salary, code)\n sales_queue(name, value, amount, code)\nTask: Select salary from stocking_sites that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(code, level, salary, amount)\n portfolio_index(name, amount, value, id)\nTask: Retrieve amount from journal_entries whose level is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(date, id, value, name)\n attribute_groups(status, type, amount, code)\nTask: Find amount from journal_entries where id appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(type, salary, amount, level)\n acquisition_log(salary, id, name, amount)\nTask: Find amount from personnel_registry where status appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(value, name, salary, amount)\n acquisition_log(value, level, code, date)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(type, salary, code, amount)\n journal_entries(status, date, id, salary)\nTask: Retrieve code from sourcing_list whose status is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(amount, date, code, salary)\n activity_log(value, level, name, status)\nTask: Select code from sales_queue that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(value, salary, date, code)\n sales_queue(code, amount, name, id)\nTask: Retrieve salary from stocking_sites whose type is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(amount, date, status, id)\n area_registry(salary, name, value, code)\nTask: Select id from sales_queue where value is greater than the average of value in area_registry for matching code.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE value > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(type, name, salary, amount)\n stock_catalog(value, status, amount, code)\nTask: Select amount from journal_entries that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(code, date, status, amount)\n facility_registry(name, date, salary, value)\nTask: Select salary from area_registry where level exists in facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(level, value, type, code)\n journal_entries(value, level, amount, code)\nTask: Retrieve amount from personnel_registry whose type is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(code, name, id, status)\n engagement_log(name, amount, value, level)\nTask: Select value from receivables_log where amount is greater than the total of amount in engagement_log for matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(level, code, value, name)\n cost_centers(name, type, status, amount)\nTask: Find value from personnel_registry where level appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(name, status, salary, code)\n workforce_data(level, id, salary, code)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(name, value, amount, date)\n sourcing_list(level, date, status, salary)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(salary, status, id, name)\n stock_catalog(name, level, id, status)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(amount, salary, id, name)\n sourcing_list(amount, type, code, id)\nTask: Find code from stocking_sites where salary exceeds the maximum value from sourcing_list for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE salary > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(level, salary, amount, id)\n journal_entries(code, name, type, level)\nTask: Find id from sourcing_list where salary exceeds the average salary from journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(salary, level, type, amount)\n personnel_registry(id, salary, amount, status)\nTask: Select salary from area_registry where id exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(amount, salary, type, id)\n portfolio_index(date, amount, type, value)\nTask: Retrieve id from sales_registry whose code is found in portfolio_index rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(level, value, date, amount)\n journal_entries(name, value, code, id)\nTask: Select code from attribute_groups that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(code, amount, value, level)\n stocking_sites(amount, type, code, status)\nTask: Retrieve amount from sales_registry with value above the MIN(amount) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE value > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(salary, name, amount, value)\n acquisition_log(value, date, level, id)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(date, amount, type, status)\n engagement_log(date, salary, value, status)\nTask: Find salary from dispatch_queue where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(value, type, salary, status)\n area_registry(amount, value, level, date)\nTask: Find id from facility_registry where salary exceeds the maximum amount from area_registry for the same status.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(amount, name, value, date)\n activity_log(id, code, amount, name)\nTask: Retrieve code from cost_centers with salary above the MIN(value) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE salary > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, value, id, salary)\n attribute_groups(name, value, date, level)\nTask: Select value from dispatch_queue that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(date, code, type, salary)\n workforce_data(id, code, type, name)\nTask: Retrieve code from personnel_registry whose code is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(type, status, salary, value)\n sales_registry(date, id, level, amount)\nTask: Select salary from receivables_log where code exists in sales_registry for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, id, date, type)\n stocking_sites(value, status, level, code)\nTask: Find amount from dispatch_queue where code appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(date, value, status, level)\n stocking_sites(name, date, type, level)\nTask: Find id from sales_registry where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, id, salary, status)\n acquisition_log(level, type, name, id)\nTask: Find value from stocking_sites where amount exceeds the count of value from acquisition_log for the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(code, value, status, level)\n activity_log(salary, type, code, value)\nTask: Select value from workforce_data that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, salary, amount, id)\n sales_queue(salary, id, value, type)\nTask: Find amount from dispatch_queue where value exceeds the count of value from sales_queue for the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE value > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(type, id, date, amount)\n area_registry(code, name, amount, date)\nTask: Select name from engagement_log where status exists in area_registry for the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, type, id, level)\n stock_catalog(salary, level, type, code)\nTask: Find id from personnel_registry where value exceeds the total amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, status, name, value)\n portfolio_index(level, date, id, status)\nTask: Select salary from attribute_groups where amount is greater than the count of of amount in portfolio_index for matching level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(level, date, code, salary)\n portfolio_index(salary, status, type, date)\nTask: Retrieve salary from personnel_registry whose type is found in portfolio_index rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(code, status, name, amount)\n stocking_sites(id, name, amount, code)\nTask: Select code from workforce_data where status exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(id, status, type, code)\n workforce_data(amount, level, name, date)\nTask: Retrieve id from stock_catalog with value above the SUM(salary) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE value > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(type, amount, code, name)\n stock_catalog(date, level, type, id)\nTask: Retrieve id from receivables_log with value above the COUNT(amount) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(code, salary, status, level)\n engagement_log(code, date, value, level)\nTask: Find salary from stock_catalog where code appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(level, id, status, salary)\n cost_centers(name, date, level, type)\nTask: Retrieve value from sales_queue whose type is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(salary, status, date, value)\n sales_registry(status, amount, value, date)\nTask: Retrieve code from journal_entries with amount above the MAX(value) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE amount > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(level, code, date, type)\n dispatch_queue(salary, amount, date, id)\nTask: Select value from receivables_log where amount is greater than the maximum of amount in dispatch_queue for matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(level, type, value, salary)\n activity_log(code, id, level, status)\nTask: Find name from facility_registry where level appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(value, date, type, id)\n stock_catalog(value, id, salary, type)\nTask: Select salary from stocking_sites where amount is greater than the average of amount in stock_catalog for matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(salary, type, name, value)\n dispatch_queue(amount, status, salary, date)\nTask: Select salary from area_registry where status exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(name, id, salary, date)\n cost_centers(name, level, code, amount)\nTask: Retrieve salary from stock_catalog whose status is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(date, level, code, status)\n workforce_data(id, amount, code, type)\nTask: Retrieve code from stock_catalog whose id is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(id, value, date, name)\n receivables_log(type, level, date, name)\nTask: Select name from cost_centers where code exists in receivables_log for the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, code, salary, amount)\n activity_log(date, value, type, amount)\nTask: Find name from dispatch_queue where value exceeds the minimum amount from activity_log for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(id, amount, name, status)\n area_registry(name, salary, type, date)\nTask: Find value from engagement_log where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(level, id, salary, amount)\n facility_registry(date, salary, id, code)\nTask: Find name from attribute_groups where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(salary, date, level, code)\n activity_log(name, type, value, status)\nTask: Select amount from workforce_data where status exists in activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(salary, level, date, amount)\n workforce_data(date, level, status, type)\nTask: Select salary from area_registry where salary is greater than the average of amount in workforce_data for matching level.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(name, date, amount, level)\n personnel_registry(value, name, code, level)\nTask: Select value from sales_queue that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(code, name, level, type)\n facility_registry(salary, status, id, type)\nTask: Retrieve name from journal_entries with amount above the AVG(amount) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(name, code, level, amount)\n facility_registry(date, name, salary, type)\nTask: Find salary from workforce_data where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, level, type, name)\n dispatch_queue(type, name, code, status)\nTask: Retrieve salary from stocking_sites whose type is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, name, date, salary)\n stocking_sites(name, date, type, level)\nTask: Retrieve salary from dispatch_queue with salary above the MIN(amount) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(type, amount, date, status)\n facility_registry(name, type, level, id)\nTask: Retrieve amount from stock_catalog whose status is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(code, type, date, amount)\n cost_centers(status, amount, level, name)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(name, value, type, amount)\n activity_log(date, status, name, level)\nTask: Find name from journal_entries where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, id, name, salary)\n personnel_registry(name, value, date, status)\nTask: Select value from sourcing_list where type exists in personnel_registry for the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, status, amount, id)\n receivables_log(amount, name, code, status)\nTask: Find code from dispatch_queue where level appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(id, level, status, amount)\n stocking_sites(status, date, code, name)\nTask: Select name from journal_entries where id exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(status, level, type, id)\n acquisition_log(date, salary, type, status)\nTask: Select salary from sales_queue where value is greater than the maximum of value in acquisition_log for matching level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE value > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, name, level, status)\n receivables_log(status, type, value, level)\nTask: Find value from workforce_data where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(value, status, date, salary)\n sourcing_list(salary, level, id, name)\nTask: Select amount from engagement_log that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(code, level, id, type)\n journal_entries(amount, name, code, level)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(value, salary, status, amount)\n personnel_registry(name, value, code, type)\nTask: Select name from area_registry that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(date, type, salary, code)\n workforce_data(status, amount, type, date)\nTask: Select amount from dispatch_queue that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(code, date, type, level)\n engagement_log(date, salary, value, name)\nTask: Select salary from sales_registry that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(salary, id, date, code)\n workforce_data(amount, date, code, salary)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in workforce_data sharing the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(name, date, amount, status)\n personnel_registry(date, level, id, status)\nTask: Select amount from facility_registry where level exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(code, value, date, amount)\n facility_registry(status, salary, value, type)\nTask: Retrieve value from journal_entries with value above the AVG(salary) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(value, code, status, salary)\n attribute_groups(amount, code, salary, value)\nTask: Retrieve code from sales_registry whose type is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(value, status, salary, level)\n activity_log(id, amount, code, value)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(amount, status, type, id)\n facility_registry(date, name, salary, value)\nTask: Retrieve id from sales_registry whose type is found in facility_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(salary, status, level, date)\n stock_catalog(id, value, level, salary)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(level, salary, code, id)\n stocking_sites(amount, status, salary, name)\nTask: Retrieve salary from personnel_registry with amount above the AVG(salary) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(level, amount, value, id)\n workforce_data(code, status, value, date)\nTask: Retrieve id from acquisition_log with value above the MAX(value) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE value > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(date, status, type, name)\n personnel_registry(value, status, type, name)\nTask: Find value from portfolio_index where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, date, type, salary)\n sales_registry(value, status, code, type)\nTask: Find code from dispatch_queue where type appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(id, type, salary, value)\n portfolio_index(amount, date, name, salary)\nTask: Select salary from stock_catalog where type exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(level, status, salary, id)\n personnel_registry(salary, type, level, id)\nTask: Select value from sales_queue where value is greater than the total of value in personnel_registry for matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS mgr\nWHERE value > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(type, id, name, salary)\n workforce_data(name, status, value, id)\nTask: Find value from engagement_log where value exceeds the count of value from workforce_data for the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE value > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(status, value, name, date)\n sales_registry(status, name, value, code)\nTask: Select id from acquisition_log where status exists in sales_registry for the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(level, status, date, code)\n workforce_data(type, amount, name, salary)\nTask: Find amount from portfolio_index where salary exceeds the minimum salary from workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(level, code, amount, type)\n portfolio_index(value, code, level, status)\nTask: Find code from sales_queue where level appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, type, level, date)\n facility_registry(code, salary, id, type)\nTask: Select id from acquisition_log that have at least one matching row in facility_registry for the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, date, type, code)\n facility_registry(date, code, amount, status)\nTask: Find code from dispatch_queue where level appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(amount, code, salary, date)\n workforce_data(level, code, date, name)\nTask: Select value from receivables_log where amount is greater than the maximum of value in workforce_data for matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE amount > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(salary, status, code, date)\n portfolio_index(name, status, code, level)\nTask: Retrieve amount from activity_log with value above the MAX(amount) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE value > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(name, id, code, value)\n sales_queue(salary, amount, id, type)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(status, date, value, amount)\n cost_centers(type, date, amount, value)\nTask: Select value from personnel_registry where salary is greater than the minimum of amount in cost_centers for matching type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(level, code, status, value)\n personnel_registry(status, amount, code, value)\nTask: Find id from area_registry where code appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(id, code, type, value)\n stock_catalog(amount, salary, level, date)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(code, name, level, value)\n acquisition_log(id, value, type, salary)\nTask: Select salary from attribute_groups where level exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(status, id, value, amount)\n activity_log(date, name, code, salary)\nTask: Find name from sourcing_list where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, status, type, value)\n area_registry(name, date, status, level)\nTask: Find name from portfolio_index where status appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(code, name, status, type)\n sales_queue(level, name, value, id)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(id, salary, amount, date)\n personnel_registry(id, value, type, code)\nTask: Select salary from acquisition_log where type exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(level, name, date, code)\n engagement_log(amount, status, type, code)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(name, date, salary, type)\n receivables_log(salary, amount, value, code)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(name, value, status, date)\n attribute_groups(type, value, id, code)\nTask: Retrieve code from personnel_registry with value above the MIN(value) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE value > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(date, id, code, status)\n area_registry(value, date, status, level)\nTask: Select name from attribute_groups where level exists in area_registry for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(code, level, id, salary)\n journal_entries(type, salary, date, value)\nTask: Find name from area_registry where value exceeds the total salary from journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(name, value, id, status)\n sales_queue(name, id, salary, status)\nTask: Find value from area_registry where amount exceeds the maximum amount from sales_queue for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE amount > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, date, name, type)\n attribute_groups(status, date, code, name)\nTask: Find amount from sales_queue where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(id, code, amount, status)\n facility_registry(code, status, level, type)\nTask: Find name from receivables_log where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(level, date, value, type)\n engagement_log(date, id, name, value)\nTask: Find value from area_registry where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, code, amount, name)\n facility_registry(name, type, amount, status)\nTask: Select code from portfolio_index that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, amount, value, level)\n area_registry(amount, salary, date, id)\nTask: Select code from stocking_sites that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(status, code, name, type)\n receivables_log(code, value, name, status)\nTask: Retrieve code from acquisition_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(code, salary, type, name)\n acquisition_log(status, salary, type, amount)\nTask: Find name from area_registry where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(salary, type, level, status)\n engagement_log(status, id, date, type)\nTask: Select name from journal_entries where code exists in engagement_log for the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(id, level, salary, amount)\n attribute_groups(code, type, amount, value)\nTask: Find name from area_registry where level appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(date, status, level, id)\n sales_queue(id, code, level, type)\nTask: Select code from stocking_sites where level exists in sales_queue for the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(amount, code, level, status)\n portfolio_index(salary, date, id, type)\nTask: Retrieve value from dispatch_queue whose type is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(id, status, salary, level)\n sales_registry(level, amount, id, name)\nTask: Retrieve amount from area_registry with value above the SUM(value) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE value > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(value, type, date, name)\n attribute_groups(status, code, level, type)\nTask: Retrieve value from personnel_registry whose code is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(date, salary, id, type)\n personnel_registry(amount, value, id, type)\nTask: Select amount from attribute_groups where salary is greater than the minimum of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "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}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, status, value, level)\n dispatch_queue(amount, level, date, salary)\nTask: Find code from sourcing_list where salary exceeds the count of salary from dispatch_queue for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(type, code, status, name)\n activity_log(name, date, id, salary)\nTask: Select name from workforce_data where type exists in activity_log for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, code, amount, id)\n dispatch_queue(status, id, code, type)\nTask: Select id from acquisition_log where amount is greater than the maximum of salary in dispatch_queue for matching id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(code, type, salary, level)\n activity_log(status, level, amount, salary)\nTask: Find salary from personnel_registry where type appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(salary, type, level, status)\n portfolio_index(salary, amount, name, code)\nTask: Select id from personnel_registry where id exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(level, status, code, value)\n sales_registry(type, salary, date, id)\nTask: Select name from workforce_data where amount is greater than the count of of salary in sales_registry for matching status.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(id, code, level, date)\n engagement_log(id, type, status, name)\nTask: Select id from facility_registry that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(date, name, code, value)\n stock_catalog(amount, name, code, id)\nTask: Find id from sales_queue where id appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(salary, name, value, status)\n sourcing_list(amount, name, value, status)\nTask: Retrieve code from area_registry whose type is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(status, value, name, code)\n engagement_log(date, level, status, id)\nTask: Retrieve name from facility_registry whose code is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, type, status, amount)\n cost_centers(name, code, type, amount)\nTask: Find amount from stock_catalog where level appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, value, salary, name)\n journal_entries(value, id, status, amount)\nTask: Select code from dispatch_queue where type exists in journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(code, status, value, type)\n attribute_groups(id, name, status, code)\nTask: Find name from acquisition_log where value exceeds the count of amount from attribute_groups for the same level.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(amount, salary, date, value)\n workforce_data(salary, type, name, value)\nTask: Retrieve amount from facility_registry with salary above the MIN(amount) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(date, code, id, salary)\n stock_catalog(value, status, level, name)\nTask: Select amount from sourcing_list where level exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS empl\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(level, salary, status, code)\n sales_registry(status, id, salary, code)\nTask: Retrieve name from portfolio_index whose level is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(status, date, level, amount)\n sales_registry(value, type, code, amount)\nTask: Select value from sales_queue where type exists in sales_registry for the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(id, status, amount, date)\n personnel_registry(id, value, status, code)\nTask: Select id from acquisition_log where amount is greater than the average of value in personnel_registry for matching status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE amount > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(value, amount, level, status)\n sales_registry(type, value, code, id)\nTask: Select code from portfolio_index where id exists in sales_registry for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(value, id, type, status)\n sales_registry(date, value, id, level)\nTask: Retrieve code from receivables_log with amount above the MAX(value) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS usr\nWHERE amount > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(code, id, type, status)\n portfolio_index(level, amount, code, salary)\nTask: Retrieve code from workforce_data with amount above the COUNT(salary) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(level, name, value, date)\n stock_catalog(type, value, date, amount)\nTask: Select id from workforce_data that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(code, status, date, salary)\n sourcing_list(code, name, id, salary)\nTask: Select salary from portfolio_index where level exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(date, type, id, value)\n cost_centers(value, level, date, salary)\nTask: Find name from sales_queue where amount exceeds the maximum amount from cost_centers for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(date, level, code, id)\n activity_log(id, value, date, type)\nTask: Select amount from stock_catalog where id exists in activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(amount, code, salary, value)\n portfolio_index(date, id, value, level)\nTask: Select value from stock_catalog where value is greater than the total of amount in portfolio_index for matching type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS emp\nWHERE value > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(type, amount, id, salary)\n cost_centers(value, status, name, id)\nTask: Retrieve amount from personnel_registry whose status is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(value, amount, level, type)\n stock_catalog(level, value, code, id)\nTask: Retrieve name from acquisition_log whose code is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(date, code, type, status)\n personnel_registry(salary, date, type, name)\nTask: Find code from attribute_groups where amount exceeds the maximum value from personnel_registry for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE amount > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(amount, status, name, code)\n engagement_log(salary, amount, level, status)\nTask: Select name from journal_entries that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(level, type, name, date)\n workforce_data(salary, amount, code, type)\nTask: Find salary from engagement_log where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(level, id, name, value)\n stock_catalog(level, id, value, date)\nTask: Find code from sales_queue where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(amount, level, name, salary)\n activity_log(name, code, type, value)\nTask: Find code from portfolio_index where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(type, level, salary, amount)\n area_registry(value, salary, level, name)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(level, type, amount, status)\n facility_registry(type, id, level, status)\nTask: Select code from cost_centers where value is greater than the average of salary in facility_registry for matching status.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(code, status, amount, level)\n dispatch_queue(salary, id, level, type)\nTask: Find salary from sales_registry where level appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(code, level, salary, amount)\n facility_registry(status, value, type, level)\nTask: Find value from journal_entries where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(level, name, amount, type)\n facility_registry(salary, name, type, code)\nTask: Retrieve id from activity_log with value above the SUM(amount) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE value > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(date, level, id, name)\n receivables_log(type, name, value, salary)\nTask: Retrieve code from sales_queue whose level is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(status, id, salary, code)\n facility_registry(date, code, value, type)\nTask: Find value from stocking_sites where salary exceeds the total amount from facility_registry for the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(id, status, amount, code)\n engagement_log(name, level, type, value)\nTask: Select code from activity_log where salary is greater than the maximum of value in engagement_log for matching level.\nSQL:", "sql": "SELECT code FROM activity_log AS usr\nWHERE salary > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(value, amount, name, status)\n stock_catalog(id, status, amount, level)\nTask: Select amount from sales_registry where amount is greater than the minimum of amount in stock_catalog for matching id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(level, status, salary, type)\n facility_registry(value, code, date, level)\nTask: Retrieve id from cost_centers with amount above the MIN(salary) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(amount, name, code, level)\n sales_registry(date, status, type, code)\nTask: Find amount from acquisition_log where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(name, date, id, status)\n sourcing_list(date, type, level, value)\nTask: Select id from facility_registry where amount is greater than the minimum of amount in sourcing_list for matching type.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(id, status, type, code)\n receivables_log(type, amount, name, id)\nTask: Select name from facility_registry that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(status, name, level, salary)\n stock_catalog(name, level, salary, type)\nTask: Retrieve name from facility_registry whose status is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, salary, value, code)\n sourcing_list(salary, date, id, type)\nTask: Find amount from journal_entries where level appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS ord\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(status, id, value, date)\n personnel_registry(code, salary, type, name)\nTask: Select amount from receivables_log where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(status, salary, type, id)\n stock_catalog(type, salary, value, code)\nTask: Find code from engagement_log where value exceeds the count of value from stock_catalog for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE value > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(amount, code, id, name)\n area_registry(salary, status, level, date)\nTask: Find code from journal_entries where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(name, date, type, amount)\n workforce_data(level, name, status, date)\nTask: Select amount from cost_centers where value is greater than the count of of salary in workforce_data for matching id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(value, salary, name, id)\n workforce_data(name, amount, type, date)\nTask: Find id from stocking_sites where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, date, code, salary)\n acquisition_log(value, code, id, date)\nTask: Retrieve value from dispatch_queue with amount above the MIN(salary) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(code, date, amount, name)\n personnel_registry(value, id, name, date)\nTask: Select value from stock_catalog that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, name, status, id)\n sourcing_list(amount, status, id, name)\nTask: Find value from stock_catalog where code appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(status, salary, value, date)\n sales_registry(salary, value, code, id)\nTask: Retrieve amount from activity_log that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(date, type, salary, id)\n cost_centers(status, date, code, id)\nTask: Find value from stocking_sites where value exceeds the total salary from cost_centers for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE value > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(type, id, level, status)\n attribute_groups(date, level, salary, type)\nTask: Select code from sourcing_list where id exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(value, level, amount, status)\n facility_registry(salary, id, level, date)\nTask: Retrieve value from stocking_sites with salary above the COUNT(salary) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(date, code, amount, id)\n area_registry(code, amount, salary, type)\nTask: Select salary from portfolio_index where level exists in area_registry for the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(status, code, type, level)\n cost_centers(value, date, type, amount)\nTask: Find name from sales_queue where value exceeds the average salary from cost_centers for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE value > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, level, id, type)\n sales_registry(salary, status, level, id)\nTask: Select value from sourcing_list where id exists in sales_registry for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(amount, code, level, name)\n sales_registry(id, status, value, amount)\nTask: Find amount from sales_queue where status appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(status, code, level, id)\n stocking_sites(amount, id, code, level)\nTask: Find id from personnel_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(id, amount, type, date)\n area_registry(name, value, level, id)\nTask: Retrieve code from cost_centers whose status is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(code, value, salary, name)\n area_registry(salary, id, value, status)\nTask: Find value from dispatch_queue where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, type, level, code)\n activity_log(name, level, status, salary)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(level, salary, amount, value)\n receivables_log(id, type, value, date)\nTask: Select salary from area_registry where value is greater than the maximum of value in receivables_log for matching code.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE value > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(amount, code, salary, date)\n sales_queue(date, status, salary, value)\nTask: Retrieve amount from workforce_data that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(id, code, level, date)\n stock_catalog(salary, name, status, code)\nTask: Retrieve salary from attribute_groups with amount above the COUNT(salary) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE amount > (\n SELECT COUNT(salary) FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(level, type, name, status)\n dispatch_queue(status, level, code, salary)\nTask: Retrieve amount from cost_centers with salary above the AVG(value) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE salary > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(value, code, status, salary)\n stock_catalog(value, type, id, salary)\nTask: Find salary from sales_registry where salary exceeds the average value from stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE salary > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(amount, name, id, salary)\n activity_log(amount, id, name, value)\nTask: Select code from journal_entries that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(name, type, salary, id)\n acquisition_log(salary, id, level, name)\nTask: Find id from workforce_data where type appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(id, date, type, salary)\n workforce_data(code, type, status, level)\nTask: Select value from sales_registry where amount is greater than the total of value in workforce_data for matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE amount > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(id, status, type, amount)\n attribute_groups(amount, status, name, date)\nTask: Find amount from stock_catalog where amount exceeds the total salary from attribute_groups for the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(amount, level, type, name)\n cost_centers(value, code, status, type)\nTask: Find amount from portfolio_index where amount exceeds the average value from cost_centers for the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE amount > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(level, amount, code, type)\n personnel_registry(level, id, date, status)\nTask: Select amount from stock_catalog where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(salary, code, amount, status)\n acquisition_log(date, value, level, name)\nTask: Find amount from cost_centers where amount exceeds the minimum value from acquisition_log for the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS ord\nWHERE amount > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(level, type, name, date)\n sales_queue(name, status, type, salary)\nTask: Find name from acquisition_log where level appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, code, id, value)\n personnel_registry(status, code, name, salary)\nTask: Find amount from stock_catalog where amount exceeds the minimum value from personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(amount, type, date, salary)\n personnel_registry(code, level, amount, date)\nTask: Find amount from activity_log where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(level, name, date, status)\n sourcing_list(amount, date, type, salary)\nTask: Select amount from engagement_log where type exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(code, level, id, amount)\n portfolio_index(id, amount, name, code)\nTask: Select salary from workforce_data where status exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, id, status, date)\n workforce_data(value, salary, id, amount)\nTask: Select salary from personnel_registry where level exists in workforce_data for the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(id, date, amount, code)\n sourcing_list(value, name, type, amount)\nTask: Retrieve id from activity_log that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(type, id, date, level)\n dispatch_queue(code, date, amount, type)\nTask: Find salary from sales_queue where status appears in dispatch_queue entries with matching code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS empl\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(id, date, name, code)\n workforce_data(id, amount, name, date)\nTask: Select code from sales_registry where amount is greater than the minimum of salary in workforce_data for matching id.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(id, status, name, salary)\n facility_registry(type, id, value, status)\nTask: Find value from acquisition_log where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(type, id, amount, salary)\n dispatch_queue(name, level, amount, salary)\nTask: Find id from personnel_registry where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(value, salary, status, date)\n workforce_data(code, level, amount, type)\nTask: Retrieve salary from engagement_log that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(type, status, code, amount)\n facility_registry(name, value, status, code)\nTask: Find salary from engagement_log where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(level, salary, name, code)\n facility_registry(code, level, value, date)\nTask: Find salary from workforce_data where amount exceeds the minimum value from facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE amount > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(id, date, type, name)\n sales_registry(name, status, amount, level)\nTask: Select salary from attribute_groups where level exists in sales_registry for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(id, amount, code, name)\n acquisition_log(code, value, level, type)\nTask: Retrieve salary from stocking_sites with amount above the SUM(salary) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(level, salary, id, amount)\n area_registry(name, level, value, status)\nTask: Find amount from activity_log where id appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(id, code, status, name)\n cost_centers(status, value, date, name)\nTask: Retrieve value from acquisition_log with salary above the MIN(value) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE salary > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(date, amount, status, code)\n workforce_data(amount, salary, value, code)\nTask: Retrieve amount from cost_centers whose type is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(salary, level, value, name)\n personnel_registry(value, salary, name, level)\nTask: Retrieve name from cost_centers with amount above the COUNT(salary) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(id, type, date, value)\n workforce_data(value, name, date, status)\nTask: Select name from acquisition_log that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(name, amount, date, type)\n acquisition_log(type, value, code, status)\nTask: Find id from receivables_log where level appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(status, code, name, amount)\n area_registry(status, salary, date, level)\nTask: Select name from facility_registry where value is greater than the minimum of amount in area_registry for matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(name, value, amount, level)\n cost_centers(level, code, name, amount)\nTask: Find salary from area_registry where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(value, salary, level, name)\n facility_registry(amount, salary, status, level)\nTask: Find name from portfolio_index where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(amount, id, salary, date)\n receivables_log(value, status, id, amount)\nTask: Find code from activity_log where salary exceeds the maximum salary from receivables_log for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(name, salary, id, level)\n engagement_log(amount, name, date, id)\nTask: Find amount from attribute_groups where value exceeds the maximum salary from engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE value > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(status, amount, code, date)\n sales_registry(code, type, value, salary)\nTask: Retrieve value from engagement_log whose type is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(type, status, salary, amount)\n facility_registry(amount, salary, name, value)\nTask: Select code from area_registry where value is greater than the maximum of salary in facility_registry for matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE value > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(type, name, date, level)\n workforce_data(value, code, id, date)\nTask: Retrieve value from stocking_sites with value above the MIN(amount) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE value > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(status, level, id, value)\n acquisition_log(level, value, salary, status)\nTask: Retrieve amount from portfolio_index with salary above the MAX(salary) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE salary > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(code, value, name, salary)\n workforce_data(salary, status, date, id)\nTask: Find id from receivables_log where level appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(name, value, type, id)\n facility_registry(code, value, id, date)\nTask: Find amount from personnel_registry where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(name, salary, code, id)\n engagement_log(name, date, level, value)\nTask: Find code from journal_entries where level appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(value, id, level, salary)\n sourcing_list(amount, salary, date, level)\nTask: Find name from stocking_sites where salary exceeds the average salary from sourcing_list for the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(amount, name, id, value)\n receivables_log(type, status, date, id)\nTask: Retrieve value from activity_log with value above the COUNT(value) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE value > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(type, status, name, salary)\n personnel_registry(value, amount, salary, level)\nTask: Retrieve id from attribute_groups with value above the AVG(salary) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE value > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(value, date, status, salary)\n personnel_registry(id, value, code, date)\nTask: Select salary from sales_queue where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, amount, date, type)\n cost_centers(level, code, id, status)\nTask: Find salary from facility_registry where code appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(code, status, value, date)\n portfolio_index(type, date, status, level)\nTask: Find amount from stock_catalog where id appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(amount, status, id, type)\n sales_queue(status, type, amount, level)\nTask: Retrieve value from journal_entries whose type is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(value, salary, amount, status)\n sales_queue(name, id, code, salary)\nTask: Retrieve amount from engagement_log with salary above the MIN(salary) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(amount, value, date, code)\n sales_queue(salary, amount, level, status)\nTask: Find name from facility_registry where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(name, date, value, type)\n portfolio_index(status, id, name, amount)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(name, level, status, date)\n journal_entries(amount, type, id, date)\nTask: Select id from engagement_log that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(id, status, name, code)\n sales_queue(value, name, amount, date)\nTask: Select id from area_registry where type exists in sales_queue for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(name, code, status, date)\n sourcing_list(level, date, code, amount)\nTask: Retrieve name from receivables_log with salary above the COUNT(salary) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(code, type, value, id)\n cost_centers(amount, salary, code, status)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(name, type, value, code)\n facility_registry(name, id, level, status)\nTask: Select value from workforce_data where value is greater than the average of value in facility_registry for matching code.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(status, value, type, id)\n journal_entries(level, code, id, value)\nTask: Find value from cost_centers where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(value, level, amount, status)\n acquisition_log(date, salary, type, name)\nTask: Retrieve value from area_registry that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, id, code, status)\n personnel_registry(type, date, status, amount)\nTask: Select id from attribute_groups that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, value, name, id)\n sourcing_list(salary, code, level, amount)\nTask: Select salary from dispatch_queue where salary is greater than the total of salary in sourcing_list for matching id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(code, name, date, type)\n facility_registry(type, id, date, salary)\nTask: Find id from area_registry where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(date, value, name, id)\n area_registry(date, code, amount, type)\nTask: Find salary from sales_queue where status appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(level, amount, status, id)\n portfolio_index(status, amount, id, value)\nTask: Select id from cost_centers that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(salary, amount, id, type)\n workforce_data(type, value, date, name)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(date, status, name, id)\n cost_centers(amount, status, code, date)\nTask: Retrieve value from attribute_groups whose status is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(salary, id, type, code)\n sales_queue(date, name, type, value)\nTask: Select salary from cost_centers where id exists in sales_queue for the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS emp\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(amount, date, name, code)\n activity_log(salary, date, value, code)\nTask: Retrieve name from stock_catalog whose id is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(code, name, amount, salary)\n facility_registry(salary, level, type, id)\nTask: Find amount from workforce_data where value exceeds the average salary from facility_registry for the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, id, status, amount)\n sourcing_list(type, amount, level, value)\nTask: Find salary from portfolio_index where status appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(salary, value, status, id)\n receivables_log(amount, code, type, date)\nTask: Retrieve value from sales_queue with salary above the SUM(salary) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE salary > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(name, level, amount, salary)\n acquisition_log(amount, value, id, level)\nTask: Find value from engagement_log where amount exceeds the maximum amount from acquisition_log for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(type, date, value, name)\n acquisition_log(code, value, name, salary)\nTask: Select id from journal_entries where salary is greater than the count of of value in acquisition_log for matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(status, code, date, level)\n cost_centers(amount, id, name, code)\nTask: Select value from area_registry where type exists in cost_centers for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(value, id, salary, status)\n stock_catalog(date, id, amount, status)\nTask: Retrieve code from activity_log whose level is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(date, code, level, status)\n attribute_groups(code, value, salary, level)\nTask: Select salary from sourcing_list where amount is greater than the count of of salary in attribute_groups for matching status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(status, salary, id, type)\n stock_catalog(type, amount, code, name)\nTask: Find value from cost_centers where id appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(code, status, name, id)\n sourcing_list(code, name, type, value)\nTask: Find value from journal_entries where value exceeds the total salary from sourcing_list for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE value > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(type, amount, salary, name)\n journal_entries(type, level, date, value)\nTask: Find code from acquisition_log where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(name, type, status, value)\n personnel_registry(code, level, value, amount)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(value, salary, level, amount)\n area_registry(value, name, date, salary)\nTask: Find name from stocking_sites where code appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(date, level, name, salary)\n stocking_sites(value, salary, amount, status)\nTask: Select name from sourcing_list where status exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(level, name, salary, type)\n engagement_log(type, code, date, salary)\nTask: Find salary from sales_queue where id appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(code, type, date, value)\n portfolio_index(amount, level, code, status)\nTask: Retrieve value from facility_registry whose level is found in portfolio_index rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(id, value, type, name)\n acquisition_log(name, id, value, status)\nTask: Retrieve name from area_registry that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(name, amount, level, status)\n cost_centers(status, name, code, value)\nTask: Select amount from facility_registry that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(salary, value, level, date)\n sales_queue(code, value, level, amount)\nTask: Select name from stocking_sites where id exists in sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(value, id, amount, name)\n receivables_log(amount, code, id, name)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(name, status, date, salary)\n personnel_registry(code, amount, status, level)\nTask: Retrieve salary from sales_queue with value above the MAX(salary) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE value > (\n SELECT MAX(salary) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(name, id, salary, code)\n activity_log(value, salary, date, status)\nTask: Select code from dispatch_queue where salary is greater than the maximum of salary in activity_log for matching status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, value, id, code)\n cost_centers(id, type, amount, salary)\nTask: Retrieve id from stocking_sites whose code is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(level, amount, code, salary)\n dispatch_queue(id, code, name, amount)\nTask: Select amount from cost_centers where value is greater than the average of value in dispatch_queue for matching type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE value > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(code, level, status, date)\n facility_registry(status, value, salary, level)\nTask: Select value from sourcing_list where salary is greater than the average of amount in facility_registry for matching status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(amount, code, date, name)\n dispatch_queue(code, name, id, value)\nTask: Select value from receivables_log where type exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(id, type, code, level)\n sales_queue(value, name, code, salary)\nTask: Find id from engagement_log where level appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(type, id, value, code)\n personnel_registry(level, type, date, status)\nTask: Find amount from stocking_sites where salary exceeds the minimum salary from personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, date, amount, name)\n dispatch_queue(name, code, status, type)\nTask: Find name from acquisition_log where value exceeds the maximum amount from dispatch_queue for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(type, code, status, salary)\n acquisition_log(amount, type, value, name)\nTask: Select salary from journal_entries where status exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, type, code, value)\n portfolio_index(type, id, code, date)\nTask: Select salary from facility_registry where type exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, name, value, status)\n acquisition_log(code, type, level, status)\nTask: Find id from stock_catalog where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, date, level, name)\n cost_centers(id, type, code, date)\nTask: Find amount from engagement_log where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(date, level, salary, value)\n sourcing_list(date, status, level, salary)\nTask: Select value from facility_registry that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(salary, id, type, level)\n acquisition_log(level, name, type, status)\nTask: Find name from area_registry where code appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(status, id, amount, date)\n engagement_log(code, level, amount, date)\nTask: Select amount from activity_log that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(salary, value, id, type)\n stocking_sites(id, level, type, code)\nTask: Find id from facility_registry where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(value, status, amount, date)\n sales_registry(id, status, level, code)\nTask: Find id from sales_queue where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, status, name, id)\n facility_registry(value, status, id, level)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(date, code, level, id)\n sales_registry(value, code, salary, level)\nTask: Find code from area_registry where value exceeds the total amount from sales_registry for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE value > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(type, value, level, status)\n attribute_groups(status, code, id, type)\nTask: Find amount from personnel_registry where salary exceeds the count of value from attribute_groups for the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE salary > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(status, name, code, salary)\n journal_entries(code, id, salary, value)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(code, amount, salary, value)\n attribute_groups(level, code, name, date)\nTask: Select name from facility_registry where type exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(level, value, date, status)\n personnel_registry(name, type, code, value)\nTask: Find name from activity_log where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(code, type, value, salary)\n receivables_log(salary, value, code, type)\nTask: Select id from stock_catalog where value is greater than the average of amount in receivables_log for matching status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE value > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(amount, id, status, date)\n attribute_groups(id, salary, code, date)\nTask: Retrieve code from area_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(salary, type, amount, value)\n journal_entries(amount, date, salary, value)\nTask: Find code from workforce_data where level appears in journal_entries entries with matching code.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, status, level, value)\n area_registry(salary, type, code, level)\nTask: Retrieve amount from dispatch_queue whose level is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(id, amount, name, value)\n sales_registry(value, code, name, level)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(status, id, date, amount)\n engagement_log(salary, status, code, level)\nTask: Retrieve amount from workforce_data whose type is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(date, amount, level, id)\n acquisition_log(level, id, date, status)\nTask: Retrieve salary from sales_queue whose level is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(code, salary, status, name)\n journal_entries(date, id, salary, type)\nTask: Find value from facility_registry where code appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(code, id, salary, type)\n facility_registry(date, level, value, salary)\nTask: Select salary from engagement_log where status exists in facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(level, date, amount, id)\n portfolio_index(type, name, amount, code)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(code, status, value, name)\n attribute_groups(type, code, status, date)\nTask: Retrieve amount from stocking_sites whose type is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(level, type, value, id)\n sales_registry(name, code, salary, id)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(salary, status, value, type)\n receivables_log(type, name, id, level)\nTask: Retrieve salary from sales_registry whose status is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "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}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(id, status, date, amount)\n portfolio_index(value, type, amount, name)\nTask: Find id from engagement_log where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(name, level, value, salary)\n facility_registry(amount, status, type, level)\nTask: Find value from journal_entries where type appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(amount, type, level, value)\n cost_centers(level, date, name, salary)\nTask: Retrieve name from portfolio_index with value above the COUNT(value) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE value > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(type, code, amount, id)\n personnel_registry(date, code, type, value)\nTask: Select id from area_registry that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(date, salary, level, status)\n area_registry(type, amount, code, id)\nTask: Retrieve value from dispatch_queue whose level is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(code, amount, level, name)\n sales_registry(status, code, level, id)\nTask: Select name from stocking_sites where salary is greater than the total of value in sales_registry for matching level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE salary > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(type, value, level, status)\n dispatch_queue(status, date, value, level)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(name, date, level, id)\n receivables_log(name, level, id, type)\nTask: Find code from engagement_log where level appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(code, amount, id, level)\n workforce_data(amount, date, id, code)\nTask: Select code from area_registry where type exists in workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(name, status, level, code)\n portfolio_index(level, amount, value, code)\nTask: Find value from sales_registry where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(id, type, code, amount)\n activity_log(code, level, value, amount)\nTask: Select code from attribute_groups where level exists in activity_log for the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, type, value, level)\n sourcing_list(name, level, value, amount)\nTask: Find amount from receivables_log where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(value, salary, code, level)\n sourcing_list(name, date, code, id)\nTask: Find code from facility_registry where salary exceeds the average amount from sourcing_list for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(name, value, code, id)\n sourcing_list(id, level, status, amount)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(salary, code, type, id)\n personnel_registry(status, level, value, date)\nTask: Find value from dispatch_queue where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(type, id, date, value)\n sales_registry(name, date, id, salary)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, amount, salary, type)\n workforce_data(amount, value, code, date)\nTask: Find amount from acquisition_log where level appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(value, amount, code, level)\n sales_queue(level, id, value, type)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(code, value, id, type)\n dispatch_queue(date, status, id, level)\nTask: Retrieve name from cost_centers with amount above the COUNT(value) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(date, salary, status, level)\n cost_centers(type, id, level, status)\nTask: Select value from attribute_groups where id exists in cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(amount, level, type, id)\n acquisition_log(name, status, code, level)\nTask: Select value from engagement_log that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(salary, code, type, id)\n stock_catalog(value, id, code, salary)\nTask: Retrieve code from engagement_log whose code is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS emp\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(salary, amount, type, status)\n personnel_registry(code, type, level, id)\nTask: Select value from journal_entries where amount is greater than the average of amount in personnel_registry for matching type.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(value, status, salary, level)\n sourcing_list(level, type, status, amount)\nTask: Retrieve value from receivables_log with amount above the SUM(value) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE amount > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(type, code, id, status)\n journal_entries(type, value, salary, level)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, amount, name, value)\n sales_queue(date, value, level, name)\nTask: Select id from dispatch_queue that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(id, level, name, salary)\n cost_centers(type, code, amount, id)\nTask: Find value from engagement_log where salary exceeds the minimum salary from cost_centers for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(salary, value, type, id)\n sales_registry(code, id, value, date)\nTask: Select value from sales_queue where salary is greater than the total of value in sales_registry for matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE salary > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(type, value, amount, status)\n facility_registry(amount, date, level, salary)\nTask: Select id from journal_entries that have at least one matching row in facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(date, name, salary, level)\n stock_catalog(date, value, amount, type)\nTask: Select amount from portfolio_index where salary is greater than the maximum of value in stock_catalog for matching status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(id, level, amount, status)\n cost_centers(salary, value, level, id)\nTask: Find id from stocking_sites where amount exceeds the minimum salary from cost_centers for the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(name, code, value, date)\n cost_centers(code, amount, id, level)\nTask: Select amount from engagement_log where code exists in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(amount, level, value, code)\n stocking_sites(type, code, name, value)\nTask: Retrieve code from cost_centers whose level is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS dept\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(code, value, level, type)\n cost_centers(code, value, amount, salary)\nTask: Select salary from personnel_registry that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(name, id, date, salary)\n facility_registry(id, type, code, amount)\nTask: Retrieve amount from workforce_data whose status is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(name, amount, value, salary)\n sales_registry(id, type, date, name)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(amount, code, id, type)\n stocking_sites(level, salary, date, name)\nTask: Select salary from journal_entries that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(status, amount, id, type)\n activity_log(date, code, value, type)\nTask: Find amount from receivables_log where amount exceeds the total value from activity_log for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE amount > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(amount, type, salary, code)\n workforce_data(amount, type, date, name)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(id, level, code, value)\n personnel_registry(date, name, level, status)\nTask: Retrieve code from cost_centers whose level is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(status, amount, value, id)\n dispatch_queue(type, salary, value, name)\nTask: Retrieve value from engagement_log with value above the AVG(amount) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE value > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, id, level, salary)\n area_registry(code, id, value, type)\nTask: Find salary from dispatch_queue where type appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, status, level, type)\n facility_registry(name, salary, date, level)\nTask: Find name from sourcing_list where level appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(status, type, value, amount)\n dispatch_queue(type, level, date, id)\nTask: Retrieve id from journal_entries whose status is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, salary, date, type)\n acquisition_log(code, date, name, level)\nTask: Retrieve amount from dispatch_queue whose type is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(date, salary, value, name)\n sales_queue(type, id, name, salary)\nTask: Find name from cost_centers where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(name, salary, value, code)\n dispatch_queue(amount, name, date, value)\nTask: Select code from facility_registry that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, status, name, code)\n facility_registry(type, name, salary, date)\nTask: Retrieve salary from sales_queue whose status is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(value, id, type, name)\n workforce_data(id, name, salary, type)\nTask: Find id from personnel_registry where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, value, date, salary)\n sales_registry(date, value, name, id)\nTask: Retrieve name from dispatch_queue with amount above the MIN(value) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(salary, value, level, id)\n cost_centers(salary, value, level, code)\nTask: Retrieve salary from journal_entries whose level is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(type, code, salary, id)\n personnel_registry(amount, salary, status, type)\nTask: Retrieve salary from journal_entries with amount above the SUM(amount) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(id, amount, code, value)\n sales_registry(salary, level, date, type)\nTask: Retrieve name from receivables_log with value above the SUM(amount) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE value > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(date, status, name, id)\n stock_catalog(value, id, level, date)\nTask: Select code from acquisition_log where code exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(id, level, name, type)\n journal_entries(value, amount, level, name)\nTask: Select name from stocking_sites where status exists in journal_entries for the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(name, salary, code, id)\n journal_entries(code, date, salary, amount)\nTask: Select name from workforce_data where type exists in journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(value, type, date, id)\n journal_entries(status, date, code, value)\nTask: Find salary from activity_log where code appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT salary FROM activity_log AS empl\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(salary, name, code, status)\n stock_catalog(name, salary, value, code)\nTask: Retrieve code from dispatch_queue with amount above the MAX(amount) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(level, salary, amount, value)\n stock_catalog(salary, status, id, amount)\nTask: Retrieve value from sales_queue whose type is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(level, name, status, amount)\n sales_queue(type, date, salary, level)\nTask: Retrieve name from engagement_log whose code is found in sales_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(code, status, date, salary)\n acquisition_log(name, type, status, level)\nTask: Find code from dispatch_queue where salary exceeds the count of value from acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, code, id, status)\n activity_log(code, id, value, level)\nTask: Retrieve code from dispatch_queue whose status is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(code, status, id, name)\n dispatch_queue(value, level, code, name)\nTask: Find name from engagement_log where id appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(level, salary, type, name)\n dispatch_queue(value, status, salary, date)\nTask: Select amount from sales_queue that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(amount, value, level, type)\n acquisition_log(id, amount, name, status)\nTask: Find amount from journal_entries where level appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(name, code, amount, status)\n dispatch_queue(name, id, salary, code)\nTask: Find id from engagement_log where status appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(name, status, level, amount)\n area_registry(type, id, level, code)\nTask: Select amount from engagement_log where status exists in area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(code, status, name, value)\n dispatch_queue(id, salary, level, amount)\nTask: Retrieve code from acquisition_log whose id is found in dispatch_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(code, date, status, salary)\n acquisition_log(status, type, date, id)\nTask: Find name from dispatch_queue where amount exceeds the minimum salary from acquisition_log for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(date, amount, name, value)\n personnel_registry(status, amount, name, level)\nTask: Select name from dispatch_queue where amount is greater than the minimum of salary in personnel_registry for matching id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE amount > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(value, id, amount, type)\n activity_log(amount, type, date, status)\nTask: Retrieve code from area_registry whose id is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, name, status, code)\n engagement_log(date, status, amount, value)\nTask: Select code from personnel_registry where status exists in engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(code, type, status, salary)\n workforce_data(salary, amount, code, type)\nTask: Find code from portfolio_index where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(code, name, amount, salary)\n dispatch_queue(id, type, salary, amount)\nTask: Select code from stock_catalog that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(id, level, amount, value)\n stocking_sites(status, date, type, code)\nTask: Find name from sales_queue where type appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(status, amount, level, code)\n stocking_sites(code, amount, type, id)\nTask: Retrieve salary from acquisition_log whose code is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(id, level, type, status)\n personnel_registry(value, type, date, salary)\nTask: Retrieve id from workforce_data whose type is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(name, level, id, code)\n personnel_registry(value, salary, type, level)\nTask: Find value from activity_log where amount exceeds the count of value from personnel_registry for the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(value, code, salary, level)\n workforce_data(salary, id, amount, type)\nTask: Find amount from personnel_registry where value exceeds the count of value from workforce_data for the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE value > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(type, id, value, status)\n sales_registry(id, name, value, type)\nTask: Select value from sales_queue that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(status, salary, date, type)\n sales_registry(code, level, name, amount)\nTask: Find value from stocking_sites where salary exceeds the average value from sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE salary > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(amount, value, code, status)\n receivables_log(name, type, code, status)\nTask: Retrieve amount from cost_centers with amount above the SUM(amount) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, value, level, type)\n engagement_log(date, value, name, id)\nTask: Find code from dispatch_queue where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(status, type, value, salary)\n workforce_data(date, name, level, salary)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(name, salary, id, code)\n acquisition_log(salary, code, name, status)\nTask: Select salary from receivables_log where amount is greater than the total of value in acquisition_log for matching id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE amount > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(level, code, status, salary)\n dispatch_queue(status, id, date, amount)\nTask: Select salary from cost_centers where code exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(name, type, status, code)\n personnel_registry(value, salary, status, level)\nTask: Find code from dispatch_queue where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(date, value, level, id)\n facility_registry(id, code, salary, type)\nTask: Retrieve amount from acquisition_log with salary above the AVG(amount) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(status, type, id, name)\n facility_registry(name, amount, salary, value)\nTask: Retrieve value from personnel_registry with amount above the COUNT(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(name, amount, type, level)\n personnel_registry(level, amount, status, code)\nTask: Select id from sales_queue where code exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(date, level, salary, type)\n area_registry(id, amount, date, name)\nTask: Select code from cost_centers where salary is greater than the average of value in area_registry for matching code.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE salary > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, type, code, level)\n acquisition_log(status, type, id, code)\nTask: Retrieve code from dispatch_queue with salary above the MAX(value) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(status, id, name, level)\n personnel_registry(id, salary, date, code)\nTask: Select amount from sourcing_list where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(id, date, type, amount)\n activity_log(value, code, level, salary)\nTask: Find code from receivables_log where type appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(id, date, type, status)\n facility_registry(status, id, date, name)\nTask: Find id from stocking_sites where salary exceeds the total value from facility_registry for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE salary > (\n SELECT SUM(value) FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, value, level, date)\n dispatch_queue(value, salary, type, level)\nTask: Retrieve code from activity_log whose id is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(amount, salary, name, status)\n sourcing_list(name, level, salary, amount)\nTask: Find code from sales_registry where value exceeds the total salary from sourcing_list for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE value > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(value, id, level, type)\n stocking_sites(status, salary, id, amount)\nTask: Select salary from activity_log where amount is greater than the total of salary in stocking_sites for matching id.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(salary, level, status, type)\n portfolio_index(amount, level, salary, value)\nTask: Retrieve code from activity_log with value above the AVG(salary) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE value > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(date, name, code, level)\n sourcing_list(level, id, amount, date)\nTask: Find salary from journal_entries where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, type, date, name)\n attribute_groups(level, salary, amount, value)\nTask: Retrieve name from portfolio_index whose status is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(id, level, type, amount)\n receivables_log(id, code, type, value)\nTask: Retrieve amount from sourcing_list with salary above the AVG(value) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE salary > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(id, code, salary, date)\n sales_registry(id, value, date, salary)\nTask: Find name from cost_centers where level appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, name, value, code)\n facility_registry(id, date, code, status)\nTask: Find amount from acquisition_log where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(level, type, salary, id)\n workforce_data(name, id, salary, type)\nTask: Find amount from area_registry where level appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(type, level, code, salary)\n activity_log(amount, status, value, salary)\nTask: Find salary from area_registry where id appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(id, name, salary, level)\n engagement_log(type, amount, value, level)\nTask: Find code from activity_log where salary exceeds the average value from engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE salary > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(type, amount, code, date)\n sales_queue(date, amount, level, status)\nTask: Select name from stocking_sites where type exists in sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS prod\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(type, salary, id, value)\n attribute_groups(status, amount, salary, value)\nTask: Find salary from cost_centers where value exceeds the average salary from attribute_groups for the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE value > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(id, level, amount, name)\n dispatch_queue(code, value, type, date)\nTask: Retrieve code from portfolio_index with value above the MAX(value) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE value > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(type, value, level, code)\n portfolio_index(id, name, level, value)\nTask: Select id from dispatch_queue that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(amount, date, id, status)\n facility_registry(amount, name, code, level)\nTask: Find amount from personnel_registry where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(id, salary, level, code)\n activity_log(name, id, status, salary)\nTask: Select amount from sales_queue where code exists in activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(level, code, type, date)\n journal_entries(level, salary, amount, date)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(code, type, salary, amount)\n sales_registry(status, date, name, salary)\nTask: Retrieve salary from stocking_sites whose type is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(value, code, salary, id)\n attribute_groups(amount, status, date, name)\nTask: Find value from workforce_data where a matching record exists in attribute_groups with the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(date, code, status, salary)\n sourcing_list(status, id, date, name)\nTask: Select id from stock_catalog where amount is greater than the total of salary in sourcing_list for matching status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, salary, level, name)\n receivables_log(amount, status, type, code)\nTask: Find salary from dispatch_queue where value exceeds the minimum amount from receivables_log for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(name, level, amount, status)\n sales_registry(name, code, status, id)\nTask: Find value from personnel_registry where salary exceeds the count of salary from sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(status, level, value, date)\n activity_log(date, salary, id, status)\nTask: Select value from stock_catalog where amount is greater than the maximum of amount in activity_log for matching id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(amount, type, level, salary)\n sales_queue(level, code, salary, id)\nTask: Find amount from cost_centers where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(date, salary, level, type)\n engagement_log(code, amount, salary, date)\nTask: Retrieve salary from facility_registry with salary above the AVG(amount) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(level, status, name, date)\n personnel_registry(salary, code, amount, name)\nTask: Select id from acquisition_log where status exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, type, code, value)\n stock_catalog(type, level, salary, status)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(id, level, code, amount)\n engagement_log(amount, value, id, date)\nTask: Select value from cost_centers where amount is greater than the count of of amount in engagement_log for matching status.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(amount, code, id, type)\n activity_log(id, type, name, value)\nTask: Find id from area_registry where code appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(salary, value, status, date)\n journal_entries(id, salary, value, type)\nTask: Select amount from facility_registry where status exists in journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(date, status, id, type)\n cost_centers(amount, date, id, level)\nTask: Retrieve name from sales_queue whose status is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(level, id, value, type)\n cost_centers(date, name, code, id)\nTask: Find id from personnel_registry where value exceeds the average amount from cost_centers for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(salary, value, id, level)\n area_registry(type, value, amount, code)\nTask: Find code from stocking_sites where amount exceeds the minimum value from area_registry for the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(type, salary, amount, date)\n area_registry(status, type, id, code)\nTask: Find code from activity_log where id appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM activity_log AS mgr\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(code, name, status, type)\n receivables_log(value, amount, salary, status)\nTask: Select value from portfolio_index where value is greater than the count of of value in receivables_log for matching level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE value > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "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}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(type, level, salary, value)\n dispatch_queue(name, type, amount, id)\nTask: Select name from engagement_log that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(date, level, value, amount)\n engagement_log(type, amount, salary, name)\nTask: Retrieve amount from stocking_sites with salary above the MIN(amount) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(code, id, level, value)\n portfolio_index(date, type, value, amount)\nTask: Retrieve id from activity_log that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(value, name, status, type)\n stock_catalog(name, value, level, type)\nTask: Find amount from workforce_data where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(date, code, type, salary)\n receivables_log(level, amount, id, code)\nTask: Retrieve id from sourcing_list with value above the AVG(value) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE value > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "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}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(level, salary, amount, date)\n personnel_registry(name, salary, date, type)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(value, date, name, status)\n journal_entries(code, salary, amount, value)\nTask: Retrieve value from dispatch_queue whose level is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(type, code, id, date)\n stock_catalog(type, code, salary, date)\nTask: Find value from facility_registry where status appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, code, level, id)\n sales_queue(status, id, salary, date)\nTask: Retrieve code from sourcing_list whose id is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(type, amount, status, salary)\n sales_queue(type, salary, amount, name)\nTask: Select value from attribute_groups where level exists in sales_queue for the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(type, value, code, status)\n sales_queue(date, value, name, type)\nTask: Find amount from personnel_registry where level appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS mgr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(level, id, amount, code)\n area_registry(type, status, amount, name)\nTask: Find code from sales_registry where status appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(level, amount, code, status)\n sourcing_list(id, date, code, amount)\nTask: Find amount from sales_registry where code appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(value, id, name, type)\n acquisition_log(status, amount, code, type)\nTask: Find amount from activity_log where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(name, value, id, amount)\n stock_catalog(amount, code, type, salary)\nTask: Select amount from receivables_log where id exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, name, type, value)\n cost_centers(level, date, amount, status)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(level, status, value, amount)\n sales_registry(amount, status, name, date)\nTask: Find salary from personnel_registry where type appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(value, status, type, name)\n facility_registry(id, code, name, date)\nTask: Find value from activity_log where salary exceeds the maximum value from facility_registry for the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS inv\nWHERE salary > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(status, date, code, value)\n portfolio_index(name, code, id, status)\nTask: Retrieve salary from stocking_sites with amount above the AVG(amount) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(value, level, salary, date)\n receivables_log(value, amount, level, salary)\nTask: Select salary from journal_entries that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(amount, level, value, date)\n sales_registry(name, level, salary, id)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(code, level, id, value)\n area_registry(code, type, id, status)\nTask: Find amount from activity_log where type appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(id, date, value, salary)\n stocking_sites(amount, value, level, status)\nTask: Retrieve id from cost_centers with salary above the MAX(amount) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(id, name, status, code)\n sales_registry(value, salary, code, level)\nTask: Retrieve amount from engagement_log whose status is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(value, amount, date, id)\n dispatch_queue(date, id, type, salary)\nTask: Find name from attribute_groups where salary exceeds the total salary from dispatch_queue for the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(amount, salary, type, date)\n stocking_sites(salary, name, id, amount)\nTask: Find amount from journal_entries where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(id, value, status, salary)\n facility_registry(value, id, type, name)\nTask: Find name from journal_entries where level appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, name, type, amount)\n cost_centers(salary, status, value, date)\nTask: Select code from dispatch_queue that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(id, salary, level, code)\n portfolio_index(id, code, amount, name)\nTask: Find value from attribute_groups where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(value, id, amount, date)\n stock_catalog(name, status, code, amount)\nTask: Find amount from sales_registry where code appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS emp\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(type, id, amount, salary)\n stock_catalog(salary, amount, value, level)\nTask: Find amount from portfolio_index where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(value, name, level, amount)\n acquisition_log(date, type, id, amount)\nTask: Select name from engagement_log where salary is greater than the count of of salary in acquisition_log for matching status.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(name, date, salary, level)\n facility_registry(salary, level, id, date)\nTask: Select amount from stocking_sites where amount is greater than the total of salary in facility_registry for matching level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, id, name, value)\n attribute_groups(salary, name, level, id)\nTask: Retrieve value from sourcing_list whose id is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(type, code, name, value)\n sales_queue(date, type, level, id)\nTask: Select code from stocking_sites that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(id, level, amount, salary)\n dispatch_queue(amount, level, value, name)\nTask: Find id from facility_registry where code appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, level, type, name)\n dispatch_queue(name, code, type, amount)\nTask: Find name from acquisition_log where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(level, value, type, status)\n area_registry(type, status, level, code)\nTask: Select name from attribute_groups where amount is greater than the total of value in area_registry for matching id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE amount > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(type, amount, salary, date)\n dispatch_queue(level, salary, code, id)\nTask: Select amount from portfolio_index that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(id, status, date, level)\n engagement_log(salary, code, status, date)\nTask: Retrieve id from area_registry whose level is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, name, code, amount)\n attribute_groups(name, level, date, status)\nTask: Retrieve code from dispatch_queue with salary above the SUM(salary) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(value, id, name, date)\n facility_registry(salary, code, date, id)\nTask: Retrieve name from receivables_log with value above the MIN(amount) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE value > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(name, status, amount, id)\n stocking_sites(value, amount, status, salary)\nTask: Select id from sourcing_list where status exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(code, type, level, amount)\n activity_log(level, name, code, status)\nTask: Retrieve salary from sales_queue with amount above the MIN(amount) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(salary, status, code, value)\n facility_registry(code, id, level, salary)\nTask: Find name from cost_centers where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(id, level, status, value)\n sourcing_list(id, name, date, status)\nTask: Select amount from area_registry where value is greater than the count of of value in sourcing_list for matching level.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE value > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(value, date, level, type)\n cost_centers(name, date, type, salary)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT code FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(name, value, code, amount)\n personnel_registry(name, id, status, value)\nTask: Retrieve salary from portfolio_index with value above the COUNT(amount) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(type, amount, name, id)\n workforce_data(salary, id, type, amount)\nTask: Retrieve salary from area_registry with salary above the MIN(salary) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(level, value, name, status)\n area_registry(salary, value, level, name)\nTask: Select id from sourcing_list that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(type, code, id, status)\n portfolio_index(level, salary, status, amount)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(salary, date, status, value)\n portfolio_index(amount, salary, status, code)\nTask: Find salary from sales_registry where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(value, id, status, code)\n area_registry(id, value, name, date)\nTask: Find name from engagement_log where status appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(type, level, amount, value)\n sourcing_list(level, id, code, value)\nTask: Find code from acquisition_log where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(date, amount, status, level)\n sourcing_list(id, value, date, status)\nTask: Retrieve name from area_registry with salary above the AVG(amount) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(salary, value, code, id)\n attribute_groups(type, amount, salary, id)\nTask: Retrieve salary from area_registry with value above the AVG(salary) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS ord\nWHERE value > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, value, date, amount)\n sourcing_list(name, date, amount, value)\nTask: Find amount from dispatch_queue where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, value, status, salary)\n area_registry(salary, name, code, date)\nTask: Select id from workforce_data that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(value, code, id, status)\n sales_queue(name, value, status, amount)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(value, name, level, status)\n attribute_groups(amount, salary, id, value)\nTask: Find value from journal_entries where id appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(amount, status, name, code)\n acquisition_log(type, name, value, id)\nTask: Retrieve id from activity_log with salary above the AVG(salary) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(id, amount, type, level)\n portfolio_index(status, date, name, level)\nTask: Select id from workforce_data where amount is greater than the maximum of value in portfolio_index for matching status.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE amount > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(type, salary, status, level)\n journal_entries(type, value, id, amount)\nTask: Find value from acquisition_log where amount exceeds the count of value from journal_entries for the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(code, level, value, type)\n dispatch_queue(name, type, level, code)\nTask: Select value from area_registry where salary is greater than the maximum of amount in dispatch_queue for matching status.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(code, status, level, id)\n facility_registry(name, type, date, status)\nTask: Find id from activity_log where value exceeds the minimum value from facility_registry for the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE value > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, type, id, code)\n portfolio_index(salary, type, name, value)\nTask: Find value from acquisition_log where salary exceeds the average amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(date, code, name, amount)\n sourcing_list(name, status, date, id)\nTask: Find id from cost_centers where salary exceeds the count of value from sourcing_list for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE salary > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(value, status, amount, date)\n workforce_data(level, code, status, salary)\nTask: Select amount from area_registry that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(code, id, level, status)\n sales_registry(status, salary, id, name)\nTask: Find code from receivables_log where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(id, salary, code, level)\n dispatch_queue(name, amount, type, level)\nTask: Select amount from acquisition_log that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(value, type, date, salary)\n sales_queue(salary, date, name, level)\nTask: Find code from portfolio_index where amount exceeds the count of salary from sales_queue for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(amount, level, date, type)\n attribute_groups(code, id, type, value)\nTask: Select id from facility_registry that have at least one matching row in attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(code, id, amount, value)\n stocking_sites(value, date, id, code)\nTask: Retrieve value from attribute_groups with amount above the MIN(value) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE amount > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(type, level, name, amount)\n sourcing_list(status, level, type, salary)\nTask: Find salary from attribute_groups where salary exceeds the maximum amount from sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(value, status, amount, level)\n acquisition_log(type, status, id, code)\nTask: Find salary from receivables_log where salary exceeds the minimum value from acquisition_log for the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE salary > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(name, type, status, id)\n journal_entries(code, salary, date, status)\nTask: Select value from sourcing_list where status exists in journal_entries for the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(status, value, salary, level)\n personnel_registry(status, name, id, level)\nTask: Select amount from sales_queue where amount is greater than the total of salary in personnel_registry for matching status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(code, level, name, salary)\n facility_registry(code, name, status, value)\nTask: Find amount from receivables_log where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(value, id, status, code)\n dispatch_queue(status, name, amount, salary)\nTask: Select id from sales_queue where code exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(date, amount, status, value)\n personnel_registry(status, code, date, name)\nTask: Find value from journal_entries where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(code, name, status, id)\n portfolio_index(name, date, salary, value)\nTask: Select salary from stocking_sites where level exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(date, type, code, value)\n facility_registry(id, value, status, type)\nTask: Select amount from sourcing_list where type exists in facility_registry for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(status, salary, name, date)\n sales_queue(type, name, id, value)\nTask: Select value from area_registry where salary is greater than the maximum of amount in sales_queue for matching type.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE salary > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(id, code, value, salary)\n stock_catalog(name, value, id, level)\nTask: Find code from facility_registry where level appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(code, name, type, level)\n receivables_log(value, date, status, code)\nTask: Retrieve value from area_registry that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(level, type, amount, salary)\n acquisition_log(value, id, date, salary)\nTask: Select code from cost_centers that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(amount, level, value, id)\n dispatch_queue(level, amount, date, name)\nTask: Retrieve code from acquisition_log with value above the MAX(amount) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(amount, type, date, status)\n cost_centers(status, code, salary, level)\nTask: Find code from portfolio_index where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(code, amount, name, value)\n sales_registry(name, date, code, value)\nTask: Select value from journal_entries where status exists in sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(value, id, status, code)\n journal_entries(salary, name, id, amount)\nTask: Find amount from attribute_groups where code appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(status, salary, level, type)\n stocking_sites(code, name, level, salary)\nTask: Select name from receivables_log where code exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(value, code, salary, type)\n stock_catalog(name, type, id, code)\nTask: Find name from workforce_data where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(code, type, level, date)\n stock_catalog(amount, type, value, salary)\nTask: Retrieve value from activity_log that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(id, name, date, type)\n sales_registry(salary, code, value, id)\nTask: Select name from sourcing_list where salary is greater than the total of salary in sales_registry for matching id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS ord\nWHERE salary > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, type, value, status)\n engagement_log(date, type, name, salary)\nTask: Select amount from attribute_groups where id exists in engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(value, id, code, date)\n dispatch_queue(name, amount, status, level)\nTask: Find amount from acquisition_log where status appears in dispatch_queue entries with matching code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(value, salary, name, code)\n attribute_groups(id, status, code, date)\nTask: Find name from facility_registry where amount exceeds the average salary from attribute_groups for the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(value, salary, type, level)\n engagement_log(date, type, name, amount)\nTask: Find code from sales_registry where amount exceeds the minimum amount from engagement_log for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE amount > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(code, amount, type, value)\n portfolio_index(salary, value, code, date)\nTask: Retrieve code from stocking_sites with value above the MIN(value) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE value > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(level, value, id, code)\n activity_log(value, code, amount, name)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(status, amount, id, type)\n acquisition_log(id, type, level, name)\nTask: Retrieve salary from engagement_log that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(date, type, value, status)\n activity_log(name, value, amount, status)\nTask: Select id from sourcing_list where status exists in activity_log for the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(type, id, name, salary)\n attribute_groups(status, level, value, type)\nTask: Find id from sales_registry where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(level, value, date, amount)\n dispatch_queue(salary, amount, value, level)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(date, name, code, value)\n sales_registry(salary, date, code, status)\nTask: Select name from area_registry where type exists in sales_registry for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, id, value, salary)\n cost_centers(value, date, salary, type)\nTask: Select amount from receivables_log that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(value, status, amount, type)\n sales_registry(date, name, level, id)\nTask: Retrieve amount from facility_registry with value above the MAX(amount) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE value > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(level, code, date, type)\n attribute_groups(date, level, id, status)\nTask: Find name from engagement_log where status appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, value, level, type)\n personnel_registry(amount, code, level, id)\nTask: Retrieve name from stock_catalog with salary above the AVG(salary) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(value, type, name, salary)\n workforce_data(status, id, name, code)\nTask: Select code from portfolio_index where id exists in workforce_data for the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(code, id, level, value)\n attribute_groups(id, value, salary, name)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(value, level, code, amount)\n cost_centers(code, name, value, salary)\nTask: Retrieve value from sales_registry whose level is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(salary, id, type, value)\n area_registry(value, id, code, date)\nTask: Select amount from sourcing_list that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, date, code, amount)\n personnel_registry(name, status, date, amount)\nTask: Select salary from sourcing_list where salary is greater than the maximum of value in personnel_registry for matching level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE salary > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(name, status, id, amount)\n dispatch_queue(value, id, date, code)\nTask: Find amount from receivables_log where value exceeds the average amount from dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE value > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(code, name, salary, level)\n dispatch_queue(status, salary, level, value)\nTask: Find name from portfolio_index where code appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, code, salary, status)\n personnel_registry(status, level, type, id)\nTask: Retrieve code from sourcing_list with amount above the AVG(amount) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(code, level, id, salary)\n portfolio_index(level, date, id, amount)\nTask: Select id from activity_log where id exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(level, status, date, value)\n personnel_registry(date, salary, id, name)\nTask: Retrieve value from stocking_sites with amount above the SUM(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(value, salary, amount, level)\n acquisition_log(date, id, amount, value)\nTask: Select salary from activity_log where amount is greater than the average of amount in acquisition_log for matching level.\nSQL:", "sql": "SELECT salary FROM activity_log AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(type, code, amount, id)\n portfolio_index(date, amount, id, code)\nTask: Select id from engagement_log where value is greater than the average of salary in portfolio_index for matching id.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE value > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(status, value, salary, date)\n journal_entries(amount, name, salary, level)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(date, id, name, value)\n journal_entries(date, status, type, code)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(type, level, value, id)\n stocking_sites(value, id, code, status)\nTask: Find code from activity_log where amount exceeds the maximum value from stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE amount > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(amount, code, level, value)\n sales_queue(level, value, status, date)\nTask: Select salary from dispatch_queue where value is greater than the average of amount in sales_queue for matching code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE value > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(code, amount, name, id)\n stock_catalog(date, value, type, salary)\nTask: Retrieve salary from journal_entries that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(amount, date, salary, code)\n receivables_log(date, salary, name, level)\nTask: Find value from journal_entries where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, date, type, value)\n acquisition_log(name, type, value, code)\nTask: Retrieve value from dispatch_queue whose code is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(value, id, level, salary)\n workforce_data(status, type, amount, name)\nTask: Find salary from sales_registry where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(type, name, status, amount)\n sourcing_list(level, name, id, date)\nTask: Retrieve value from acquisition_log with amount above the MIN(value) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE amount > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, value, salary, name)\n personnel_registry(code, level, type, name)\nTask: Find name from acquisition_log where id appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(date, salary, amount, value)\n area_registry(name, id, date, value)\nTask: Find amount from stock_catalog where code appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(date, name, id, level)\n workforce_data(salary, status, value, id)\nTask: Select code from receivables_log where id exists in workforce_data for the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, status, type, name)\n stocking_sites(amount, name, id, type)\nTask: Retrieve name from sales_registry with salary above the COUNT(amount) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(level, amount, value, salary)\n sales_queue(name, value, salary, id)\nTask: Find id from activity_log where type appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(salary, date, status, type)\n portfolio_index(level, type, code, status)\nTask: Retrieve name from area_registry with amount above the SUM(amount) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(amount, value, id, code)\n workforce_data(code, amount, value, level)\nTask: Find name from area_registry where salary exceeds the average salary from workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(value, amount, id, salary)\n stocking_sites(code, amount, name, date)\nTask: Select amount from personnel_registry where value is greater than the count of of amount in stocking_sites for matching type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(name, date, id, code)\n attribute_groups(type, level, id, code)\nTask: Select code from engagement_log where value is greater than the minimum of value in attribute_groups for matching status.\nSQL:", "sql": "SELECT code FROM engagement_log AS emp\nWHERE value > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(type, level, salary, date)\n personnel_registry(code, value, salary, id)\nTask: Select code from activity_log where status exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(type, id, name, level)\n receivables_log(date, amount, status, code)\nTask: Find amount from cost_centers where salary exceeds the count of value from receivables_log for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE salary > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(type, name, id, salary)\n personnel_registry(status, code, name, date)\nTask: Select salary from stocking_sites that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(type, name, level, id)\n activity_log(code, id, amount, level)\nTask: Retrieve salary from receivables_log whose level is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(id, status, level, code)\n activity_log(name, id, salary, amount)\nTask: Retrieve value from sales_queue whose type is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(code, salary, value, level)\n facility_registry(value, date, level, type)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(value, date, status, type)\n cost_centers(type, date, amount, level)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(salary, amount, id, name)\n attribute_groups(salary, date, name, level)\nTask: Find amount from workforce_data where id appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, amount, status, value)\n receivables_log(level, id, type, status)\nTask: Retrieve value from dispatch_queue whose level is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS dept\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(date, level, value, code)\n cost_centers(type, id, name, date)\nTask: Find name from activity_log where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(code, value, level, name)\n cost_centers(type, date, value, code)\nTask: Find amount from stock_catalog where code appears in cost_centers entries with matching type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(name, value, level, type)\n sourcing_list(amount, code, value, status)\nTask: Find amount from portfolio_index where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, salary, level, value)\n engagement_log(value, type, status, amount)\nTask: Select name from dispatch_queue where type exists in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(amount, code, status, id)\n activity_log(salary, level, date, name)\nTask: Retrieve value from area_registry that have at least one corresponding entry in activity_log sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(status, level, id, date)\n area_registry(status, name, salary, level)\nTask: Find value from sourcing_list where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(code, status, date, salary)\n acquisition_log(name, id, amount, value)\nTask: Find value from journal_entries where id appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, amount, type, id)\n activity_log(value, type, code, date)\nTask: Select salary from personnel_registry that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(date, value, name, type)\n stocking_sites(type, value, name, level)\nTask: Find code from sourcing_list where status appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS inv\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(amount, salary, value, status)\n engagement_log(value, level, type, status)\nTask: Retrieve amount from dispatch_queue whose level is found in engagement_log rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(code, level, amount, name)\n sourcing_list(amount, type, salary, level)\nTask: Retrieve id from facility_registry with amount above the AVG(value) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE amount > (\n SELECT AVG(value) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(value, amount, name, type)\n personnel_registry(code, value, date, id)\nTask: Retrieve name from sales_queue with salary above the COUNT(value) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(value, status, date, name)\n sales_queue(date, level, type, amount)\nTask: Find code from cost_centers where level appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(code, name, level, id)\n activity_log(id, code, type, salary)\nTask: Find value from stocking_sites where type appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(type, amount, salary, code)\n area_registry(id, status, amount, type)\nTask: Select salary from dispatch_queue where salary is greater than the average of salary in area_registry for matching level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(code, value, type, id)\n engagement_log(amount, value, salary, name)\nTask: Select code from workforce_data where id exists in engagement_log for the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(name, type, status, value)\n personnel_registry(name, code, id, salary)\nTask: Find code from sourcing_list where amount exceeds the minimum salary from personnel_registry for the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, id, amount, status)\n workforce_data(date, level, salary, name)\nTask: Find amount from stocking_sites where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(level, code, type, status)\n sales_queue(amount, name, value, level)\nTask: Find name from portfolio_index where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(status, code, id, value)\n facility_registry(date, code, value, salary)\nTask: Find code from stock_catalog where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, level, id, name)\n cost_centers(name, salary, status, code)\nTask: Retrieve id from stock_catalog whose level is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(code, level, amount, id)\n sourcing_list(code, amount, id, type)\nTask: Select code from journal_entries where type exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(date, code, status, level)\n stocking_sites(date, id, type, amount)\nTask: Find amount from portfolio_index where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(code, amount, type, date)\n personnel_registry(amount, date, code, salary)\nTask: Select id from workforce_data where salary is greater than the count of of amount in personnel_registry for matching status.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(amount, type, level, id)\n area_registry(level, id, salary, value)\nTask: Select id from workforce_data where amount is greater than the count of of value in area_registry for matching level.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, type, id, date)\n personnel_registry(date, value, level, code)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(status, value, amount, code)\n attribute_groups(type, name, code, date)\nTask: Select code from facility_registry that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(value, name, level, status)\n attribute_groups(date, amount, code, value)\nTask: Find id from sales_registry where salary exceeds the minimum amount from attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(status, salary, code, name)\n stocking_sites(code, name, date, value)\nTask: Find salary from workforce_data where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(id, salary, value, type)\n attribute_groups(level, date, amount, type)\nTask: Find code from personnel_registry where value exceeds the maximum value from attribute_groups for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE value > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(name, status, code, date)\n engagement_log(value, level, name, date)\nTask: Find value from attribute_groups where amount exceeds the count of value from engagement_log for the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(id, salary, name, status)\n facility_registry(type, date, amount, status)\nTask: Select code from sourcing_list where level exists in facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(date, level, status, code)\n acquisition_log(date, value, code, id)\nTask: Select code from stocking_sites that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(name, amount, status, value)\n stocking_sites(code, date, id, amount)\nTask: Find salary from attribute_groups where value exceeds the count of value from stocking_sites for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE value > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(type, id, status, code)\n sales_registry(value, salary, amount, level)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(level, name, value, code)\n journal_entries(type, code, date, value)\nTask: Find value from area_registry where type appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(amount, name, status, date)\n facility_registry(type, salary, name, value)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(status, amount, code, type)\n personnel_registry(name, status, level, id)\nTask: Find id from engagement_log where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(type, status, name, amount)\n attribute_groups(id, status, code, salary)\nTask: Retrieve value from area_registry with salary above the MIN(amount) of attribute_groups rows sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(amount, type, status, value)\n journal_entries(amount, date, salary, status)\nTask: Select value from sales_registry where amount is greater than the maximum of amount in journal_entries for matching id.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, name, id, status)\n stocking_sites(date, id, type, code)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(amount, id, date, salary)\n personnel_registry(salary, type, amount, value)\nTask: Select amount from sales_queue that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(value, name, level, id)\n workforce_data(id, salary, amount, value)\nTask: Find value from stocking_sites where value exceeds the count of amount from workforce_data for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(value, status, amount, salary)\n journal_entries(date, value, id, name)\nTask: Retrieve code from engagement_log whose level is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(type, id, salary, value)\n area_registry(name, id, code, status)\nTask: Retrieve name from attribute_groups with salary above the SUM(value) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE salary > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(type, id, salary, value)\n acquisition_log(value, level, status, name)\nTask: Find id from receivables_log where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, date, salary, value)\n stocking_sites(id, status, salary, name)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(salary, level, id, type)\n personnel_registry(salary, type, name, value)\nTask: Select code from attribute_groups where salary is greater than the average of amount in personnel_registry for matching status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "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}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(level, salary, value, amount)\n workforce_data(level, status, value, date)\nTask: Select amount from activity_log where amount is greater than the total of value in workforce_data for matching level.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE amount > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(salary, status, name, amount)\n sales_queue(amount, date, code, name)\nTask: Find value from portfolio_index where salary exceeds the maximum value from sales_queue for the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE salary > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(salary, status, value, id)\n engagement_log(type, value, status, level)\nTask: Find amount from sourcing_list where value exceeds the minimum salary from engagement_log for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE value > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(id, type, code, status)\n personnel_registry(status, amount, level, date)\nTask: Select name from receivables_log that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(code, level, status, id)\n personnel_registry(date, value, name, code)\nTask: Select id from sales_queue that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(level, code, type, amount)\n acquisition_log(amount, salary, level, id)\nTask: Retrieve value from engagement_log whose type is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM engagement_log AS dept\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(name, value, salary, level)\n personnel_registry(value, date, amount, id)\nTask: Find code from workforce_data where value exceeds the total value from personnel_registry for the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE value > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(amount, salary, id, status)\n sales_registry(salary, name, status, amount)\nTask: Retrieve salary from facility_registry with value above the MIN(amount) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE value > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(code, name, date, status)\n sales_registry(date, salary, level, status)\nTask: Retrieve amount from attribute_groups whose level is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(value, date, amount, id)\n engagement_log(code, value, id, type)\nTask: Find value from workforce_data where amount exceeds the maximum amount from engagement_log for the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(amount, type, code, status)\n sourcing_list(type, name, salary, amount)\nTask: Select value from sales_registry where id exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(date, amount, id, type)\n portfolio_index(name, value, status, type)\nTask: Find salary from workforce_data where amount exceeds the count of amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(date, type, amount, value)\n stocking_sites(salary, type, value, date)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(level, status, code, salary)\n workforce_data(name, amount, value, level)\nTask: Select name from sales_queue where level exists in workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(type, id, level, date)\n acquisition_log(code, amount, salary, date)\nTask: Find salary from activity_log where status appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT salary FROM activity_log AS usr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(code, id, level, amount)\n activity_log(status, amount, id, name)\nTask: Find name from workforce_data where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(date, amount, value, salary)\n area_registry(salary, amount, value, name)\nTask: Retrieve salary from sales_queue with salary above the MAX(salary) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(status, id, name, amount)\n stock_catalog(status, date, code, name)\nTask: Find code from journal_entries where code appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(amount, type, level, value)\n stock_catalog(id, level, name, status)\nTask: Select amount from stocking_sites that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(type, status, value, name)\n activity_log(code, value, status, type)\nTask: Retrieve id from journal_entries with amount above the MIN(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(name, id, value, status)\n engagement_log(name, code, amount, level)\nTask: Select salary from attribute_groups that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(status, amount, id, salary)\n engagement_log(status, level, date, name)\nTask: Retrieve amount from portfolio_index with amount above the MIN(salary) of engagement_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(code, amount, date, id)\n workforce_data(id, status, type, amount)\nTask: Retrieve salary from stock_catalog with salary above the AVG(salary) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(id, salary, amount, name)\n sales_registry(name, id, date, level)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(date, id, amount, level)\n stocking_sites(amount, status, id, value)\nTask: Select salary from receivables_log that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(code, name, salary, level)\n sourcing_list(level, id, name, type)\nTask: Find amount from workforce_data where status appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(level, amount, type, id)\n attribute_groups(value, date, type, code)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(code, date, salary, amount)\n sales_queue(date, code, status, name)\nTask: Find name from area_registry where value exceeds the minimum amount from sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE value > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(date, amount, name, level)\n sales_queue(amount, date, id, level)\nTask: Find code from attribute_groups where salary exceeds the total amount from sales_queue for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(status, level, type, code)\n journal_entries(salary, level, date, status)\nTask: Select id from facility_registry where value is greater than the minimum of value in journal_entries for matching type.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE value > (\n SELECT MIN(value) FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(id, status, salary, value)\n area_registry(status, amount, date, code)\nTask: Select name from activity_log where amount is greater than the total of value in area_registry for matching id.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE amount > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(type, code, amount, level)\n stock_catalog(salary, amount, id, level)\nTask: Select value from personnel_registry where id exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(type, name, level, amount)\n sales_queue(id, name, code, value)\nTask: Find name from sales_registry where value exceeds the total amount from sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE value > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, code, amount, id)\n dispatch_queue(date, status, name, salary)\nTask: Select id from attribute_groups that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(type, level, status, value)\n engagement_log(value, type, id, status)\nTask: Retrieve name from activity_log that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(value, salary, id, type)\n personnel_registry(date, amount, code, status)\nTask: Retrieve code from activity_log that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(id, name, level, date)\n acquisition_log(value, type, level, id)\nTask: Select name from facility_registry where status exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(type, name, level, id)\n journal_entries(salary, id, level, amount)\nTask: Retrieve salary from engagement_log whose id is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "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}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(status, amount, id, name)\n cost_centers(type, status, value, code)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(date, type, name, code)\n portfolio_index(id, code, date, value)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, date, value, type)\n sourcing_list(status, type, amount, code)\nTask: Retrieve id from portfolio_index with salary above the AVG(value) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "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}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(date, status, value, id)\n engagement_log(code, status, type, name)\nTask: Select id from sales_queue where value is greater than the average of salary in engagement_log for matching id.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(type, level, status, code)\n area_registry(status, date, salary, level)\nTask: Retrieve code from sales_queue whose status is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(status, code, type, date)\n attribute_groups(id, status, code, type)\nTask: Find salary from receivables_log where a matching record exists in attribute_groups with the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(level, id, amount, date)\n attribute_groups(salary, amount, type, level)\nTask: Select amount from sales_registry where amount is greater than the count of of amount in attribute_groups for matching level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(level, status, value, type)\n personnel_registry(type, value, name, level)\nTask: Select code from attribute_groups where salary is greater than the average of amount in personnel_registry for matching level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(code, type, amount, date)\n stocking_sites(level, status, type, id)\nTask: Select code from journal_entries that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(amount, type, code, status)\n sales_registry(code, id, amount, value)\nTask: Retrieve amount from workforce_data with value above the SUM(salary) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE value > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(value, level, name, type)\n sales_registry(name, salary, status, value)\nTask: Select value from sales_queue where amount is greater than the average of amount in sales_registry for matching code.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(code, salary, date, value)\n attribute_groups(id, type, level, status)\nTask: Retrieve salary from acquisition_log whose code is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(status, level, date, code)\n engagement_log(date, status, name, type)\nTask: Find value from receivables_log where salary exceeds the maximum salary from engagement_log for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(date, code, id, status)\n sales_queue(amount, status, date, value)\nTask: Find name from stocking_sites where level appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(salary, status, date, name)\n workforce_data(type, salary, value, name)\nTask: Find value from facility_registry where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(code, name, level, value)\n personnel_registry(name, status, value, amount)\nTask: Find amount from stocking_sites where level appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(value, level, status, name)\n cost_centers(amount, code, salary, value)\nTask: Find name from portfolio_index where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(status, value, date, level)\n activity_log(name, status, id, level)\nTask: Find salary from portfolio_index where status appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, level, id, code)\n workforce_data(code, name, status, date)\nTask: Select salary from dispatch_queue that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(salary, type, id, date)\n attribute_groups(type, value, amount, level)\nTask: Find id from sales_queue where salary exceeds the minimum salary from attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(level, status, name, type)\n sales_registry(value, date, salary, id)\nTask: Retrieve salary from facility_registry whose level is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(id, value, level, name)\n stock_catalog(date, id, amount, value)\nTask: Select amount from sales_queue that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(date, type, name, status)\n cost_centers(salary, date, amount, level)\nTask: Select name from workforce_data where status exists in cost_centers for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(code, value, date, level)\n portfolio_index(name, salary, amount, value)\nTask: Find value from sales_registry where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(date, status, code, salary)\n sales_queue(level, type, status, date)\nTask: Select value from portfolio_index that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(id, name, amount, salary)\n portfolio_index(salary, name, level, date)\nTask: Select name from receivables_log where salary is greater than the minimum of salary in portfolio_index for matching id.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(date, code, name, value)\n dispatch_queue(level, code, name, status)\nTask: Find id from journal_entries where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, type, name, level)\n sourcing_list(name, status, salary, date)\nTask: Select code from acquisition_log where amount is greater than the average of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE amount > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(id, name, date, type)\n acquisition_log(level, status, value, amount)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(status, name, amount, type)\n activity_log(status, name, amount, value)\nTask: Find amount from sourcing_list where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(status, type, date, value)\n facility_registry(level, value, id, type)\nTask: Select id from personnel_registry where code exists in facility_registry for the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(id, salary, status, level)\n sourcing_list(value, date, code, salary)\nTask: Retrieve salary from stock_catalog with value above the MIN(salary) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE value > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(amount, code, salary, date)\n attribute_groups(value, code, salary, id)\nTask: Find id from facility_registry where value exceeds the maximum salary from attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE value > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, level, code, type)\n dispatch_queue(amount, name, code, date)\nTask: Select amount from stocking_sites where id exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(level, name, value, date)\n receivables_log(code, type, value, amount)\nTask: Find value from journal_entries where value exceeds the maximum value from receivables_log for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE value > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(status, id, value, amount)\n stocking_sites(code, amount, level, value)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(type, name, salary, code)\n portfolio_index(type, status, date, salary)\nTask: Retrieve amount from sales_registry whose type is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(salary, code, value, type)\n facility_registry(code, type, id, status)\nTask: Select code from journal_entries that have at least one matching row in facility_registry for the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(level, type, date, status)\n sourcing_list(date, type, salary, status)\nTask: Find name from receivables_log where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, name, level, salary)\n sales_queue(amount, name, code, salary)\nTask: Retrieve code from cost_centers whose id is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(code, date, salary, id)\n activity_log(id, level, amount, code)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(salary, code, id, name)\n stocking_sites(code, level, amount, date)\nTask: Retrieve salary from acquisition_log with amount above the COUNT(amount) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(type, date, value, status)\n receivables_log(date, code, status, amount)\nTask: Select amount from sourcing_list that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(name, code, amount, id)\n sourcing_list(name, amount, status, code)\nTask: Select salary from activity_log where status exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(amount, value, level, salary)\n activity_log(status, salary, type, value)\nTask: Find id from sales_registry where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(date, status, type, id)\n stocking_sites(code, type, date, value)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(status, amount, salary, name)\n sales_queue(type, amount, level, name)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(status, code, id, value)\n sales_registry(name, status, id, salary)\nTask: Select amount from activity_log where type exists in sales_registry for the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(date, status, value, type)\n cost_centers(amount, status, type, date)\nTask: Find name from engagement_log where status appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(level, value, id, amount)\n personnel_registry(amount, status, level, code)\nTask: Find code from attribute_groups where value exceeds the average salary from personnel_registry for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE value > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(name, id, date, amount)\n sales_registry(date, amount, name, salary)\nTask: Retrieve code from receivables_log with value above the MIN(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE value > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(type, id, level, amount)\n portfolio_index(salary, id, date, name)\nTask: Find salary from stock_catalog where salary exceeds the minimum value from portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE salary > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(type, value, amount, code)\n journal_entries(code, amount, name, status)\nTask: Retrieve amount from area_registry with amount above the COUNT(value) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, value, name, salary)\n sales_registry(date, level, amount, name)\nTask: Retrieve id from stock_catalog whose status is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(salary, date, level, value)\n portfolio_index(id, amount, name, type)\nTask: Select code from sales_queue where value is greater than the count of of amount in portfolio_index for matching code.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE value > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(code, amount, value, type)\n sales_registry(code, level, date, salary)\nTask: Find code from area_registry where type appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(value, salary, id, level)\n stock_catalog(amount, level, code, value)\nTask: Select value from journal_entries that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, level, date, name)\n facility_registry(name, code, type, value)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(status, code, type, amount)\n acquisition_log(date, type, code, status)\nTask: Find id from facility_registry where value exceeds the count of salary from acquisition_log for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(value, status, amount, name)\n acquisition_log(type, level, name, date)\nTask: Find amount from stocking_sites where id appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(status, amount, value, date)\n personnel_registry(type, date, code, salary)\nTask: Retrieve salary from sales_registry whose status is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, salary, name, date)\n journal_entries(id, code, salary, date)\nTask: Retrieve salary from stocking_sites whose status is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(value, name, date, type)\n area_registry(value, id, salary, type)\nTask: Select id from stocking_sites where salary is greater than the count of of amount in area_registry for matching code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE salary > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(type, id, status, code)\n workforce_data(value, amount, id, salary)\nTask: Select id from stocking_sites where amount is greater than the total of value in workforce_data for matching level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE amount > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(level, value, date, amount)\n dispatch_queue(id, level, salary, status)\nTask: Find name from stocking_sites where value exceeds the count of value from dispatch_queue for the same code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE value > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(salary, type, date, status)\n journal_entries(id, type, date, code)\nTask: Select amount from dispatch_queue where code exists in journal_entries for the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(date, id, status, type)\n receivables_log(code, salary, value, amount)\nTask: Select id from cost_centers where type exists in receivables_log for the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(status, type, name, code)\n facility_registry(id, salary, level, amount)\nTask: Find code from area_registry where code appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(type, value, id, date)\n workforce_data(type, code, status, salary)\nTask: Find code from engagement_log where a matching record exists in workforce_data with the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(status, amount, code, type)\n stock_catalog(level, name, value, code)\nTask: Select name from facility_registry where type exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(type, status, date, id)\n activity_log(name, type, amount, level)\nTask: Find amount from portfolio_index where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(name, code, type, value)\n stock_catalog(code, type, id, level)\nTask: Find amount from activity_log where salary exceeds the count of value from stock_catalog for the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(value, status, level, id)\n personnel_registry(salary, level, status, code)\nTask: Select salary from sales_queue where amount is greater than the minimum of amount in personnel_registry for matching type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(code, level, amount, name)\n stocking_sites(salary, id, status, amount)\nTask: Find id from cost_centers where value exceeds the minimum salary from stocking_sites for the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE value > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(value, status, level, code)\n engagement_log(id, salary, value, name)\nTask: Find amount from receivables_log where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(amount, status, type, id)\n sourcing_list(status, code, level, value)\nTask: Select salary from acquisition_log where status exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(type, level, amount, salary)\n cost_centers(type, level, salary, code)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(date, value, amount, id)\n workforce_data(amount, salary, level, name)\nTask: Find amount from stock_catalog where id appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(type, salary, date, amount)\n receivables_log(salary, id, date, value)\nTask: Find name from acquisition_log where status appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(date, status, salary, code)\n sales_registry(amount, level, code, date)\nTask: Retrieve name from acquisition_log with salary above the MAX(amount) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(level, id, value, code)\n workforce_data(salary, id, name, date)\nTask: Retrieve amount from engagement_log whose code is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(value, status, id, level)\n receivables_log(level, amount, status, type)\nTask: Select name from stock_catalog where salary is greater than the maximum of amount in receivables_log for matching status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE salary > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(status, id, amount, date)\n sourcing_list(salary, value, amount, code)\nTask: Find name from dispatch_queue where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(code, amount, name, value)\n stock_catalog(id, value, status, amount)\nTask: Select value from sales_registry where value is greater than the minimum of value in stock_catalog for matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE value > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(status, salary, amount, type)\n activity_log(id, amount, status, salary)\nTask: Retrieve name from engagement_log with salary above the SUM(salary) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(value, status, code, date)\n portfolio_index(salary, name, id, type)\nTask: Select id from journal_entries where type exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(salary, date, value, amount)\n activity_log(status, amount, code, value)\nTask: Select amount from journal_entries that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(status, value, salary, amount)\n workforce_data(salary, id, type, amount)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(amount, date, id, level)\n receivables_log(amount, name, date, status)\nTask: Find name from journal_entries where code appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(name, salary, date, code)\n stock_catalog(code, name, id, value)\nTask: Find amount from activity_log where id appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(value, type, date, salary)\n portfolio_index(status, type, id, amount)\nTask: Select code from stock_catalog that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(amount, date, level, value)\n dispatch_queue(salary, code, amount, id)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(status, amount, type, salary)\n sourcing_list(code, status, id, date)\nTask: Select amount from sales_queue where status exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(status, date, level, type)\n sourcing_list(date, id, amount, type)\nTask: Select id from attribute_groups where value is greater than the maximum of value in sourcing_list for matching code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(date, name, id, salary)\n personnel_registry(status, level, name, code)\nTask: Retrieve code from receivables_log whose type is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(name, value, type, id)\n sales_queue(status, amount, name, code)\nTask: Find salary from sourcing_list where id appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(level, type, name, amount)\n sales_registry(id, type, date, amount)\nTask: Select id from stocking_sites that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(value, level, salary, date)\n workforce_data(type, date, code, id)\nTask: Select code from sales_registry that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(value, salary, level, id)\n engagement_log(level, id, value, date)\nTask: Find amount from sourcing_list where salary exceeds the maximum value from engagement_log for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS empl\nWHERE salary > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(value, amount, id, name)\n area_registry(salary, status, code, id)\nTask: Retrieve value from journal_entries whose id is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(value, level, name, salary)\n journal_entries(amount, level, name, id)\nTask: Select amount from area_registry where id exists in journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(date, amount, type, salary)\n workforce_data(amount, name, id, status)\nTask: Select salary from receivables_log where salary is greater than the total of value in workforce_data for matching id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE salary > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(type, id, value, code)\n receivables_log(level, salary, date, amount)\nTask: Retrieve name from sourcing_list whose id is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, code, date, level)\n receivables_log(code, type, amount, level)\nTask: Retrieve code from dispatch_queue whose level is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(code, date, status, level)\n cost_centers(type, amount, salary, status)\nTask: Find amount from sales_queue where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(id, status, value, level)\n cost_centers(code, value, salary, id)\nTask: Retrieve salary from sourcing_list with value above the AVG(salary) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE value > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, name, value, type)\n sourcing_list(id, level, type, date)\nTask: Find value from attribute_groups where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(level, id, amount, type)\n portfolio_index(code, level, id, status)\nTask: Find id from acquisition_log where status appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(code, value, salary, type)\n workforce_data(salary, type, level, date)\nTask: Select id from journal_entries that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(value, status, level, type)\n acquisition_log(level, date, code, salary)\nTask: Select amount from cost_centers where status exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(value, salary, id, type)\n activity_log(amount, status, type, salary)\nTask: Find amount from sales_queue where status appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(level, amount, name, salary)\n activity_log(id, status, amount, value)\nTask: Retrieve amount from cost_centers with amount above the AVG(value) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE amount > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(code, status, value, date)\n engagement_log(date, name, level, status)\nTask: Retrieve name from workforce_data with value above the AVG(salary) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(code, salary, level, name)\n acquisition_log(value, name, amount, salary)\nTask: Select value from sourcing_list where value is greater than the count of of salary in acquisition_log for matching code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(id, amount, type, name)\n personnel_registry(name, salary, level, code)\nTask: Find code from portfolio_index where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, value, type, date)\n dispatch_queue(salary, status, level, id)\nTask: Select salary from stock_catalog where salary is greater than the maximum of amount in dispatch_queue for matching status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(value, name, type, date)\n receivables_log(name, value, salary, date)\nTask: Retrieve value from portfolio_index whose status is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(level, salary, name, id)\n sales_queue(level, type, code, salary)\nTask: Select amount from activity_log where type exists in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(amount, level, status, id)\n facility_registry(code, amount, level, date)\nTask: Retrieve name from acquisition_log with amount above the MAX(value) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS inv\nWHERE amount > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(id, salary, amount, code)\n receivables_log(type, status, date, value)\nTask: Find code from stock_catalog where id appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS empl\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(value, type, level, date)\n stock_catalog(status, salary, level, type)\nTask: Find id from cost_centers where type appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, level, name, type)\n portfolio_index(value, name, level, status)\nTask: Select name from stock_catalog where level exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, name, amount, level)\n cost_centers(value, amount, level, status)\nTask: Find code from dispatch_queue where amount exceeds the count of value from cost_centers for the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(status, amount, type, id)\n acquisition_log(code, level, value, salary)\nTask: Find name from personnel_registry where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(status, level, name, date)\n cost_centers(salary, amount, name, date)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(id, amount, value, type)\n sales_queue(level, type, name, value)\nTask: Select amount from engagement_log where type exists in sales_queue for the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(status, date, name, code)\n workforce_data(value, level, salary, status)\nTask: Retrieve value from facility_registry with amount above the SUM(salary) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(type, amount, code, status)\n portfolio_index(code, name, value, id)\nTask: Find salary from engagement_log where type appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(value, amount, id, name)\n receivables_log(code, date, value, level)\nTask: Select id from engagement_log that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(status, value, amount, code)\n cost_centers(name, value, level, status)\nTask: Retrieve value from acquisition_log with salary above the SUM(amount) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(status, name, level, id)\n engagement_log(name, id, level, date)\nTask: Find code from activity_log where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(amount, id, date, salary)\n stock_catalog(value, amount, code, salary)\nTask: Select value from engagement_log that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(name, status, value, salary)\n portfolio_index(value, code, type, id)\nTask: Retrieve value from journal_entries whose id is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(level, salary, code, value)\n portfolio_index(status, value, amount, salary)\nTask: Retrieve code from stock_catalog with amount above the COUNT(salary) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(name, id, amount, date)\n sourcing_list(level, amount, name, status)\nTask: Select id from activity_log where value is greater than the average of salary in sourcing_list for matching id.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE value > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(name, id, status, level)\n dispatch_queue(id, date, type, status)\nTask: Find value from cost_centers where a matching record exists in dispatch_queue with the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(status, value, code, date)\n journal_entries(code, id, value, status)\nTask: Retrieve id from portfolio_index whose status is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(name, amount, type, level)\n cost_centers(amount, name, code, level)\nTask: Select salary from sourcing_list where amount is greater than the average of salary in cost_centers for matching type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(name, salary, code, amount)\n engagement_log(type, amount, level, status)\nTask: Select amount from receivables_log where value is greater than the total of salary in engagement_log for matching type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE value > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, name, date, code)\n journal_entries(id, code, amount, value)\nTask: Retrieve value from cost_centers with salary above the COUNT(amount) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, type, code, name)\n cost_centers(level, code, id, type)\nTask: Find code from dispatch_queue where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(type, name, salary, status)\n engagement_log(type, salary, amount, code)\nTask: Select code from journal_entries where type exists in engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(status, level, amount, type)\n receivables_log(date, level, salary, code)\nTask: Select amount from sourcing_list that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(id, level, salary, amount)\n sales_queue(name, code, amount, salary)\nTask: Retrieve id from stocking_sites whose type is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(salary, date, status, amount)\n receivables_log(id, code, value, salary)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(type, value, amount, code)\n portfolio_index(type, value, name, code)\nTask: Retrieve salary from activity_log with amount above the MAX(value) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE amount > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(code, id, status, value)\n sales_queue(level, status, code, type)\nTask: Select amount from journal_entries where code exists in sales_queue for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(name, status, amount, type)\n workforce_data(salary, name, amount, level)\nTask: Select name from journal_entries where salary is greater than the minimum of salary in workforce_data for matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(name, type, status, date)\n area_registry(id, type, value, level)\nTask: Select code from sales_registry that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(id, value, level, status)\n facility_registry(level, id, type, name)\nTask: Find name from activity_log where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(id, amount, level, code)\n stock_catalog(type, id, status, amount)\nTask: Select amount from sales_queue where status exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(name, amount, id, status)\n area_registry(amount, name, code, id)\nTask: Select id from portfolio_index where amount is greater than the total of amount in area_registry for matching level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(status, salary, amount, name)\n stocking_sites(code, salary, level, type)\nTask: Select salary from personnel_registry where level exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(amount, value, type, date)\n sales_registry(date, level, salary, id)\nTask: Find id from area_registry where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(salary, name, date, status)\n stock_catalog(amount, salary, date, status)\nTask: Find code from attribute_groups where code appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(value, date, status, code)\n sales_registry(salary, value, status, name)\nTask: Select value from attribute_groups where type exists in sales_registry for the same type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS mgr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(code, status, date, id)\n facility_registry(name, level, type, amount)\nTask: Select code from attribute_groups where type exists in facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, id, value, level)\n sales_registry(date, type, code, salary)\nTask: Retrieve salary from stock_catalog with value above the MAX(salary) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE value > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(status, name, code, salary)\n cost_centers(level, type, id, date)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(level, amount, date, type)\n stock_catalog(value, salary, type, status)\nTask: Select name from journal_entries where amount is greater than the total of value in stock_catalog for matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE amount > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(date, salary, id, type)\n stock_catalog(id, code, type, name)\nTask: Select name from journal_entries where level exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(type, salary, id, amount)\n portfolio_index(value, code, name, level)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(level, type, code, value)\n stocking_sites(date, code, level, name)\nTask: Retrieve code from area_registry whose id is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(id, type, value, date)\n sales_registry(value, date, amount, id)\nTask: Retrieve name from personnel_registry with value above the COUNT(amount) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(id, status, salary, name)\n stock_catalog(type, value, name, status)\nTask: Select amount from sourcing_list that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(id, status, level, amount)\n stock_catalog(date, name, value, salary)\nTask: Select code from personnel_registry where amount is greater than the total of salary in stock_catalog for matching type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(status, date, code, salary)\n stocking_sites(value, date, name, id)\nTask: Select code from receivables_log where amount is greater than the count of of value in stocking_sites for matching level.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(salary, id, date, name)\n dispatch_queue(code, salary, type, value)\nTask: Find name from journal_entries where level appears in dispatch_queue entries with matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(salary, amount, type, code)\n stock_catalog(name, id, code, salary)\nTask: Find salary from area_registry where value exceeds the total amount from stock_catalog for the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, code, value, salary)\n engagement_log(value, date, code, salary)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(type, name, level, code)\n workforce_data(status, salary, date, value)\nTask: Select id from engagement_log where level exists in workforce_data for the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(amount, value, id, salary)\n dispatch_queue(date, type, id, value)\nTask: Find code from journal_entries where status appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(date, type, amount, value)\n cost_centers(name, salary, date, value)\nTask: Retrieve value from workforce_data whose status is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(value, code, id, level)\n area_registry(salary, date, amount, status)\nTask: Retrieve name from cost_centers whose type is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(date, salary, status, id)\n facility_registry(name, salary, id, code)\nTask: Select code from journal_entries where value is greater than the average of value in facility_registry for matching code.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(level, status, name, salary)\n sourcing_list(level, value, id, status)\nTask: Select salary from cost_centers where salary is greater than the minimum of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(salary, name, type, amount)\n cost_centers(code, amount, id, date)\nTask: Retrieve amount from sales_registry whose status is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(name, date, value, salary)\n sales_registry(id, status, value, amount)\nTask: Select id from stocking_sites where amount is greater than the average of salary in sales_registry for matching status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(value, status, salary, date)\n acquisition_log(status, code, amount, value)\nTask: Find id from sales_queue where value exceeds the total amount from acquisition_log for the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE value > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(value, code, date, status)\n attribute_groups(id, value, salary, name)\nTask: Select name from dispatch_queue where type exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(amount, level, id, salary)\n cost_centers(date, id, salary, status)\nTask: Find value from area_registry where value exceeds the total salary from cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE value > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(type, level, name, value)\n sales_queue(amount, type, id, value)\nTask: Retrieve code from sourcing_list whose id is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(type, name, date, level)\n sales_queue(id, level, type, status)\nTask: Select salary from personnel_registry where status exists in sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(value, salary, amount, code)\n portfolio_index(value, type, level, date)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(value, amount, salary, code)\n attribute_groups(value, level, code, salary)\nTask: Select code from portfolio_index that have at least one matching row in attribute_groups for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, level, type, code)\n activity_log(type, status, id, date)\nTask: Find name from dispatch_queue where value exceeds the maximum amount from activity_log for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE value > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(code, amount, name, type)\n personnel_registry(status, date, id, type)\nTask: Retrieve amount from acquisition_log with value above the SUM(salary) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE value > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(level, status, code, name)\n engagement_log(code, name, id, level)\nTask: Select salary from workforce_data where value is greater than the total of salary in engagement_log for matching id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE value > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(salary, type, value, status)\n receivables_log(id, type, code, date)\nTask: Retrieve salary from journal_entries that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(salary, amount, date, level)\n dispatch_queue(salary, value, level, id)\nTask: Retrieve value from acquisition_log whose type is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM acquisition_log AS prod\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(amount, level, name, status)\n engagement_log(type, status, salary, amount)\nTask: Find name from sales_queue where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(salary, level, status, name)\n dispatch_queue(id, date, status, type)\nTask: Find code from cost_centers where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(amount, date, type, code)\n receivables_log(level, salary, code, id)\nTask: Retrieve id from dispatch_queue with salary above the MAX(salary) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(value, amount, level, salary)\n acquisition_log(name, code, id, level)\nTask: Select code from facility_registry that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(code, date, status, value)\n sourcing_list(salary, status, code, type)\nTask: Retrieve id from engagement_log whose status is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(name, date, code, id)\n dispatch_queue(value, name, level, status)\nTask: Find code from engagement_log where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, type, amount, value)\n portfolio_index(level, date, code, value)\nTask: Find code from stocking_sites where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(value, salary, code, id)\n portfolio_index(code, type, id, amount)\nTask: Select id from sales_registry where level exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS mgr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(id, code, date, name)\n cost_centers(date, amount, salary, type)\nTask: Retrieve salary from sourcing_list whose id is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS ord\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(amount, name, value, code)\n journal_entries(status, date, code, salary)\nTask: Find salary from sourcing_list where code appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(status, id, code, level)\n journal_entries(salary, id, date, level)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(name, date, status, type)\n portfolio_index(salary, date, type, value)\nTask: Retrieve salary from sales_queue whose level is found in portfolio_index rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(amount, salary, level, type)\n portfolio_index(level, amount, type, status)\nTask: Select salary from workforce_data that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(status, code, salary, amount)\n stock_catalog(amount, name, salary, level)\nTask: Select salary from stocking_sites where type exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS usr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(level, code, date, name)\n stocking_sites(type, amount, level, id)\nTask: Retrieve code from cost_centers that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT code FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(type, amount, value, level)\n receivables_log(value, date, type, salary)\nTask: Find amount from engagement_log where salary exceeds the total salary from receivables_log for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, code, value, salary)\n facility_registry(type, amount, date, code)\nTask: Select value from acquisition_log that have at least one matching row in facility_registry for the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, salary, amount, name)\n attribute_groups(type, code, amount, status)\nTask: Select salary from stock_catalog that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(amount, code, status, name)\n stocking_sites(status, type, value, id)\nTask: Retrieve salary from engagement_log whose type is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(value, date, type, id)\n stocking_sites(amount, status, date, salary)\nTask: Retrieve id from area_registry whose type is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(date, id, status, amount)\n sourcing_list(code, status, level, value)\nTask: Select value from journal_entries that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(salary, code, amount, level)\n dispatch_queue(type, value, code, level)\nTask: Select amount from workforce_data where salary is greater than the total of amount in dispatch_queue for matching status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(id, name, date, type)\n cost_centers(level, date, name, salary)\nTask: Find salary from portfolio_index where value exceeds the minimum salary from cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE value > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(amount, salary, value, code)\n sales_queue(type, amount, value, id)\nTask: Retrieve value from cost_centers that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(code, amount, salary, id)\n workforce_data(code, name, value, level)\nTask: Retrieve code from activity_log that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(level, type, amount, code)\n activity_log(date, id, salary, value)\nTask: Find code from sales_registry where level appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(type, level, value, code)\n activity_log(type, value, salary, status)\nTask: Retrieve value from sales_queue that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(amount, type, salary, status)\n acquisition_log(type, id, level, value)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, name, date, level)\n area_registry(level, salary, status, code)\nTask: Select salary from sourcing_list that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(value, amount, salary, level)\n sales_queue(id, date, salary, type)\nTask: Select name from engagement_log where salary is greater than the total of value in sales_queue for matching code.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(status, value, level, type)\n sourcing_list(value, type, id, name)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(status, name, value, id)\n journal_entries(code, id, amount, status)\nTask: Retrieve salary from area_registry whose level is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(level, date, code, amount)\n journal_entries(value, salary, status, amount)\nTask: Find amount from facility_registry where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(level, status, type, salary)\n portfolio_index(value, level, type, status)\nTask: Find id from workforce_data where salary exceeds the minimum value from portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE salary > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(status, id, amount, name)\n stocking_sites(level, id, status, name)\nTask: Retrieve name from facility_registry with amount above the MIN(amount) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE amount > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(name, salary, type, amount)\n stock_catalog(id, status, level, code)\nTask: Select amount from acquisition_log where value is greater than the average of amount in stock_catalog for matching status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE value > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, id, type, salary)\n personnel_registry(salary, level, type, status)\nTask: Find id from attribute_groups where value exceeds the average value from personnel_registry for the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS empl\nWHERE value > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(code, value, status, level)\n activity_log(name, salary, value, id)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, type, id, value)\n engagement_log(value, name, status, amount)\nTask: Find value from dispatch_queue where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(value, date, status, name)\n journal_entries(status, level, salary, value)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(status, level, name, id)\n sales_queue(status, date, code, value)\nTask: Select salary from workforce_data that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, salary, value, date)\n sales_queue(status, id, level, salary)\nTask: Select value from personnel_registry where type exists in sales_queue for the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS prod\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(type, amount, status, value)\n engagement_log(code, salary, level, status)\nTask: Retrieve id from activity_log with amount above the AVG(amount) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(amount, code, name, date)\n sales_registry(value, level, status, salary)\nTask: Find id from activity_log where salary exceeds the maximum salary from sales_registry for the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(type, amount, salary, id)\n sales_registry(status, date, level, salary)\nTask: Select value from personnel_registry where salary is greater than the total of amount in sales_registry for matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(salary, level, value, code)\n attribute_groups(salary, id, code, name)\nTask: Select salary from journal_entries where value is greater than the maximum of value in attribute_groups for matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE value > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(date, status, level, code)\n workforce_data(name, value, level, code)\nTask: Find amount from area_registry where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(date, amount, salary, code)\n receivables_log(type, salary, amount, code)\nTask: Find name from attribute_groups where id appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(status, date, name, level)\n cost_centers(code, type, value, salary)\nTask: Select amount from sales_registry where salary is greater than the average of value in cost_centers for matching code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE salary > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(code, salary, status, amount)\n workforce_data(status, salary, name, date)\nTask: Find code from acquisition_log where code appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, level, name, value)\n receivables_log(amount, status, code, name)\nTask: Find amount from dispatch_queue where salary exceeds the average salary from receivables_log for the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(level, salary, code, date)\n acquisition_log(name, level, date, id)\nTask: Select code from cost_centers where status exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(id, type, value, salary)\n activity_log(salary, value, level, status)\nTask: Select value from attribute_groups where type exists in activity_log for the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(status, date, amount, name)\n receivables_log(type, level, amount, date)\nTask: Find amount from sourcing_list where level appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(status, id, date, salary)\n sales_queue(salary, date, value, id)\nTask: Select amount from acquisition_log where level exists in sales_queue for the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(status, id, type, salary)\n workforce_data(name, status, code, date)\nTask: Select name from facility_registry where status exists in workforce_data for the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(name, status, salary, date)\n workforce_data(date, status, value, amount)\nTask: Select id from sales_registry that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(value, code, salary, status)\n portfolio_index(date, amount, status, id)\nTask: Select id from journal_entries that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(type, date, code, status)\n stock_catalog(amount, name, id, value)\nTask: Retrieve code from engagement_log with salary above the MIN(amount) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(level, name, id, date)\n sales_registry(name, status, type, date)\nTask: Find code from personnel_registry where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(type, value, code, status)\n journal_entries(id, name, date, value)\nTask: Retrieve amount from cost_centers that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(name, salary, level, status)\n attribute_groups(status, level, type, code)\nTask: Retrieve code from engagement_log whose level is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(salary, name, level, type)\n sourcing_list(amount, code, id, salary)\nTask: Retrieve id from journal_entries with value above the MAX(value) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "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}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(id, value, date, type)\n portfolio_index(code, name, id, value)\nTask: Select name from personnel_registry where code exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(type, code, salary, name)\n facility_registry(date, value, id, code)\nTask: Find id from personnel_registry where salary exceeds the count of salary from facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(name, id, status, salary)\n sales_registry(id, salary, level, amount)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(name, status, salary, level)\n stock_catalog(code, id, date, type)\nTask: Find salary from sales_queue where type appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(code, value, date, name)\n receivables_log(level, name, id, code)\nTask: Select salary from portfolio_index where salary is greater than the average of amount in receivables_log for matching code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(id, salary, status, code)\n sourcing_list(salary, status, code, date)\nTask: Select code from journal_entries where code exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(id, salary, type, code)\n journal_entries(level, status, name, code)\nTask: Select name from attribute_groups where level exists in journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, status, id, value)\n stocking_sites(amount, salary, status, date)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(amount, salary, value, date)\n acquisition_log(amount, name, type, id)\nTask: Find amount from area_registry where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(type, value, date, level)\n sourcing_list(name, amount, status, level)\nTask: Select code from stock_catalog where status exists in sourcing_list for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(id, salary, code, value)\n stock_catalog(name, status, level, code)\nTask: Select id from journal_entries that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(type, code, amount, value)\n workforce_data(amount, id, level, name)\nTask: Find id from attribute_groups where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(status, id, type, name)\n engagement_log(name, value, salary, amount)\nTask: Retrieve salary from acquisition_log with value above the SUM(salary) of engagement_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE value > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(date, status, salary, level)\n journal_entries(amount, type, name, level)\nTask: Select name from workforce_data where type exists in journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(date, salary, name, value)\n dispatch_queue(level, salary, value, status)\nTask: Select value from engagement_log where salary is greater than the total of salary in dispatch_queue for matching code.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(date, id, amount, code)\n receivables_log(value, date, type, amount)\nTask: Find amount from personnel_registry where type appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(type, id, status, level)\n attribute_groups(name, status, salary, id)\nTask: Retrieve name from sourcing_list whose id is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(amount, level, salary, code)\n engagement_log(value, amount, date, type)\nTask: Select salary from sales_registry where salary is greater than the total of amount in engagement_log for matching code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(status, id, salary, value)\n sales_queue(date, type, value, status)\nTask: Find name from journal_entries where salary exceeds the maximum salary from sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(level, id, name, code)\n attribute_groups(type, date, code, amount)\nTask: Find value from cost_centers where amount exceeds the count of salary from attribute_groups for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, code, type, id)\n sales_queue(date, level, value, salary)\nTask: Retrieve amount from acquisition_log whose level is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, date, code, value)\n acquisition_log(code, status, name, type)\nTask: Select id from dispatch_queue where type exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(status, amount, id, level)\n attribute_groups(amount, value, id, type)\nTask: Find name from journal_entries where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(salary, type, code, name)\n area_registry(amount, date, value, id)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(status, code, date, salary)\n workforce_data(status, level, salary, code)\nTask: Select salary from portfolio_index where code exists in workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(name, value, id, amount)\n dispatch_queue(name, salary, level, id)\nTask: Select id from engagement_log where amount is greater than the count of of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(amount, status, id, date)\n workforce_data(value, code, amount, status)\nTask: Select salary from attribute_groups where level exists in workforce_data for the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(id, level, amount, date)\n portfolio_index(amount, name, type, status)\nTask: Select salary from journal_entries that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(date, code, type, salary)\n acquisition_log(salary, level, code, value)\nTask: Select id from workforce_data that have at least one matching row in acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, status, value, level)\n cost_centers(type, id, status, level)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(status, name, id, type)\n acquisition_log(type, date, code, value)\nTask: Select id from sourcing_list where status exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(salary, date, name, type)\n sourcing_list(salary, id, date, status)\nTask: Find value from activity_log where status appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(status, value, level, id)\n workforce_data(name, value, id, code)\nTask: Find code from receivables_log where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(date, name, value, salary)\n stock_catalog(code, amount, value, name)\nTask: Retrieve amount from activity_log with value above the COUNT(value) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE value > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(code, date, name, level)\n acquisition_log(amount, value, salary, code)\nTask: Select id from journal_entries where status exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(name, id, status, date)\n sourcing_list(type, name, amount, code)\nTask: Find value from personnel_registry where status appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(name, code, value, level)\n stocking_sites(id, amount, value, type)\nTask: Select id from journal_entries where id exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(amount, date, salary, type)\n acquisition_log(status, level, id, salary)\nTask: Find name from attribute_groups where level appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(name, date, salary, type)\n journal_entries(code, id, salary, name)\nTask: Select id from facility_registry that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(status, amount, name, value)\n cost_centers(type, name, id, value)\nTask: Select id from activity_log where status exists in cost_centers for the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS mgr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(name, amount, level, id)\n workforce_data(id, status, type, salary)\nTask: Select value from portfolio_index that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(name, salary, level, value)\n activity_log(name, date, id, value)\nTask: Find salary from personnel_registry where status appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(id, level, value, date)\n sales_registry(salary, name, status, level)\nTask: Retrieve amount from attribute_groups with value above the MAX(salary) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS dept\nWHERE value > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(type, level, value, date)\n area_registry(value, type, level, salary)\nTask: Select salary from engagement_log where code exists in area_registry for the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(value, id, level, amount)\n facility_registry(code, level, id, value)\nTask: Select salary from activity_log where id exists in facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, status, amount, date)\n workforce_data(value, date, salary, code)\nTask: Retrieve id from portfolio_index with value above the SUM(salary) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, code, status, value)\n area_registry(status, type, level, name)\nTask: Find id from stock_catalog where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(date, code, id, level)\n sourcing_list(salary, type, level, id)\nTask: Find salary from receivables_log where code appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(date, value, type, code)\n sales_queue(date, type, status, salary)\nTask: Retrieve value from sales_registry whose id is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(type, date, id, salary)\n area_registry(name, code, amount, id)\nTask: Select name from stock_catalog where code exists in area_registry for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS ord\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(salary, code, amount, date)\n area_registry(level, salary, status, value)\nTask: Retrieve code from sourcing_list whose level is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(status, level, value, code)\n facility_registry(id, amount, date, name)\nTask: Find salary from engagement_log where salary exceeds the maximum salary from facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(date, id, type, level)\n activity_log(salary, id, type, code)\nTask: Retrieve code from sourcing_list with salary above the COUNT(amount) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(status, type, code, value)\n attribute_groups(type, date, salary, name)\nTask: Find code from portfolio_index where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(name, date, amount, salary)\n facility_registry(id, salary, name, code)\nTask: Retrieve value from journal_entries with salary above the MIN(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(status, amount, type, level)\n sourcing_list(salary, status, level, id)\nTask: Find salary from sales_registry where level appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(date, level, code, id)\n sales_registry(salary, status, id, name)\nTask: Retrieve value from journal_entries whose level is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(date, type, level, value)\n sourcing_list(id, value, salary, name)\nTask: Find salary from stock_catalog where salary exceeds the minimum salary from sourcing_list for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(date, amount, type, name)\n stock_catalog(status, date, type, amount)\nTask: Retrieve id from cost_centers with salary above the MIN(amount) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE salary > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(date, code, amount, id)\n journal_entries(amount, level, id, date)\nTask: Retrieve name from activity_log with salary above the COUNT(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, code, amount, id)\n cost_centers(code, date, salary, status)\nTask: Select name from sourcing_list that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, status, id, value)\n receivables_log(code, status, id, salary)\nTask: Find code from acquisition_log where salary exceeds the average value from receivables_log for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(name, date, salary, level)\n sales_queue(id, value, level, name)\nTask: Find name from personnel_registry where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(code, type, name, level)\n engagement_log(value, amount, status, name)\nTask: Find value from cost_centers where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(code, id, date, value)\n cost_centers(value, code, amount, status)\nTask: Select id from portfolio_index that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, id, amount, code)\n area_registry(id, status, salary, value)\nTask: Find code from dispatch_queue where status appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS emp\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(id, date, code, value)\n engagement_log(name, amount, status, type)\nTask: Select name from activity_log where amount is greater than the average of amount in engagement_log for matching code.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(code, status, value, amount)\n receivables_log(id, amount, value, name)\nTask: Select value from journal_entries where amount is greater than the count of of salary in receivables_log for matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(type, name, level, code)\n attribute_groups(status, value, salary, level)\nTask: Find amount from dispatch_queue where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(amount, code, level, value)\n stocking_sites(level, id, code, date)\nTask: Select id from dispatch_queue where salary is greater than the count of of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, code, date, id)\n engagement_log(value, date, code, type)\nTask: Find salary from stocking_sites where id appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(salary, date, id, name)\n attribute_groups(date, type, code, status)\nTask: Retrieve code from stock_catalog with amount above the SUM(value) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE amount > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, level, status, type)\n workforce_data(amount, status, code, salary)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(status, id, level, name)\n personnel_registry(code, id, status, amount)\nTask: Find id from sales_registry where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(date, type, salary, name)\n stocking_sites(id, level, code, type)\nTask: Retrieve value from sales_queue that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(id, type, value, date)\n stock_catalog(value, salary, amount, name)\nTask: Retrieve id from engagement_log with value above the COUNT(amount) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(type, name, id, code)\n area_registry(value, type, salary, id)\nTask: Find value from attribute_groups where code appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(id, level, status, type)\n sourcing_list(status, date, amount, code)\nTask: Find name from workforce_data where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(code, amount, date, status)\n dispatch_queue(salary, date, id, code)\nTask: Retrieve code from attribute_groups with amount above the MIN(value) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE amount > (\n SELECT MIN(value) FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(salary, date, id, level)\n engagement_log(salary, code, id, status)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, code, value, id)\n cost_centers(amount, value, name, level)\nTask: Find name from stock_catalog where type appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(id, name, type, code)\n sales_registry(code, name, level, salary)\nTask: Select id from engagement_log where amount is greater than the minimum of salary in sales_registry for matching level.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(level, value, salary, status)\n activity_log(code, date, value, id)\nTask: Retrieve salary from dispatch_queue whose level is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(level, id, code, date)\n workforce_data(value, date, salary, level)\nTask: Find amount from sourcing_list where status appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(status, type, date, code)\n facility_registry(amount, status, date, type)\nTask: Find value from journal_entries where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(status, id, amount, date)\n activity_log(status, type, level, amount)\nTask: Retrieve code from acquisition_log with amount above the MIN(salary) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(id, status, type, code)\n dispatch_queue(date, amount, level, type)\nTask: Retrieve amount from receivables_log whose type is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(type, code, date, level)\n workforce_data(value, salary, status, code)\nTask: Select id from stock_catalog where amount is greater than the total of salary in workforce_data for matching level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(level, status, type, amount)\n dispatch_queue(name, status, type, date)\nTask: Select code from activity_log that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, id, amount, code)\n acquisition_log(level, value, status, amount)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(type, date, name, code)\n portfolio_index(id, type, code, level)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(date, amount, code, name)\n personnel_registry(status, salary, id, name)\nTask: Find amount from attribute_groups where id appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(code, date, id, level)\n stocking_sites(salary, type, level, status)\nTask: Select name from receivables_log where value is greater than the minimum of salary in stocking_sites for matching status.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE value > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(salary, date, name, value)\n area_registry(date, salary, id, status)\nTask: Find id from facility_registry where code appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(level, id, date, status)\n acquisition_log(name, salary, date, level)\nTask: Find code from facility_registry where salary exceeds the average salary from acquisition_log for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(id, type, code, salary)\n dispatch_queue(status, level, amount, date)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(code, amount, level, status)\n stocking_sites(amount, id, name, type)\nTask: Select name from acquisition_log where value is greater than the total of value in stocking_sites for matching type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(code, date, level, value)\n journal_entries(salary, type, value, name)\nTask: Select code from receivables_log where value is greater than the total of salary in journal_entries for matching id.\nSQL:", "sql": "SELECT code FROM receivables_log AS inv\nWHERE value > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(type, amount, salary, code)\n engagement_log(date, salary, amount, type)\nTask: Select value from cost_centers where salary is greater than the maximum of amount in engagement_log for matching type.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(level, salary, value, date)\n area_registry(salary, code, value, status)\nTask: Select value from receivables_log where amount is greater than the total of amount in area_registry for matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE amount > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(status, salary, code, name)\n stocking_sites(value, name, type, status)\nTask: Find code from engagement_log where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(status, name, level, code)\n stock_catalog(name, status, value, salary)\nTask: Retrieve amount from acquisition_log with value above the COUNT(value) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE value > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(amount, level, type, name)\n facility_registry(amount, id, status, type)\nTask: Retrieve value from cost_centers with amount above the AVG(salary) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(amount, type, id, level)\n engagement_log(name, amount, status, salary)\nTask: Retrieve value from sales_queue with value above the MIN(amount) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE value > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(type, level, id, code)\n dispatch_queue(status, type, amount, salary)\nTask: Retrieve salary from portfolio_index with amount above the SUM(value) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE amount > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(value, name, amount, type)\n stock_catalog(amount, status, salary, name)\nTask: Find code from acquisition_log where salary exceeds the maximum salary from stock_catalog for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(status, type, code, date)\n sales_registry(date, value, status, type)\nTask: Find code from attribute_groups where salary exceeds the total amount from sales_registry for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(type, name, status, id)\n portfolio_index(name, code, type, date)\nTask: Select value from facility_registry where id exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(code, name, salary, amount)\n stocking_sites(status, amount, salary, code)\nTask: Find name from workforce_data where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(date, name, amount, status)\n sales_queue(code, status, salary, type)\nTask: Retrieve name from receivables_log whose code is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(date, code, id, level)\n receivables_log(date, status, code, salary)\nTask: Select code from stocking_sites that have at least one matching row in receivables_log for the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(salary, value, status, name)\n receivables_log(name, type, date, status)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(status, value, amount, salary)\n sales_queue(type, amount, level, salary)\nTask: Find amount from stocking_sites where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(name, level, date, value)\n acquisition_log(name, amount, value, salary)\nTask: Find id from journal_entries where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(level, code, amount, type)\n sales_queue(amount, code, name, id)\nTask: Select value from sourcing_list where level exists in sales_queue for the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(date, type, amount, name)\n sales_queue(value, code, id, status)\nTask: Select id from cost_centers where salary is greater than the average of amount in sales_queue for matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, type, name, level)\n activity_log(type, date, value, level)\nTask: Select name from dispatch_queue where value is greater than the maximum of value in activity_log for matching status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(code, date, salary, name)\n stocking_sites(value, name, id, salary)\nTask: Select name from area_registry that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(value, id, code, salary)\n dispatch_queue(level, code, date, type)\nTask: Find code from sales_registry where code appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(status, value, level, date)\n stocking_sites(value, type, name, date)\nTask: Retrieve id from dispatch_queue with salary above the AVG(salary) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(id, name, type, amount)\n portfolio_index(code, type, level, status)\nTask: Select id from stocking_sites where value is greater than the average of value in portfolio_index for matching code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS ord\nWHERE value > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(type, value, amount, status)\n sourcing_list(status, id, type, salary)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(type, value, date, salary)\n workforce_data(value, date, level, code)\nTask: Retrieve id from personnel_registry whose type is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(salary, amount, level, status)\n stocking_sites(value, name, code, date)\nTask: Select value from sales_registry where amount is greater than the count of of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(type, id, code, name)\n engagement_log(date, status, amount, code)\nTask: Select amount from cost_centers where salary is greater than the average of value in engagement_log for matching level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE salary > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(status, name, date, level)\n personnel_registry(name, id, date, level)\nTask: Find id from area_registry where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(amount, level, date, value)\n sourcing_list(level, salary, code, date)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(name, type, salary, code)\n cost_centers(type, status, id, salary)\nTask: Select name from sales_registry where amount is greater than the maximum of amount in cost_centers for matching id.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(code, amount, type, date)\n attribute_groups(date, code, name, id)\nTask: Find amount from activity_log where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(date, name, type, status)\n journal_entries(value, amount, name, id)\nTask: Select code from cost_centers where amount is greater than the maximum of salary in journal_entries for matching type.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE amount > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(type, code, id, salary)\n area_registry(date, code, name, level)\nTask: Retrieve salary from stock_catalog whose id is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(value, code, amount, salary)\n dispatch_queue(amount, type, name, salary)\nTask: Find id from stocking_sites where id appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(name, salary, date, value)\n journal_entries(amount, id, level, value)\nTask: Retrieve id from workforce_data with amount above the SUM(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(type, code, value, amount)\n receivables_log(status, id, salary, type)\nTask: Find salary from portfolio_index where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(id, type, name, date)\n engagement_log(code, amount, id, level)\nTask: Select name from facility_registry where code exists in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(id, value, code, status)\n engagement_log(code, id, level, value)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(salary, id, amount, date)\n receivables_log(level, status, salary, code)\nTask: Retrieve salary from workforce_data with amount above the SUM(salary) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, amount, type, level)\n portfolio_index(id, date, level, amount)\nTask: Select amount from facility_registry that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(type, date, amount, status)\n stocking_sites(type, name, level, code)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(level, salary, amount, name)\n engagement_log(type, value, salary, code)\nTask: Select name from portfolio_index where status exists in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(id, type, amount, name)\n acquisition_log(amount, value, name, id)\nTask: Select amount from sourcing_list where status exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(date, salary, status, type)\n area_registry(amount, value, salary, level)\nTask: Find value from sales_queue where salary exceeds the minimum amount from area_registry for the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(name, id, level, amount)\n activity_log(name, date, salary, value)\nTask: Retrieve id from cost_centers with salary above the SUM(amount) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, status, id, salary)\n portfolio_index(status, date, name, id)\nTask: Select amount from activity_log where level exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(name, level, code, amount)\n sourcing_list(salary, amount, code, level)\nTask: Find value from sales_queue where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(id, status, salary, code)\n area_registry(value, salary, level, id)\nTask: Find code from sales_queue where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(level, value, date, amount)\n cost_centers(salary, id, code, date)\nTask: Find value from attribute_groups where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, status, type, salary)\n sourcing_list(salary, code, status, id)\nTask: Find id from dispatch_queue where status appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(value, status, level, name)\n receivables_log(status, name, value, type)\nTask: Find id from attribute_groups where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(value, status, code, id)\n activity_log(status, value, type, amount)\nTask: Select code from acquisition_log where type exists in activity_log for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(status, type, level, code)\n dispatch_queue(amount, name, id, level)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in dispatch_queue sharing the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, date, code, value)\n receivables_log(name, amount, type, status)\nTask: Find salary from sourcing_list where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(date, salary, type, code)\n personnel_registry(code, amount, date, id)\nTask: Select code from sourcing_list where status exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, level, id, code)\n dispatch_queue(status, date, salary, type)\nTask: Select name from stock_catalog that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(salary, value, name, level)\n cost_centers(name, id, salary, type)\nTask: Find code from receivables_log where status appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(id, type, amount, code)\n attribute_groups(id, salary, date, level)\nTask: Find value from sourcing_list where level appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(value, name, type, id)\n journal_entries(value, level, id, status)\nTask: Find id from attribute_groups where salary exceeds the minimum salary from journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(value, level, code, date)\n facility_registry(id, status, amount, level)\nTask: Select value from cost_centers where code exists in facility_registry for the same level.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(code, value, amount, status)\n receivables_log(date, type, salary, id)\nTask: Find value from journal_entries where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(level, date, status, id)\n receivables_log(type, amount, status, value)\nTask: Find id from stocking_sites where status appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(level, status, type, value)\n sourcing_list(code, type, value, date)\nTask: Retrieve value from area_registry with value above the MIN(amount) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE value > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(level, date, status, id)\n portfolio_index(type, level, date, code)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(date, id, name, amount)\n journal_entries(id, salary, code, status)\nTask: Select amount from workforce_data that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(code, amount, status, id)\n area_registry(level, type, id, name)\nTask: Select amount from journal_entries that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, code, status, value)\n activity_log(value, salary, status, amount)\nTask: Select amount from sourcing_list where type exists in activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(level, amount, type, value)\n acquisition_log(salary, value, level, date)\nTask: Find amount from personnel_registry where value exceeds the average amount from acquisition_log for the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE value > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(type, date, status, salary)\n acquisition_log(amount, date, name, level)\nTask: Find name from personnel_registry where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(amount, status, level, date)\n sales_queue(id, salary, value, type)\nTask: Retrieve code from journal_entries with salary above the MIN(amount) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(name, type, status, level)\n facility_registry(status, level, value, date)\nTask: Select amount from cost_centers that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(status, date, amount, value)\n cost_centers(code, salary, amount, name)\nTask: Select amount from area_registry where status exists in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(value, id, name, salary)\n journal_entries(id, level, type, value)\nTask: Retrieve salary from dispatch_queue with amount above the AVG(amount) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(code, name, level, type)\n acquisition_log(name, value, id, level)\nTask: Select code from sourcing_list that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, status, salary, date)\n activity_log(id, salary, level, type)\nTask: Select value from cost_centers where salary is greater than the average of salary in activity_log for matching status.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(type, level, status, value)\n dispatch_queue(date, code, salary, status)\nTask: Select salary from sales_queue where salary is greater than the maximum of value in dispatch_queue for matching type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE salary > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(id, name, type, value)\n facility_registry(salary, code, value, date)\nTask: Retrieve code from acquisition_log that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(id, code, date, level)\n facility_registry(date, salary, value, code)\nTask: Find amount from workforce_data where value exceeds the count of salary from facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE value > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(type, amount, level, code)\n receivables_log(salary, status, date, code)\nTask: Select salary from facility_registry that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(type, amount, code, salary)\n attribute_groups(amount, status, salary, name)\nTask: Select code from cost_centers where value is greater than the average of amount in attribute_groups for matching type.\nSQL:", "sql": "SELECT code FROM cost_centers AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(status, level, salary, id)\n area_registry(salary, status, amount, name)\nTask: Select salary from journal_entries where id exists in area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(value, id, status, salary)\n sales_registry(level, name, value, type)\nTask: Select value from stock_catalog that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(code, amount, status, date)\n stock_catalog(level, amount, value, code)\nTask: Select code from acquisition_log where type exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(value, salary, id, name)\n workforce_data(id, code, date, status)\nTask: Retrieve name from portfolio_index with salary above the MAX(amount) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(date, code, level, id)\n portfolio_index(amount, level, code, status)\nTask: Select value from sales_queue that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(status, amount, type, salary)\n stocking_sites(date, value, status, level)\nTask: Retrieve name from sales_queue that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(code, amount, id, type)\n personnel_registry(date, name, level, status)\nTask: Retrieve code from journal_entries with amount above the AVG(salary) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(level, value, id, name)\n portfolio_index(name, amount, id, salary)\nTask: Find amount from acquisition_log where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(value, salary, id, name)\n sourcing_list(amount, date, id, value)\nTask: Select code from workforce_data where id exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(code, id, date, salary)\n journal_entries(type, id, level, amount)\nTask: Select id from activity_log that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(code, level, name, date)\n facility_registry(type, value, id, level)\nTask: Find salary from sales_registry where salary exceeds the count of salary from facility_registry for the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(code, level, value, id)\n area_registry(code, amount, type, name)\nTask: Select name from stocking_sites where amount is greater than the minimum of value in area_registry for matching code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(date, code, salary, amount)\n engagement_log(level, salary, code, status)\nTask: Retrieve salary from stocking_sites with amount above the SUM(value) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE amount > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(code, id, status, amount)\n journal_entries(code, level, amount, name)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, salary, status, value)\n receivables_log(status, level, salary, amount)\nTask: Select code from sourcing_list that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(amount, type, value, status)\n engagement_log(amount, status, value, level)\nTask: Retrieve name from receivables_log with salary above the SUM(salary) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(status, value, amount, name)\n sales_queue(name, level, id, amount)\nTask: Retrieve amount from facility_registry with value above the COUNT(salary) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(code, status, type, date)\n stock_catalog(type, value, amount, level)\nTask: Retrieve id from portfolio_index with value above the MIN(value) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE value > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(date, code, level, value)\n journal_entries(status, date, amount, code)\nTask: Retrieve code from personnel_registry whose status is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(type, date, name, id)\n portfolio_index(date, name, code, type)\nTask: Find id from area_registry where level appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(amount, value, level, name)\n journal_entries(code, date, amount, value)\nTask: Select name from workforce_data where amount is greater than the average of value in journal_entries for matching code.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE amount > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, date, status, type)\n activity_log(id, status, salary, value)\nTask: Retrieve code from portfolio_index with salary above the COUNT(amount) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE salary > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(salary, date, name, amount)\n journal_entries(value, level, date, status)\nTask: Retrieve value from area_registry with value above the AVG(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE value > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(value, amount, date, status)\n area_registry(salary, id, value, name)\nTask: Retrieve salary from receivables_log with salary above the MAX(salary) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(name, status, amount, date)\n stocking_sites(salary, amount, date, code)\nTask: Retrieve name from attribute_groups whose code is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(type, code, salary, date)\n area_registry(level, name, code, type)\nTask: Find code from attribute_groups where status appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(value, amount, type, salary)\n stocking_sites(date, status, amount, code)\nTask: Retrieve value from acquisition_log that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(status, type, date, name)\n engagement_log(value, code, date, amount)\nTask: Select amount from stock_catalog where salary is greater than the total of value in engagement_log for matching id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE salary > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, amount, name, value)\n workforce_data(type, amount, salary, id)\nTask: Find salary from engagement_log where amount exceeds the average amount from workforce_data for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(level, status, name, code)\n portfolio_index(value, amount, name, date)\nTask: Find code from cost_centers where type appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(amount, date, code, status)\n sales_registry(type, status, date, code)\nTask: Select code from workforce_data where value is greater than the average of salary in sales_registry for matching status.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE value > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(type, status, value, code)\n portfolio_index(date, status, value, id)\nTask: Retrieve amount from stocking_sites that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(id, value, code, level)\n activity_log(level, code, status, name)\nTask: Retrieve id from receivables_log whose level is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(code, value, date, level)\n area_registry(type, id, salary, status)\nTask: Retrieve value from sourcing_list whose id is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(amount, status, level, name)\n cost_centers(code, amount, type, date)\nTask: Retrieve value from area_registry with salary above the SUM(salary) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(value, status, level, salary)\n sourcing_list(code, level, date, amount)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(code, amount, date, name)\n engagement_log(status, type, id, salary)\nTask: Retrieve salary from area_registry whose code is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(value, code, type, amount)\n sales_queue(amount, status, type, salary)\nTask: Find salary from personnel_registry where salary exceeds the total amount from sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(value, salary, name, id)\n sales_registry(name, id, value, type)\nTask: Retrieve code from workforce_data with value above the AVG(amount) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "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}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(code, date, value, type)\n cost_centers(id, salary, code, amount)\nTask: Find code from workforce_data where value exceeds the total salary from cost_centers for the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE value > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(amount, date, salary, id)\n dispatch_queue(type, date, status, id)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(date, level, id, value)\n attribute_groups(name, type, salary, level)\nTask: Find value from sales_registry where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(value, code, level, name)\n sales_queue(salary, date, status, value)\nTask: Find name from acquisition_log where salary exceeds the count of value from sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(code, salary, value, date)\n stock_catalog(status, value, name, type)\nTask: Retrieve name from sourcing_list with value above the MAX(amount) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE value > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, type, amount, status)\n journal_entries(status, value, date, amount)\nTask: Retrieve code from dispatch_queue with amount above the MIN(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(date, type, salary, code)\n area_registry(status, value, code, name)\nTask: Find salary from personnel_registry where level appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, date, amount, type)\n stocking_sites(status, date, level, id)\nTask: Find amount from dispatch_queue where type appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(type, value, level, date)\n engagement_log(amount, status, type, value)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(value, amount, level, code)\n engagement_log(code, type, salary, value)\nTask: Find amount from receivables_log where amount exceeds the count of salary from engagement_log for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(level, id, name, value)\n acquisition_log(level, amount, type, name)\nTask: Select salary from receivables_log where salary is greater than the minimum of value in acquisition_log for matching type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE salary > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(name, salary, level, type)\n facility_registry(type, level, salary, status)\nTask: Select code from area_registry that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(level, status, value, amount)\n attribute_groups(id, type, code, level)\nTask: Find id from cost_centers where type appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(name, level, code, id)\n cost_centers(amount, name, date, value)\nTask: Select value from journal_entries that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(date, level, status, id)\n engagement_log(status, value, type, code)\nTask: Retrieve value from facility_registry whose type is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(id, name, code, salary)\n stock_catalog(date, amount, value, status)\nTask: Select amount from portfolio_index where level exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, name, date, salary)\n cost_centers(level, type, status, name)\nTask: Find value from personnel_registry where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(salary, code, status, value)\n portfolio_index(name, level, value, id)\nTask: Retrieve name from facility_registry whose level is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM facility_registry AS emp\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(status, value, date, type)\n workforce_data(salary, code, name, date)\nTask: Select id from area_registry where value is greater than the count of of salary in workforce_data for matching type.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE value > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(level, code, salary, id)\n journal_entries(value, amount, id, name)\nTask: Select name from stocking_sites that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(id, name, salary, value)\n cost_centers(date, salary, value, amount)\nTask: Retrieve amount from area_registry with amount above the MIN(value) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(date, id, name, type)\n receivables_log(level, amount, id, value)\nTask: Select id from activity_log that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(level, date, name, type)\n receivables_log(status, id, code, level)\nTask: Retrieve code from workforce_data whose id is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(code, id, type, name)\n workforce_data(code, type, id, level)\nTask: Select amount from acquisition_log that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(code, amount, type, status)\n sales_registry(id, code, type, amount)\nTask: Select salary from journal_entries where code exists in sales_registry for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(status, name, level, salary)\n attribute_groups(status, salary, date, code)\nTask: Select amount from stocking_sites where value is greater than the total of value in attribute_groups for matching code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE value > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(type, code, amount, value)\n area_registry(salary, type, code, value)\nTask: Find salary from acquisition_log where salary exceeds the minimum amount from area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(value, id, status, amount)\n engagement_log(type, code, salary, value)\nTask: Find code from sourcing_list where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(code, value, name, amount)\n dispatch_queue(level, id, salary, status)\nTask: Find amount from receivables_log where amount exceeds the maximum value from dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE amount > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(salary, date, value, level)\n sourcing_list(type, date, code, salary)\nTask: Select id from receivables_log where type exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(value, date, status, code)\n attribute_groups(name, id, date, salary)\nTask: Select name from dispatch_queue where status exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(value, level, code, salary)\n attribute_groups(code, name, status, date)\nTask: Find amount from area_registry where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(code, status, amount, level)\n sales_registry(level, salary, code, type)\nTask: Select amount from dispatch_queue that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(level, name, type, amount)\n cost_centers(code, status, level, salary)\nTask: Select name from sales_queue where amount is greater than the minimum of salary in cost_centers for matching level.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(id, amount, type, salary)\n sales_registry(status, code, date, id)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(name, amount, value, type)\n activity_log(amount, type, level, value)\nTask: Select value from portfolio_index where salary is greater than the total of value in activity_log for matching level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(salary, date, code, name)\n cost_centers(salary, code, level, status)\nTask: Select salary from activity_log where value is greater than the minimum of amount in cost_centers for matching status.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE value > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(value, level, date, type)\n activity_log(level, type, value, amount)\nTask: Select code from area_registry where type exists in activity_log for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, type, amount, name)\n stocking_sites(value, id, date, name)\nTask: Find id from portfolio_index where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(date, value, code, status)\n activity_log(date, salary, id, type)\nTask: Retrieve name from attribute_groups that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(id, code, amount, salary)\n sales_queue(type, date, status, name)\nTask: Retrieve name from stocking_sites with salary above the SUM(value) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE salary > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(level, name, salary, code)\n personnel_registry(code, salary, type, name)\nTask: Select salary from stock_catalog where salary is greater than the count of of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(status, date, level, id)\n sales_queue(level, date, status, code)\nTask: Find value from personnel_registry where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(value, type, amount, id)\n engagement_log(level, type, id, name)\nTask: Find name from receivables_log where type appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(type, date, value, status)\n stock_catalog(value, name, amount, level)\nTask: Find id from personnel_registry where amount exceeds the total salary from stock_catalog for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(code, date, name, level)\n workforce_data(type, id, amount, status)\nTask: Select salary from sales_queue that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(name, code, id, level)\n activity_log(name, status, type, code)\nTask: Select name from facility_registry that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(date, amount, level, code)\n area_registry(name, amount, code, level)\nTask: Retrieve id from personnel_registry whose level is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(date, value, salary, level)\n cost_centers(level, amount, salary, date)\nTask: Retrieve code from facility_registry whose level is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(date, salary, value, status)\n stock_catalog(status, date, type, name)\nTask: Find salary from facility_registry where amount exceeds the average amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE amount > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(amount, name, salary, value)\n engagement_log(status, id, date, amount)\nTask: Select code from facility_registry that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(status, salary, code, type)\n sourcing_list(id, value, amount, date)\nTask: Find code from portfolio_index where salary exceeds the total amount from sourcing_list for the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, name, level, amount)\n portfolio_index(salary, status, code, id)\nTask: Find amount from dispatch_queue where type appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(id, salary, level, code)\n dispatch_queue(name, code, type, value)\nTask: Find amount from personnel_registry where status appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, level, value, salary)\n sales_queue(name, code, value, level)\nTask: Find value from dispatch_queue where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(salary, value, name, code)\n stock_catalog(name, amount, level, value)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, amount, date, code)\n dispatch_queue(code, status, id, date)\nTask: Retrieve id from stocking_sites whose status is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(type, level, id, value)\n dispatch_queue(level, salary, amount, type)\nTask: Select salary from sourcing_list where code exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(value, id, salary, status)\n sales_registry(name, status, salary, code)\nTask: Select name from journal_entries where amount is greater than the count of of salary in sales_registry for matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(type, value, salary, level)\n engagement_log(status, date, code, level)\nTask: Retrieve amount from attribute_groups whose code is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, name, value, code)\n sales_registry(level, date, value, name)\nTask: Retrieve id from stock_catalog whose code is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(name, salary, type, amount)\n dispatch_queue(status, code, id, date)\nTask: Select amount from stock_catalog where type exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(level, amount, value, type)\n sales_registry(salary, value, type, id)\nTask: Find code from personnel_registry where type appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(code, type, status, level)\n stock_catalog(name, salary, value, id)\nTask: Select salary from facility_registry where salary is greater than the count of of amount in stock_catalog for matching level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, status, name, id)\n facility_registry(code, name, date, status)\nTask: Find salary from cost_centers where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(amount, code, date, salary)\n journal_entries(amount, value, code, date)\nTask: Retrieve name from portfolio_index that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, date, status, id)\n sales_queue(value, name, status, level)\nTask: Select amount from personnel_registry where salary is greater than the minimum of salary in sales_queue for matching status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, value, type, status)\n journal_entries(id, status, level, type)\nTask: Retrieve amount from dispatch_queue whose id is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(status, id, salary, type)\n facility_registry(type, date, name, code)\nTask: Select code from personnel_registry that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(code, value, salary, type)\n facility_registry(date, value, id, code)\nTask: Select salary from receivables_log where type exists in facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(id, name, salary, type)\n dispatch_queue(amount, id, status, salary)\nTask: Retrieve value from attribute_groups with amount above the MIN(salary) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(level, date, salary, code)\n journal_entries(status, level, value, salary)\nTask: Find salary from facility_registry where amount exceeds the count of amount from journal_entries for the same id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(date, code, id, amount)\n stock_catalog(name, date, salary, id)\nTask: Select value from sales_queue that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(value, status, type, date)\n attribute_groups(level, salary, code, type)\nTask: Select amount from workforce_data where id exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, id, value, type)\n cost_centers(code, amount, status, id)\nTask: Retrieve amount from stocking_sites whose code is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(code, salary, date, status)\n personnel_registry(salary, amount, date, value)\nTask: Find salary from acquisition_log where level appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(id, date, value, name)\n stocking_sites(salary, amount, value, date)\nTask: Find salary from receivables_log where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(id, level, salary, status)\n portfolio_index(date, salary, value, id)\nTask: Select id from sales_queue where status exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(status, id, type, level)\n activity_log(date, value, level, amount)\nTask: Select amount from personnel_registry that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(id, date, amount, salary)\n acquisition_log(type, level, code, amount)\nTask: Find value from workforce_data where code appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(salary, amount, type, name)\n portfolio_index(date, id, amount, level)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(code, amount, status, level)\n journal_entries(type, salary, amount, date)\nTask: Select salary from sales_registry where code exists in journal_entries for the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(name, type, date, level)\n activity_log(id, code, date, type)\nTask: Select salary from stocking_sites where value is greater than the average of value in activity_log for matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE value > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(type, amount, date, status)\n engagement_log(value, date, salary, code)\nTask: Retrieve amount from area_registry whose code is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(value, amount, status, id)\n attribute_groups(amount, level, code, date)\nTask: Retrieve name from journal_entries whose level is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(value, amount, code, name)\n area_registry(level, name, date, id)\nTask: Find amount from facility_registry where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(value, status, type, name)\n portfolio_index(date, level, status, value)\nTask: Find id from stocking_sites where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(value, type, date, status)\n receivables_log(status, amount, id, value)\nTask: Retrieve salary from sales_queue whose code is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(level, code, status, id)\n area_registry(date, type, amount, code)\nTask: Select value from cost_centers that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(status, value, amount, id)\n sales_registry(id, status, name, amount)\nTask: Find value from facility_registry where level appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(date, value, status, code)\n attribute_groups(type, amount, level, value)\nTask: Select value from cost_centers where code exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(amount, code, date, salary)\n workforce_data(date, code, level, salary)\nTask: Find value from sales_registry where amount exceeds the minimum salary from workforce_data for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(code, date, name, value)\n personnel_registry(code, level, date, value)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(date, value, level, code)\n workforce_data(name, value, type, level)\nTask: Select amount from attribute_groups where status exists in workforce_data for the same level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(status, name, type, value)\n sales_queue(code, level, amount, id)\nTask: Retrieve id from portfolio_index whose id is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(level, date, name, type)\n acquisition_log(id, amount, status, salary)\nTask: Select salary from engagement_log where status exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(name, value, salary, id)\n journal_entries(name, code, amount, value)\nTask: Select salary from receivables_log where type exists in journal_entries for the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(name, salary, type, code)\n stocking_sites(salary, id, level, name)\nTask: Find amount from area_registry where level appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(id, name, type, level)\n personnel_registry(date, id, name, salary)\nTask: Retrieve amount from workforce_data whose id is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(salary, code, value, status)\n dispatch_queue(amount, type, code, status)\nTask: Find amount from receivables_log where type appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(id, name, salary, status)\n cost_centers(salary, name, date, level)\nTask: Retrieve value from workforce_data whose code is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS usr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(amount, status, level, salary)\n attribute_groups(id, status, code, value)\nTask: Find salary from area_registry where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(salary, level, value, type)\n portfolio_index(name, status, salary, amount)\nTask: Find value from area_registry where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(amount, name, date, id)\n stocking_sites(name, status, level, salary)\nTask: Find id from journal_entries where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(date, level, code, type)\n cost_centers(value, name, date, amount)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(type, status, salary, level)\n attribute_groups(status, level, type, amount)\nTask: Select code from facility_registry that have at least one matching row in attribute_groups for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(date, status, salary, name)\n engagement_log(salary, level, amount, value)\nTask: Find salary from acquisition_log where type appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(code, date, id, level)\n cost_centers(value, name, type, code)\nTask: Retrieve name from workforce_data with amount above the MIN(value) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(status, code, date, id)\n dispatch_queue(id, salary, code, date)\nTask: Select id from cost_centers where id exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(id, name, date, code)\n workforce_data(amount, salary, date, type)\nTask: Find name from sales_queue where id appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(date, name, amount, value)\n sales_registry(id, name, amount, code)\nTask: Find salary from sales_queue where value exceeds the minimum salary from sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE value > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(name, value, code, type)\n portfolio_index(value, date, code, id)\nTask: Find amount from receivables_log where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(id, salary, code, name)\n attribute_groups(date, type, amount, name)\nTask: Retrieve name from area_registry with salary above the MAX(value) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE salary > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(id, salary, code, value)\n sales_queue(date, code, type, amount)\nTask: Find salary from personnel_registry where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(status, level, amount, salary)\n sales_queue(value, code, salary, level)\nTask: Retrieve salary from receivables_log with salary above the COUNT(amount) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(status, salary, id, amount)\n dispatch_queue(name, code, status, amount)\nTask: Retrieve amount from attribute_groups whose status is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(name, status, date, type)\n sales_queue(id, status, code, name)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(id, date, name, amount)\n journal_entries(status, level, salary, amount)\nTask: Select code from acquisition_log that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(id, level, name, amount)\n activity_log(id, code, name, value)\nTask: Select name from personnel_registry where status exists in activity_log for the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS usr\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(name, date, salary, level)\n attribute_groups(type, name, status, level)\nTask: Retrieve code from acquisition_log that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(date, value, type, level)\n portfolio_index(value, id, level, salary)\nTask: Select value from acquisition_log where amount is greater than the total of salary in portfolio_index for matching code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(level, code, status, amount)\n personnel_registry(salary, level, id, name)\nTask: Select id from area_registry where value is greater than the average of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT id FROM area_registry AS inv\nWHERE value > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(code, status, date, salary)\n portfolio_index(date, status, type, value)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(code, value, date, amount)\n portfolio_index(amount, status, type, name)\nTask: Find amount from activity_log where value exceeds the maximum value from portfolio_index for the same level.\nSQL:", "sql": "SELECT amount FROM activity_log AS emp\nWHERE value > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(amount, salary, value, code)\n sourcing_list(id, code, date, amount)\nTask: Select value from personnel_registry that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(status, type, salary, value)\n portfolio_index(amount, code, date, salary)\nTask: Select amount from stocking_sites where level exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(level, status, value, name)\n portfolio_index(id, salary, status, name)\nTask: Select salary from personnel_registry where amount is greater than the average of value in portfolio_index for matching code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE amount > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(level, amount, value, salary)\n sourcing_list(id, level, name, code)\nTask: Select salary from attribute_groups where type exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(id, code, salary, amount)\n stocking_sites(code, value, type, amount)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(status, type, id, salary)\n area_registry(date, level, status, amount)\nTask: Select code from sourcing_list where level exists in area_registry for the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(status, date, amount, id)\n sales_queue(date, value, status, id)\nTask: Find value from facility_registry where status appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(code, date, amount, id)\n personnel_registry(salary, name, amount, status)\nTask: Select name from facility_registry where code exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(id, name, salary, level)\n stocking_sites(id, value, type, status)\nTask: Select salary from sourcing_list where value is greater than the maximum of value in stocking_sites for matching type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(id, amount, status, name)\n portfolio_index(code, status, name, value)\nTask: Retrieve name from personnel_registry with amount above the MAX(amount) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(level, salary, name, id)\n engagement_log(level, amount, date, status)\nTask: Find salary from facility_registry where level appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(id, code, value, level)\n stocking_sites(status, salary, name, date)\nTask: Find code from stock_catalog where amount exceeds the count of value from stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(value, code, date, id)\n sourcing_list(date, amount, value, salary)\nTask: Select value from receivables_log that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(code, id, type, level)\n attribute_groups(level, name, status, value)\nTask: Select code from area_registry that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(code, status, name, type)\n acquisition_log(value, name, level, amount)\nTask: Find salary from receivables_log where code appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(name, type, amount, code)\n facility_registry(name, date, id, code)\nTask: Find code from portfolio_index where id appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(salary, date, code, id)\n stocking_sites(level, id, type, value)\nTask: Select id from personnel_registry where amount is greater than the maximum of amount in stocking_sites for matching level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(id, level, salary, code)\n attribute_groups(id, code, date, amount)\nTask: Select salary from receivables_log where code exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(salary, amount, type, value)\n engagement_log(value, type, status, level)\nTask: Select id from receivables_log that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(code, name, status, id)\n sales_queue(type, code, status, value)\nTask: Select code from attribute_groups that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(type, id, date, code)\n receivables_log(value, date, status, amount)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(name, value, code, salary)\n stock_catalog(id, status, code, level)\nTask: Find code from stocking_sites where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(code, type, value, name)\n portfolio_index(status, salary, amount, date)\nTask: Select amount from personnel_registry where salary is greater than the minimum of salary in portfolio_index for matching code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(status, name, level, id)\n workforce_data(type, value, id, date)\nTask: Find id from sales_registry where status appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(value, date, amount, status)\n attribute_groups(value, name, salary, amount)\nTask: Find id from personnel_registry where type appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(status, level, value, amount)\n portfolio_index(id, status, type, level)\nTask: Select value from stocking_sites where salary is greater than the average of value in portfolio_index for matching code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE salary > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(type, amount, level, salary)\n personnel_registry(value, name, salary, status)\nTask: Find id from attribute_groups where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(status, id, amount, date)\n activity_log(level, code, type, id)\nTask: Select id from workforce_data that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(date, status, value, name)\n sourcing_list(status, name, value, type)\nTask: Select value from stock_catalog that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(level, status, type, salary)\n stocking_sites(name, id, salary, status)\nTask: Find salary from dispatch_queue where salary exceeds the minimum salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(date, salary, status, name)\n dispatch_queue(status, date, code, id)\nTask: Find salary from portfolio_index where salary exceeds the total salary from dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(value, status, salary, name)\n journal_entries(name, id, status, date)\nTask: Find value from activity_log where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, amount, status, id)\n engagement_log(salary, level, amount, code)\nTask: Select name from dispatch_queue that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(code, salary, id, type)\n acquisition_log(salary, id, date, level)\nTask: Select id from workforce_data where amount is greater than the minimum of value in acquisition_log for matching type.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE amount > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(id, status, name, code)\n portfolio_index(code, status, level, date)\nTask: Retrieve code from cost_centers with value above the AVG(value) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE value > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(id, level, salary, value)\n activity_log(status, salary, level, code)\nTask: Retrieve salary from engagement_log with value above the MIN(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE value > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(code, name, amount, level)\n engagement_log(type, id, status, name)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(level, code, name, type)\n stocking_sites(code, amount, name, status)\nTask: Select amount from dispatch_queue where salary is greater than the minimum of value in stocking_sites for matching status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, level, amount, type)\n attribute_groups(name, type, value, level)\nTask: Retrieve code from sourcing_list with value above the MIN(value) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE value > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(code, status, date, name)\n receivables_log(salary, status, date, id)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(code, amount, date, id)\n activity_log(code, id, type, level)\nTask: Retrieve id from area_registry that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(name, date, type, amount)\n area_registry(code, amount, status, level)\nTask: Find code from portfolio_index where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(date, name, code, value)\n stocking_sites(type, name, value, id)\nTask: Find code from receivables_log where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(name, id, salary, amount)\n receivables_log(code, status, name, date)\nTask: Select id from attribute_groups that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(type, name, date, level)\n activity_log(id, name, date, salary)\nTask: Retrieve value from workforce_data whose type is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, name, level, id)\n receivables_log(salary, status, value, date)\nTask: Select id from stock_catalog where amount is greater than the maximum of value in receivables_log for matching code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(type, date, value, level)\n dispatch_queue(status, level, salary, id)\nTask: Retrieve salary from facility_registry with amount above the AVG(amount) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(salary, type, name, value)\n stocking_sites(id, name, type, value)\nTask: Select id from stock_catalog where type exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(date, level, salary, value)\n sales_registry(date, code, id, type)\nTask: Select amount from workforce_data where value is greater than the minimum of amount in sales_registry for matching type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE value > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(status, amount, name, date)\n sales_queue(name, value, level, type)\nTask: Retrieve amount from attribute_groups whose level is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, status, level, amount)\n dispatch_queue(code, status, value, type)\nTask: Retrieve amount from sales_registry with salary above the AVG(amount) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, status, code, salary)\n sales_registry(date, status, level, id)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, amount, salary, level)\n sales_queue(level, salary, status, type)\nTask: Find code from sourcing_list where type appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(salary, status, type, id)\n area_registry(salary, level, type, status)\nTask: Find name from sales_queue where id appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(salary, amount, name, date)\n sales_registry(status, type, salary, code)\nTask: Retrieve name from stocking_sites with salary above the SUM(amount) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(level, amount, code, salary)\n sourcing_list(salary, type, level, name)\nTask: Retrieve value from facility_registry with salary above the SUM(amount) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(amount, level, status, id)\n engagement_log(date, id, value, amount)\nTask: Find salary from area_registry where id appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(type, date, code, id)\n journal_entries(status, value, level, id)\nTask: Find amount from area_registry where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, id, status, date)\n personnel_registry(date, name, status, amount)\nTask: Select value from stocking_sites where value is greater than the count of of value in personnel_registry for matching code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE value > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(type, value, id, date)\n area_registry(code, id, amount, date)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(name, amount, code, level)\n portfolio_index(salary, date, type, status)\nTask: Select value from stock_catalog where salary is greater than the count of of amount in portfolio_index for matching level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(status, type, value, id)\n engagement_log(code, salary, status, amount)\nTask: Find id from stock_catalog where salary exceeds the count of amount from engagement_log for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(amount, salary, id, code)\n stock_catalog(code, status, value, date)\nTask: Select value from dispatch_queue where amount is greater than the minimum of value in stock_catalog for matching level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(status, salary, type, level)\n dispatch_queue(value, name, salary, date)\nTask: Select salary from journal_entries where code exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(salary, level, amount, code)\n receivables_log(date, code, amount, type)\nTask: Find amount from stock_catalog where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(status, date, name, value)\n engagement_log(name, code, amount, type)\nTask: Select value from area_registry where id exists in engagement_log for the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(id, salary, type, name)\n activity_log(code, date, id, amount)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in activity_log sharing the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(date, code, status, salary)\n facility_registry(value, date, id, level)\nTask: Find code from stock_catalog where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, amount, status, value)\n facility_registry(level, status, amount, id)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(status, amount, type, salary)\n attribute_groups(name, salary, date, status)\nTask: Find amount from sales_registry where level appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(name, date, type, level)\n acquisition_log(name, status, salary, date)\nTask: Retrieve amount from engagement_log with value above the MAX(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(name, status, value, level)\n acquisition_log(code, status, name, level)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(type, salary, id, name)\n journal_entries(salary, id, status, date)\nTask: Find code from receivables_log where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(date, type, name, level)\n sourcing_list(type, status, value, date)\nTask: Find amount from receivables_log where amount exceeds the maximum salary from sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE amount > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(date, value, name, status)\n sourcing_list(salary, date, level, value)\nTask: Retrieve value from activity_log with salary above the MAX(salary) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, level, id, date)\n engagement_log(type, id, salary, date)\nTask: Find amount from stocking_sites where value exceeds the average salary from engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(status, id, level, date)\n sales_registry(code, date, status, type)\nTask: Find name from engagement_log where value exceeds the average amount from sales_registry for the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, status, salary, level)\n dispatch_queue(level, status, name, amount)\nTask: Retrieve name from activity_log with amount above the COUNT(salary) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, value, id, type)\n area_registry(date, amount, type, name)\nTask: Retrieve salary from attribute_groups with value above the MAX(value) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE value > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(amount, id, code, level)\n sales_queue(id, date, name, salary)\nTask: Retrieve salary from facility_registry whose level is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, name, status, code)\n portfolio_index(date, level, amount, type)\nTask: Select code from dispatch_queue where status exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(salary, type, date, value)\n engagement_log(id, level, status, code)\nTask: Retrieve id from attribute_groups that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(amount, value, level, date)\n workforce_data(level, id, status, date)\nTask: Select name from cost_centers that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(status, code, date, amount)\n sales_queue(code, date, amount, type)\nTask: Select name from dispatch_queue where status exists in sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(name, salary, date, id)\n workforce_data(date, amount, code, name)\nTask: Find code from facility_registry where type appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(amount, name, type, date)\n facility_registry(value, type, level, name)\nTask: Find name from personnel_registry where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(code, date, salary, amount)\n sourcing_list(salary, type, status, level)\nTask: Find name from workforce_data where type appears in sourcing_list entries with matching type.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, type, code, date)\n cost_centers(date, status, name, level)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(name, salary, status, amount)\n receivables_log(amount, name, value, date)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(id, name, value, salary)\n activity_log(date, level, status, type)\nTask: Retrieve value from sales_queue with value above the SUM(salary) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE value > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(code, name, date, id)\n facility_registry(status, type, date, salary)\nTask: Find salary from journal_entries where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(date, type, name, status)\n journal_entries(id, code, status, value)\nTask: Select name from personnel_registry where code exists in journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS inv\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "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}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(level, amount, type, salary)\n receivables_log(salary, type, status, code)\nTask: Find id from portfolio_index where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(level, salary, code, date)\n area_registry(date, value, name, level)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(code, name, status, type)\n journal_entries(status, name, date, amount)\nTask: Retrieve name from stocking_sites whose level is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(id, salary, type, value)\n engagement_log(value, level, type, name)\nTask: Retrieve value from personnel_registry whose id is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(code, id, value, status)\n stock_catalog(salary, name, value, code)\nTask: Retrieve id from journal_entries whose id is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(value, salary, id, date)\n facility_registry(date, salary, value, id)\nTask: Select id from activity_log that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(date, status, salary, code)\n stocking_sites(name, amount, salary, type)\nTask: Find id from cost_centers where code appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(salary, id, value, level)\n journal_entries(level, amount, name, code)\nTask: Find value from receivables_log where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(amount, id, value, code)\n workforce_data(name, date, amount, code)\nTask: Select name from journal_entries where value is greater than the maximum of amount in workforce_data for matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE value > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(type, status, id, salary)\n workforce_data(type, name, salary, level)\nTask: Find code from facility_registry where code appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(type, name, status, level)\n engagement_log(id, code, date, salary)\nTask: Select amount from journal_entries where code exists in engagement_log for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(level, status, value, name)\n workforce_data(type, salary, level, code)\nTask: Find id from personnel_registry where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(id, date, status, level)\n attribute_groups(date, level, type, amount)\nTask: Find value from facility_registry where value exceeds the total salary from attribute_groups for the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE value > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(date, code, status, salary)\n personnel_registry(salary, name, type, date)\nTask: Retrieve code from journal_entries whose status is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(name, id, level, type)\n activity_log(date, level, salary, code)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(name, type, code, status)\n sales_queue(amount, date, salary, type)\nTask: Select name from facility_registry where code exists in sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(status, id, level, code)\n sales_registry(id, date, salary, name)\nTask: Select amount from activity_log that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(date, salary, value, code)\n engagement_log(code, name, salary, status)\nTask: Select code from sales_registry where id exists in engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(code, name, id, amount)\n portfolio_index(code, amount, name, salary)\nTask: Retrieve salary from personnel_registry whose type is found in portfolio_index rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(value, type, salary, id)\n journal_entries(type, code, name, value)\nTask: Select amount from stock_catalog that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(date, type, code, salary)\n workforce_data(status, amount, type, level)\nTask: Find value from area_registry where salary exceeds the minimum value from workforce_data for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE salary > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(name, status, type, code)\n receivables_log(value, salary, type, code)\nTask: Find value from engagement_log where code appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(name, amount, salary, value)\n cost_centers(name, code, level, salary)\nTask: Retrieve amount from personnel_registry with amount above the MIN(value) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(id, type, salary, status)\n stock_catalog(type, value, code, date)\nTask: Retrieve name from sourcing_list whose type is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(type, level, amount, code)\n facility_registry(code, value, amount, id)\nTask: Select salary from attribute_groups where amount is greater than the average of amount in facility_registry for matching id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(value, id, code, date)\n acquisition_log(date, level, name, salary)\nTask: Select value from stocking_sites where salary is greater than the maximum of amount in acquisition_log for matching code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(status, code, amount, level)\n stocking_sites(date, value, code, salary)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(type, salary, amount, code)\n cost_centers(amount, date, id, value)\nTask: Select value from activity_log that have at least one matching row in cost_centers for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(name, value, amount, code)\n engagement_log(id, type, status, level)\nTask: Find id from dispatch_queue where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(status, date, value, code)\n facility_registry(date, amount, salary, status)\nTask: Retrieve name from sales_queue that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(amount, code, id, status)\n facility_registry(amount, id, type, status)\nTask: Select salary from portfolio_index where salary is greater than the count of of value in facility_registry for matching type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(name, id, type, code)\n journal_entries(name, code, id, date)\nTask: Find id from facility_registry where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(name, code, date, status)\n acquisition_log(date, name, id, level)\nTask: Find salary from facility_registry where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(amount, date, status, type)\n workforce_data(type, level, date, salary)\nTask: Find id from acquisition_log where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, value, date, amount)\n engagement_log(id, date, amount, name)\nTask: Select salary from dispatch_queue that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(code, value, amount, date)\n attribute_groups(value, status, salary, name)\nTask: Retrieve name from sales_queue that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(value, date, salary, name)\n facility_registry(code, value, salary, amount)\nTask: Select salary from workforce_data where value is greater than the count of of value in facility_registry for matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE value > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(type, value, code, level)\n workforce_data(amount, type, status, salary)\nTask: Find salary from sales_registry where type appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, date, salary, id)\n journal_entries(name, date, value, level)\nTask: Find name from dispatch_queue where level appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(date, type, amount, name)\n journal_entries(name, id, value, amount)\nTask: Retrieve amount from workforce_data that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, value, name, code)\n sales_queue(value, id, type, salary)\nTask: Select value from sourcing_list where code exists in sales_queue for the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(code, salary, status, type)\n portfolio_index(salary, id, status, amount)\nTask: Select code from dispatch_queue where amount is greater than the minimum of salary in portfolio_index for matching id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(status, salary, type, code)\n journal_entries(id, status, name, amount)\nTask: Select salary from area_registry where value is greater than the count of of value in journal_entries for matching id.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(id, date, amount, name)\n engagement_log(status, code, value, level)\nTask: Find name from stock_catalog where value exceeds the total amount from engagement_log for the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE value > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(code, level, id, value)\n dispatch_queue(name, level, salary, status)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(id, amount, code, level)\n receivables_log(amount, type, status, salary)\nTask: Select name from area_registry where value is greater than the minimum of value in receivables_log for matching code.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE value > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(amount, code, value, type)\n personnel_registry(salary, date, id, amount)\nTask: Select amount from portfolio_index that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, amount, type, id)\n portfolio_index(amount, type, code, date)\nTask: Find id from acquisition_log where salary exceeds the count of amount from portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE salary > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(amount, value, type, code)\n journal_entries(amount, type, code, status)\nTask: Retrieve salary from engagement_log with salary above the AVG(salary) of journal_entries rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(amount, value, code, level)\n stocking_sites(code, id, value, amount)\nTask: Select code from engagement_log that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(level, id, amount, code)\n sales_registry(level, value, id, amount)\nTask: Retrieve amount from activity_log whose level is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(level, value, salary, code)\n engagement_log(id, level, date, amount)\nTask: Find name from attribute_groups where value exceeds the maximum amount from engagement_log for the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE value > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(date, id, level, status)\n engagement_log(value, status, id, name)\nTask: Select name from cost_centers that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(id, code, name, level)\n sales_registry(status, id, salary, amount)\nTask: Retrieve value from cost_centers whose id is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(name, id, date, salary)\n portfolio_index(status, amount, name, salary)\nTask: Retrieve salary from receivables_log with salary above the AVG(salary) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(date, code, id, name)\n journal_entries(amount, id, salary, code)\nTask: Select code from stocking_sites where amount is greater than the count of of value in journal_entries for matching type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(id, name, level, salary)\n stock_catalog(amount, status, name, level)\nTask: Retrieve salary from area_registry whose id is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS ord\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(type, id, date, name)\n workforce_data(amount, salary, name, status)\nTask: Find name from sales_queue where level appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(code, value, id, level)\n personnel_registry(level, id, amount, type)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(id, type, amount, date)\n workforce_data(amount, code, salary, id)\nTask: Find id from acquisition_log where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(level, code, value, type)\n receivables_log(salary, date, name, level)\nTask: Select salary from workforce_data where id exists in receivables_log for the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(amount, name, status, type)\n personnel_registry(id, status, date, name)\nTask: Find name from engagement_log where id appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(date, status, amount, level)\n workforce_data(name, amount, salary, status)\nTask: Select code from stock_catalog that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(salary, type, level, status)\n stock_catalog(amount, salary, type, value)\nTask: Select amount from dispatch_queue where salary is greater than the maximum of value in stock_catalog for matching code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(level, amount, name, id)\n personnel_registry(id, type, name, code)\nTask: Select code from sales_registry that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(amount, date, status, name)\n cost_centers(type, value, salary, date)\nTask: Find salary from receivables_log where value exceeds the maximum value from cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE value > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(date, id, amount, status)\n attribute_groups(date, id, code, type)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(amount, name, id, value)\n sales_registry(salary, name, level, status)\nTask: Retrieve name from journal_entries whose type is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(value, type, status, salary)\n journal_entries(level, status, salary, date)\nTask: Retrieve code from attribute_groups whose code is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(status, type, date, value)\n workforce_data(value, id, date, level)\nTask: Find id from stocking_sites where salary exceeds the minimum amount from workforce_data for the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(level, value, code, salary)\n workforce_data(level, value, code, status)\nTask: Find id from activity_log where type appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, code, id, name)\n journal_entries(name, level, value, salary)\nTask: Find salary from acquisition_log where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(code, status, type, level)\n activity_log(type, level, value, salary)\nTask: Select name from attribute_groups where status exists in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(id, salary, amount, date)\n personnel_registry(value, date, id, amount)\nTask: Select code from activity_log that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(code, id, type, value)\n engagement_log(amount, name, value, level)\nTask: Find salary from acquisition_log where type appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(level, date, status, code)\n portfolio_index(date, code, id, type)\nTask: Select name from receivables_log where code exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(date, salary, level, code)\n personnel_registry(level, value, status, id)\nTask: Find name from area_registry where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(amount, code, name, id)\n stocking_sites(value, id, amount, type)\nTask: Select code from area_registry that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(type, date, status, amount)\n facility_registry(amount, value, status, name)\nTask: Find amount from workforce_data where salary exceeds the total value from facility_registry for the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE salary > (\n SELECT SUM(value) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(level, amount, value, name)\n engagement_log(level, value, amount, id)\nTask: Select name from acquisition_log where salary is greater than the total of salary in engagement_log for matching type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(name, code, salary, amount)\n receivables_log(name, level, value, date)\nTask: Select amount from area_registry that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(code, date, name, value)\n activity_log(status, name, date, type)\nTask: Find salary from receivables_log where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, date, id, type)\n attribute_groups(status, code, date, id)\nTask: Retrieve name from acquisition_log with amount above the AVG(salary) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(status, value, amount, date)\n journal_entries(level, amount, type, code)\nTask: Find salary from sales_queue where status appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(id, amount, salary, name)\n workforce_data(value, salary, code, id)\nTask: Select id from stocking_sites that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(date, name, code, amount)\n receivables_log(level, id, salary, value)\nTask: Retrieve amount from dispatch_queue whose level is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(level, status, amount, type)\n receivables_log(value, type, name, status)\nTask: Retrieve salary from workforce_data with value above the COUNT(value) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE value > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(level, value, type, status)\n sales_registry(date, amount, name, code)\nTask: Select name from engagement_log that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(amount, level, date, name)\n workforce_data(date, level, amount, status)\nTask: Select name from portfolio_index where salary is greater than the minimum of value in workforce_data for matching type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE salary > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(status, id, type, amount)\n stock_catalog(type, status, level, code)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(status, amount, level, date)\n stocking_sites(type, level, id, salary)\nTask: Find id from engagement_log where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, value, salary, date)\n attribute_groups(code, amount, id, date)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(amount, type, code, id)\n cost_centers(date, status, type, code)\nTask: Find name from journal_entries where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(date, name, value, status)\n dispatch_queue(code, level, name, date)\nTask: Retrieve code from receivables_log whose id is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(type, name, code, salary)\n area_registry(value, id, status, name)\nTask: Select id from workforce_data that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(type, code, amount, id)\n area_registry(status, amount, type, code)\nTask: Select code from stock_catalog that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(status, date, code, type)\n sales_queue(status, id, code, type)\nTask: Retrieve code from workforce_data with value above the MAX(salary) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE value > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(value, type, level, name)\n cost_centers(status, amount, name, code)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(date, id, code, salary)\n cost_centers(date, code, status, id)\nTask: Find name from dispatch_queue where code appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(type, amount, status, salary)\n acquisition_log(type, amount, level, status)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(status, value, date, type)\n stocking_sites(date, amount, level, type)\nTask: Find code from sourcing_list where amount exceeds the total salary from stocking_sites for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(status, value, date, level)\n attribute_groups(salary, value, amount, date)\nTask: Select value from engagement_log that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(level, date, id, type)\n personnel_registry(date, level, value, salary)\nTask: Retrieve code from portfolio_index with amount above the COUNT(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(id, amount, value, date)\n dispatch_queue(date, type, amount, salary)\nTask: Retrieve code from activity_log that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(type, value, date, code)\n area_registry(code, id, level, date)\nTask: Retrieve value from attribute_groups whose level is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(amount, name, salary, level)\n cost_centers(amount, salary, date, value)\nTask: Select id from journal_entries where amount is greater than the maximum of value in cost_centers for matching status.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE amount > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(status, type, level, id)\n receivables_log(value, date, code, salary)\nTask: Retrieve code from cost_centers whose status is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(type, status, name, date)\n portfolio_index(id, level, type, status)\nTask: Select id from attribute_groups where value is greater than the maximum of salary in portfolio_index for matching type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE value > (\n SELECT MAX(salary) FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(amount, salary, status, level)\n stocking_sites(code, id, value, date)\nTask: Select value from activity_log where salary is greater than the total of value in stocking_sites for matching status.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(salary, level, id, code)\n receivables_log(status, type, name, id)\nTask: Select amount from sales_registry where amount is greater than the count of of salary in receivables_log for matching status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(salary, status, code, amount)\n stocking_sites(amount, level, value, status)\nTask: Find salary from area_registry where amount exceeds the average salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(level, salary, type, name)\n stock_catalog(salary, level, type, amount)\nTask: Find amount from stocking_sites where level appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(value, date, amount, name)\n acquisition_log(date, id, name, amount)\nTask: Select amount from sourcing_list where code exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(status, level, amount, type)\n attribute_groups(level, id, date, type)\nTask: Retrieve salary from facility_registry with amount above the AVG(amount) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, salary, type, status)\n portfolio_index(amount, id, type, salary)\nTask: Retrieve value from personnel_registry whose code is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(salary, type, level, status)\n receivables_log(status, code, level, amount)\nTask: Retrieve salary from facility_registry whose type is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(salary, status, value, code)\n stock_catalog(value, code, date, amount)\nTask: Select id from dispatch_queue that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(amount, salary, date, name)\n receivables_log(code, value, type, date)\nTask: Find id from attribute_groups where id appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(status, type, salary, code)\n receivables_log(name, status, id, type)\nTask: Find code from sourcing_list where salary exceeds the count of amount from receivables_log for the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(name, date, code, id)\n facility_registry(amount, level, code, value)\nTask: Retrieve value from sales_queue whose type is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(id, salary, status, level)\n acquisition_log(level, type, id, date)\nTask: Select id from stocking_sites where status exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(salary, value, name, date)\n portfolio_index(level, value, name, code)\nTask: Select value from cost_centers where level exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(id, status, name, salary)\n attribute_groups(value, code, status, type)\nTask: Find id from portfolio_index where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(date, salary, level, code)\n acquisition_log(salary, value, name, status)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(code, status, id, level)\n personnel_registry(amount, name, status, id)\nTask: Find amount from portfolio_index where level appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(name, type, id, date)\n engagement_log(amount, value, name, salary)\nTask: Select salary from personnel_registry that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(id, code, salary, date)\n receivables_log(level, value, amount, status)\nTask: Select id from engagement_log that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(date, amount, status, code)\n workforce_data(level, salary, code, type)\nTask: Retrieve code from receivables_log whose type is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(type, status, salary, level)\n workforce_data(value, level, code, amount)\nTask: Find value from personnel_registry where type appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(salary, id, status, level)\n personnel_registry(date, level, id, amount)\nTask: Retrieve value from acquisition_log that have at least one corresponding entry in personnel_registry sharing the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, type, id, salary)\n stock_catalog(value, name, id, date)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, amount, name, type)\n dispatch_queue(level, id, value, amount)\nTask: Find name from portfolio_index where id appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(level, id, amount, code)\n sales_queue(value, amount, id, code)\nTask: Find name from stocking_sites where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, level, id, code)\n acquisition_log(status, amount, date, name)\nTask: Find salary from sales_registry where salary exceeds the total amount from acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(status, amount, date, code)\n engagement_log(date, level, amount, value)\nTask: Select name from personnel_registry where status exists in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(value, id, amount, code)\n acquisition_log(salary, id, amount, status)\nTask: Select salary from engagement_log that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(date, value, id, status)\n activity_log(id, amount, salary, status)\nTask: Retrieve name from engagement_log with salary above the MIN(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE salary > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(id, type, name, level)\n personnel_registry(id, salary, date, code)\nTask: Select id from facility_registry where value is greater than the average of salary in personnel_registry for matching code.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE value > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, value, name, amount)\n area_registry(status, id, value, type)\nTask: Retrieve code from dispatch_queue whose status is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(status, code, salary, level)\n stocking_sites(id, name, salary, amount)\nTask: Select code from personnel_registry where amount is greater than the minimum of salary in stocking_sites for matching id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE amount > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(status, date, level, value)\n stock_catalog(amount, id, salary, status)\nTask: Find code from journal_entries where code appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, date, type, id)\n sourcing_list(date, code, amount, salary)\nTask: Find value from stocking_sites where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, date, code, value)\n journal_entries(date, value, code, salary)\nTask: Find salary from sourcing_list where id appears in journal_entries entries with matching code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(name, value, level, id)\n stocking_sites(level, date, name, value)\nTask: Select amount from cost_centers where value is greater than the maximum of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE value > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(type, name, code, id)\n dispatch_queue(salary, date, level, code)\nTask: Select code from workforce_data where level exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(id, value, type, amount)\n workforce_data(name, amount, value, id)\nTask: Find id from receivables_log where amount exceeds the average salary from workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(date, value, name, amount)\n engagement_log(salary, id, name, code)\nTask: Find amount from attribute_groups where level appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, value, type, status)\n sales_registry(id, value, date, level)\nTask: Find amount from stock_catalog where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(status, value, date, type)\n sales_queue(code, amount, status, type)\nTask: Select value from journal_entries where level exists in sales_queue for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(value, type, status, level)\n engagement_log(salary, amount, level, value)\nTask: Find salary from area_registry where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(type, level, date, amount)\n sales_registry(salary, value, status, date)\nTask: Retrieve amount from acquisition_log with amount above the AVG(value) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(type, salary, code, level)\n facility_registry(name, salary, status, value)\nTask: Retrieve id from engagement_log whose code is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(value, id, status, level)\n portfolio_index(type, salary, status, level)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(amount, code, level, type)\n sales_queue(level, date, salary, amount)\nTask: Select value from area_registry where amount is greater than the count of of value in sales_queue for matching type.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(date, level, status, type)\n area_registry(amount, code, type, value)\nTask: Retrieve amount from acquisition_log with value above the COUNT(value) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE value > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(name, level, status, amount)\n sales_registry(amount, id, status, type)\nTask: Retrieve code from cost_centers that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(code, id, level, salary)\n area_registry(code, value, salary, type)\nTask: Select code from workforce_data where level exists in area_registry for the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(value, code, date, name)\n attribute_groups(amount, status, type, code)\nTask: Select id from engagement_log where id exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(status, amount, salary, value)\n sales_queue(id, type, amount, date)\nTask: Select value from personnel_registry where level exists in sales_queue for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(name, type, level, value)\n sales_registry(name, level, code, id)\nTask: Find name from facility_registry where code appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(id, level, amount, date)\n personnel_registry(code, date, type, salary)\nTask: Find id from sales_registry where amount exceeds the count of salary from personnel_registry for the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, amount, status, value)\n acquisition_log(value, type, salary, status)\nTask: Find value from portfolio_index where code appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(code, level, salary, date)\n sales_registry(type, level, date, id)\nTask: Retrieve amount from area_registry whose id is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(id, code, salary, amount)\n cost_centers(value, amount, level, salary)\nTask: Select amount from area_registry that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(id, code, value, level)\n facility_registry(status, code, level, amount)\nTask: Find name from activity_log where value exceeds the average salary from facility_registry for the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(id, date, status, salary)\n sales_registry(type, date, level, amount)\nTask: Select id from stocking_sites that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, value, salary, name)\n attribute_groups(amount, type, id, date)\nTask: Find amount from stock_catalog where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, date, code, status)\n personnel_registry(date, id, code, salary)\nTask: Select amount from sourcing_list where amount is greater than the average of amount in personnel_registry for matching id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE amount > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, name, value, level)\n workforce_data(level, salary, date, type)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(level, status, date, name)\n personnel_registry(salary, code, amount, date)\nTask: Select code from cost_centers where status exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(value, amount, id, salary)\n portfolio_index(level, id, status, amount)\nTask: Select name from acquisition_log that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(level, id, salary, date)\n portfolio_index(date, type, amount, status)\nTask: Find salary from journal_entries where salary exceeds the average salary from portfolio_index for the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "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}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(type, date, status, code)\n sales_queue(value, code, type, date)\nTask: Find name from engagement_log where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(id, code, type, status)\n workforce_data(status, value, id, type)\nTask: Find name from cost_centers where value exceeds the maximum amount from workforce_data for the same id.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE value > (\n SELECT MAX(amount) FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(salary, code, amount, status)\n workforce_data(date, id, status, salary)\nTask: Select name from personnel_registry where amount is greater than the count of of amount in workforce_data for matching level.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(date, salary, name, type)\n dispatch_queue(amount, salary, id, value)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in dispatch_queue sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(level, code, type, amount)\n dispatch_queue(id, amount, level, value)\nTask: Select value from sourcing_list where amount is greater than the total of value in dispatch_queue for matching type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE amount > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(value, status, id, date)\n personnel_registry(value, salary, status, date)\nTask: Select value from stock_catalog where code exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(date, amount, code, salary)\n dispatch_queue(code, date, id, salary)\nTask: Find salary from journal_entries where salary exceeds the total amount from dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(level, name, id, status)\n acquisition_log(status, type, name, code)\nTask: Retrieve value from activity_log with value above the AVG(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE value > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(date, name, status, id)\n activity_log(code, level, amount, id)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(id, code, amount, level)\n sourcing_list(name, date, value, salary)\nTask: Retrieve value from stocking_sites whose code is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(level, name, date, amount)\n journal_entries(date, level, salary, value)\nTask: Select code from personnel_registry that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, level, name, type)\n sales_registry(name, id, amount, status)\nTask: Find id from stocking_sites where code appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(value, code, level, type)\n receivables_log(value, id, date, salary)\nTask: Select salary from portfolio_index that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(amount, name, type, date)\n area_registry(code, type, amount, value)\nTask: Select value from sales_queue where salary is greater than the total of amount in area_registry for matching type.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, type, id, code)\n activity_log(status, amount, id, code)\nTask: Select name from dispatch_queue where type exists in activity_log for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(id, type, date, value)\n sales_queue(salary, code, status, id)\nTask: Select id from cost_centers where level exists in sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(id, status, name, code)\n engagement_log(status, value, id, name)\nTask: Find id from sales_registry where amount exceeds the total salary from engagement_log for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(status, date, amount, value)\n area_registry(level, status, salary, amount)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in area_registry sharing the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(amount, value, id, status)\n portfolio_index(id, date, level, status)\nTask: Select salary from cost_centers where salary is greater than the total of salary in portfolio_index for matching type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(id, status, name, salary)\n engagement_log(name, amount, salary, date)\nTask: Find salary from portfolio_index where value exceeds the count of amount from engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(id, level, name, status)\n sourcing_list(level, name, value, id)\nTask: Find salary from receivables_log where value exceeds the average value from sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE value > (\n SELECT AVG(value) FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, value, name, salary)\n workforce_data(amount, date, salary, value)\nTask: Find code from stock_catalog where salary exceeds the maximum salary from workforce_data for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(value, date, id, name)\n facility_registry(amount, type, level, id)\nTask: Select code from cost_centers where value is greater than the minimum of value in facility_registry for matching level.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE value > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, salary, amount, level)\n receivables_log(status, type, level, amount)\nTask: Select id from dispatch_queue that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(level, id, salary, date)\n activity_log(amount, salary, value, level)\nTask: Find salary from receivables_log where amount exceeds the count of value from activity_log for the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE amount > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(code, type, amount, level)\n portfolio_index(salary, level, value, amount)\nTask: Find amount from sales_registry where a matching record exists in portfolio_index with the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(type, date, value, salary)\n sourcing_list(salary, type, status, code)\nTask: Select code from acquisition_log where salary is greater than the total of salary in sourcing_list for matching status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(amount, type, value, name)\n attribute_groups(date, type, status, level)\nTask: Select id from engagement_log that have at least one matching row in attribute_groups for the same status.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, id, value, level)\n sales_registry(status, name, salary, date)\nTask: Retrieve value from dispatch_queue whose id is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(type, code, level, id)\n sales_registry(type, value, name, level)\nTask: Select salary from personnel_registry where id exists in sales_registry for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(type, status, date, id)\n attribute_groups(type, id, name, status)\nTask: Select salary from area_registry where value is greater than the maximum of salary in attribute_groups for matching type.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE value > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(salary, id, date, value)\n workforce_data(id, value, name, status)\nTask: Retrieve code from sales_queue with amount above the AVG(value) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE amount > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(date, salary, status, name)\n sales_registry(salary, amount, value, level)\nTask: Find salary from stocking_sites where code appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(type, code, level, status)\n workforce_data(amount, type, value, id)\nTask: Find amount from sourcing_list where value exceeds the count of salary from workforce_data for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(level, salary, value, type)\n sales_queue(value, date, type, level)\nTask: Retrieve value from facility_registry whose code is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(salary, name, type, id)\n receivables_log(date, level, code, salary)\nTask: Select salary from facility_registry where amount is greater than the minimum of amount in receivables_log for matching id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, type, date, status)\n sourcing_list(code, id, salary, type)\nTask: Select id from attribute_groups that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(status, code, name, amount)\n stocking_sites(name, level, code, salary)\nTask: Find code from portfolio_index where code appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, level, value, type)\n journal_entries(code, name, amount, salary)\nTask: Find amount from attribute_groups where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(type, name, date, code)\n sales_queue(value, type, name, date)\nTask: Find code from attribute_groups where value exceeds the average value from sales_queue for the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE value > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(level, value, status, date)\n receivables_log(level, status, value, code)\nTask: Retrieve id from attribute_groups whose id is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(name, code, id, date)\n portfolio_index(salary, id, amount, status)\nTask: Retrieve code from attribute_groups with salary above the AVG(salary) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(level, type, status, salary)\n portfolio_index(level, amount, type, salary)\nTask: Find id from personnel_registry where amount exceeds the average salary from portfolio_index for the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, type, status, value)\n journal_entries(date, salary, name, status)\nTask: Retrieve id from dispatch_queue whose level is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(date, status, salary, name)\n journal_entries(amount, type, status, level)\nTask: Select id from stocking_sites that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(value, salary, level, id)\n acquisition_log(code, level, date, amount)\nTask: Find name from attribute_groups where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(id, code, salary, level)\n stocking_sites(salary, amount, status, date)\nTask: Retrieve id from stock_catalog whose type is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(status, code, date, type)\n stock_catalog(id, amount, level, salary)\nTask: Retrieve amount from facility_registry whose code is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS prod\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(id, name, status, type)\n portfolio_index(id, status, amount, salary)\nTask: Select code from acquisition_log where type exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(salary, amount, status, type)\n sourcing_list(level, date, code, amount)\nTask: Select value from cost_centers where amount is greater than the total of amount in sourcing_list for matching id.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE amount > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(amount, status, value, code)\n activity_log(date, level, code, status)\nTask: Retrieve code from receivables_log with value above the SUM(amount) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT code FROM receivables_log AS inv\nWHERE value > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, date, amount, id)\n area_registry(level, value, name, date)\nTask: Find id from sourcing_list where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(code, status, salary, id)\n portfolio_index(name, id, salary, type)\nTask: Select salary from personnel_registry where code exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(type, code, value, amount)\n attribute_groups(level, amount, name, code)\nTask: Find value from journal_entries where code appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(value, status, name, level)\n dispatch_queue(name, level, code, type)\nTask: Retrieve id from sales_queue whose level is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, salary, level, type)\n portfolio_index(name, value, amount, date)\nTask: Select id from personnel_registry where salary is greater than the minimum of salary in portfolio_index for matching type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(name, salary, value, date)\n acquisition_log(amount, id, type, name)\nTask: Retrieve value from personnel_registry with salary above the SUM(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(status, code, amount, level)\n engagement_log(code, id, amount, status)\nTask: Retrieve salary from sales_registry with salary above the COUNT(amount) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE salary > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(amount, name, date, type)\n journal_entries(status, name, value, level)\nTask: Find salary from sourcing_list where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(name, salary, status, amount)\n sales_registry(amount, id, status, type)\nTask: Find salary from stock_catalog where code appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(amount, id, code, name)\n receivables_log(status, date, id, amount)\nTask: Select amount from engagement_log where code exists in receivables_log for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(name, id, salary, value)\n receivables_log(type, date, salary, level)\nTask: Retrieve amount from workforce_data whose code is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(salary, status, name, level)\n attribute_groups(name, level, amount, value)\nTask: Find code from portfolio_index where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(id, type, level, amount)\n sales_queue(salary, level, amount, status)\nTask: Retrieve id from facility_registry with amount above the AVG(value) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(status, value, amount, id)\n acquisition_log(code, name, amount, level)\nTask: Select salary from engagement_log that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(code, amount, value, id)\n acquisition_log(id, date, value, salary)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(level, id, salary, amount)\n workforce_data(code, value, salary, status)\nTask: Select id from dispatch_queue where salary is greater than the average of value in workforce_data for matching id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(amount, value, date, type)\n personnel_registry(value, status, type, name)\nTask: Find value from receivables_log where id appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(status, name, type, code)\n engagement_log(status, date, salary, id)\nTask: Retrieve value from stocking_sites with amount above the AVG(value) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE amount > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(salary, name, amount, level)\n activity_log(code, value, level, id)\nTask: Find code from area_registry where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(type, level, status, date)\n sales_registry(code, salary, id, type)\nTask: Find salary from facility_registry where amount exceeds the average salary from sales_registry for the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(id, name, type, value)\n attribute_groups(status, name, level, salary)\nTask: Select amount from stock_catalog that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(value, level, type, date)\n sales_queue(id, type, salary, value)\nTask: Select id from activity_log where type exists in sales_queue for the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(level, amount, id, type)\n engagement_log(code, level, date, status)\nTask: Select value from area_registry that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(name, date, salary, status)\n cost_centers(code, amount, value, id)\nTask: Find id from activity_log where type appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, value, level, id)\n activity_log(id, type, code, date)\nTask: Find id from receivables_log where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(value, name, level, date)\n sourcing_list(id, value, salary, status)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(date, code, amount, level)\n personnel_registry(salary, type, status, value)\nTask: Find id from activity_log where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(value, amount, id, date)\n cost_centers(id, status, type, level)\nTask: Select value from sales_registry where value is greater than the average of salary in cost_centers for matching code.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE value > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(status, id, code, value)\n sales_queue(code, salary, level, id)\nTask: Retrieve amount from attribute_groups whose id is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(code, id, name, value)\n personnel_registry(name, value, id, level)\nTask: Find amount from engagement_log where code appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(id, status, code, date)\n receivables_log(date, salary, type, status)\nTask: Select salary from dispatch_queue where type exists in receivables_log for the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "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}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(salary, level, id, type)\n dispatch_queue(salary, value, type, date)\nTask: Select value from area_registry where amount is greater than the average of salary in dispatch_queue for matching type.\nSQL:", "sql": "SELECT value FROM area_registry AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(status, level, amount, code)\n attribute_groups(value, id, salary, level)\nTask: Find amount from facility_registry where status appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(status, code, id, value)\n journal_entries(name, level, type, value)\nTask: Retrieve name from acquisition_log that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(name, code, amount, id)\n workforce_data(status, code, date, name)\nTask: Retrieve value from sourcing_list with value above the SUM(amount) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE value > (\n SELECT SUM(amount) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(code, status, type, salary)\n attribute_groups(level, amount, id, date)\nTask: Find id from portfolio_index where type appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(date, level, type, amount)\n engagement_log(date, code, level, type)\nTask: Select value from sourcing_list where value is greater than the minimum of amount in engagement_log for matching level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE value > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(status, code, type, amount)\n personnel_registry(salary, value, status, name)\nTask: Select amount from activity_log where type exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(date, type, code, salary)\n acquisition_log(code, date, value, name)\nTask: Select value from area_registry where level exists in acquisition_log for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS empl\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(salary, level, amount, type)\n sourcing_list(id, code, level, amount)\nTask: Select name from sales_queue where value is greater than the count of of value in sourcing_list for matching status.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE value > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(code, date, value, amount)\n portfolio_index(level, salary, type, id)\nTask: Find salary from journal_entries where value exceeds the minimum value from portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE value > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(level, status, type, value)\n dispatch_queue(date, type, value, amount)\nTask: Retrieve amount from portfolio_index whose code is found in dispatch_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(status, level, id, value)\n sales_queue(name, level, type, salary)\nTask: Find value from sourcing_list where level appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, code, id, salary)\n portfolio_index(type, amount, date, code)\nTask: Retrieve id from attribute_groups with value above the MIN(amount) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(salary, type, code, date)\n activity_log(id, code, value, date)\nTask: Find value from area_registry where value exceeds the maximum value from activity_log for the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS emp\nWHERE value > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(status, value, date, id)\n stocking_sites(amount, level, type, salary)\nTask: Find name from facility_registry where type appears in stocking_sites entries with matching type.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(value, salary, status, date)\n sales_queue(level, date, code, type)\nTask: Select value from sales_registry where amount is greater than the count of of salary in sales_queue for matching code.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(salary, type, id, level)\n personnel_registry(salary, status, code, amount)\nTask: Find name from stock_catalog where code appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(name, date, status, salary)\n cost_centers(id, amount, code, type)\nTask: Select salary from attribute_groups that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(code, salary, type, level)\n dispatch_queue(level, date, salary, amount)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in dispatch_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, value, salary, amount)\n cost_centers(code, level, amount, id)\nTask: Find salary from stock_catalog where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(value, type, status, level)\n workforce_data(value, code, type, level)\nTask: Select salary from portfolio_index where type exists in workforce_data for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(date, name, level, code)\n receivables_log(name, code, value, salary)\nTask: Find id from engagement_log where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(name, id, code, amount)\n cost_centers(value, date, salary, code)\nTask: Retrieve id from sales_registry whose id is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(level, date, status, salary)\n facility_registry(status, name, amount, salary)\nTask: Find name from stocking_sites where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(code, id, name, date)\n facility_registry(date, salary, amount, value)\nTask: Retrieve salary from personnel_registry with salary above the COUNT(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(id, code, name, salary)\n engagement_log(id, date, amount, level)\nTask: Select code from cost_centers where code exists in engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(status, type, amount, level)\n sales_registry(name, type, amount, date)\nTask: Select salary from receivables_log that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(id, date, type, salary)\n engagement_log(code, value, date, level)\nTask: Select value from sales_queue where code exists in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(id, level, salary, status)\n attribute_groups(amount, name, level, salary)\nTask: Retrieve value from activity_log whose status is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(code, level, date, status)\n dispatch_queue(code, status, salary, name)\nTask: Find code from attribute_groups where amount exceeds the maximum salary from dispatch_queue for the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(id, status, level, value)\n activity_log(id, type, status, amount)\nTask: Retrieve code from engagement_log whose id is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(date, value, level, amount)\n engagement_log(type, code, level, salary)\nTask: Select salary from cost_centers that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, date, value, type)\n sales_queue(level, code, status, id)\nTask: Select name from stock_catalog where code exists in sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(amount, status, name, type)\n attribute_groups(id, code, level, date)\nTask: Retrieve code from dispatch_queue with amount above the AVG(value) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(level, value, type, code)\n personnel_registry(name, value, amount, salary)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(name, id, value, level)\n attribute_groups(amount, salary, date, value)\nTask: Select code from workforce_data that have at least one matching row in attribute_groups for the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(salary, amount, code, type)\n stock_catalog(type, code, level, status)\nTask: Select code from receivables_log where status exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS usr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(level, date, type, name)\n stock_catalog(id, code, salary, type)\nTask: Select amount from portfolio_index that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(level, status, name, value)\n stocking_sites(code, level, amount, status)\nTask: Retrieve name from facility_registry with salary above the COUNT(amount) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE salary > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(date, level, salary, status)\n stock_catalog(name, id, type, salary)\nTask: Select code from acquisition_log that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(type, status, id, level)\n sales_queue(date, id, level, type)\nTask: Retrieve value from stocking_sites with amount above the COUNT(value) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE amount > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(name, type, id, amount)\n receivables_log(code, value, name, salary)\nTask: Find code from journal_entries where salary exceeds the count of value from receivables_log for the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(id, value, amount, code)\n sourcing_list(date, id, name, status)\nTask: Retrieve value from sales_queue whose status is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, salary, date, value)\n facility_registry(code, value, type, name)\nTask: Find amount from stock_catalog where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(name, salary, amount, status)\n stocking_sites(salary, amount, status, id)\nTask: Select code from facility_registry that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(date, level, name, value)\n engagement_log(type, level, name, salary)\nTask: Find amount from stock_catalog where status appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, id, date, salary)\n journal_entries(amount, salary, code, level)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(id, status, type, date)\n engagement_log(id, salary, date, level)\nTask: Select code from attribute_groups where value is greater than the maximum of salary in engagement_log for matching code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE value > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(level, value, salary, code)\n stock_catalog(code, name, salary, level)\nTask: Select value from journal_entries that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(code, id, salary, value)\n activity_log(type, status, amount, name)\nTask: Select amount from sales_registry where level exists in activity_log for the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(date, status, amount, value)\n portfolio_index(code, name, date, status)\nTask: Select code from cost_centers where value is greater than the average of salary in portfolio_index for matching id.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE value > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(value, level, salary, code)\n attribute_groups(date, salary, amount, value)\nTask: Retrieve name from sales_queue with salary above the AVG(amount) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, value, type, date)\n acquisition_log(value, amount, code, salary)\nTask: Find id from sourcing_list where salary exceeds the total value from acquisition_log for the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(value, date, id, amount)\n stock_catalog(type, status, level, amount)\nTask: Retrieve amount from engagement_log whose level is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(name, level, status, salary)\n cost_centers(status, name, code, level)\nTask: Find salary from receivables_log where id appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(code, level, value, type)\n journal_entries(value, type, id, name)\nTask: Select name from facility_registry where level exists in journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(id, name, status, date)\n sourcing_list(code, type, amount, date)\nTask: Select code from personnel_registry that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(value, status, salary, amount)\n stocking_sites(date, id, type, name)\nTask: Retrieve code from acquisition_log whose status is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(name, level, amount, code)\n engagement_log(status, name, type, amount)\nTask: Find amount from dispatch_queue where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(level, salary, value, name)\n portfolio_index(name, code, id, salary)\nTask: Select value from acquisition_log where code exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(type, level, name, value)\n activity_log(date, id, type, name)\nTask: Retrieve amount from portfolio_index that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(status, amount, type, name)\n sourcing_list(code, salary, value, id)\nTask: Find id from attribute_groups where value exceeds the average salary from sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE value > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(status, type, value, level)\n sourcing_list(amount, salary, code, value)\nTask: Find amount from stocking_sites where value exceeds the average salary from sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE value > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(level, amount, date, salary)\n workforce_data(status, id, code, level)\nTask: Select salary from sales_registry where value is greater than the minimum of salary in workforce_data for matching level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, id, salary, date)\n sales_queue(id, status, name, type)\nTask: Retrieve name from attribute_groups with salary above the AVG(salary) of sales_queue rows sharing the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(name, id, date, status)\n personnel_registry(status, date, value, name)\nTask: Retrieve salary from engagement_log with value above the MAX(value) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(date, salary, level, type)\n personnel_registry(id, type, level, status)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(salary, status, name, value)\n sales_registry(value, type, id, status)\nTask: Find name from engagement_log where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(name, value, id, type)\n area_registry(code, name, value, amount)\nTask: Select value from facility_registry that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(name, date, level, type)\n acquisition_log(salary, code, name, status)\nTask: Select name from portfolio_index where value is greater than the maximum of amount in acquisition_log for matching status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE value > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(value, salary, amount, id)\n journal_entries(status, value, type, code)\nTask: Select id from activity_log where code exists in journal_entries for the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(code, status, type, level)\n stock_catalog(status, id, amount, salary)\nTask: Select name from area_registry where level exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(status, level, salary, type)\n journal_entries(level, name, date, salary)\nTask: Retrieve id from personnel_registry whose level is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(date, level, status, code)\n stock_catalog(id, salary, amount, code)\nTask: Find code from sales_registry where id appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(status, code, amount, salary)\n area_registry(type, value, amount, level)\nTask: Retrieve salary from acquisition_log whose level is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(id, status, type, level)\n receivables_log(code, level, name, date)\nTask: Find code from engagement_log where salary exceeds the total value from receivables_log for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(id, code, status, date)\n workforce_data(name, status, value, id)\nTask: Select code from stocking_sites where id exists in workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, code, level, value)\n sales_registry(code, date, level, name)\nTask: Retrieve amount from personnel_registry with salary above the COUNT(amount) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(id, value, name, date)\n dispatch_queue(status, code, value, date)\nTask: Select name from personnel_registry that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(level, code, amount, name)\n cost_centers(date, salary, value, status)\nTask: Find name from acquisition_log where value exceeds the average value from cost_centers for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE value > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(name, status, id, value)\n stock_catalog(date, amount, name, status)\nTask: Select salary from activity_log that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(amount, name, value, status)\n cost_centers(date, salary, status, value)\nTask: Select id from area_registry where status exists in cost_centers for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(code, type, status, date)\n portfolio_index(status, amount, salary, type)\nTask: Find name from sales_registry where level appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(value, code, status, name)\n sales_queue(type, name, code, level)\nTask: Select salary from attribute_groups where status exists in sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, level, type, name)\n attribute_groups(salary, id, type, name)\nTask: Select value from portfolio_index where salary is greater than the total of value in attribute_groups for matching type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE salary > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(level, value, salary, amount)\n portfolio_index(level, salary, id, type)\nTask: Select id from receivables_log where id exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(code, name, level, id)\n journal_entries(id, type, value, salary)\nTask: Select amount from workforce_data that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(level, name, salary, code)\n journal_entries(value, amount, code, salary)\nTask: Find code from stocking_sites where salary exceeds the count of amount from journal_entries for the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE salary > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(id, value, status, amount)\n acquisition_log(id, status, name, date)\nTask: Find name from stocking_sites where value exceeds the average amount from acquisition_log for the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE value > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(type, id, salary, name)\n dispatch_queue(status, salary, code, name)\nTask: Select id from journal_entries where salary is greater than the maximum of amount in dispatch_queue for matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(type, value, level, status)\n activity_log(level, value, type, id)\nTask: Find id from portfolio_index where value exceeds the maximum value from activity_log for the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE value > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(name, code, id, status)\n facility_registry(date, status, level, amount)\nTask: Select salary from journal_entries where code exists in facility_registry for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(status, name, date, id)\n personnel_registry(date, name, level, value)\nTask: Find name from sourcing_list where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, amount, type, status)\n journal_entries(salary, value, amount, code)\nTask: Find value from portfolio_index where salary exceeds the minimum amount from journal_entries for the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(id, salary, date, amount)\n acquisition_log(id, amount, name, value)\nTask: Select name from portfolio_index that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(amount, name, type, code)\n activity_log(salary, amount, name, status)\nTask: Retrieve code from stocking_sites whose code is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(value, id, type, salary)\n activity_log(name, amount, code, id)\nTask: Find value from area_registry where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(level, value, date, amount)\n stock_catalog(code, salary, value, amount)\nTask: Select code from attribute_groups that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(level, amount, id, code)\n cost_centers(name, status, level, salary)\nTask: Select amount from portfolio_index that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(salary, code, name, date)\n portfolio_index(name, date, level, type)\nTask: Retrieve id from area_registry that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(amount, status, name, id)\n dispatch_queue(type, value, level, id)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(id, date, code, type)\n attribute_groups(date, name, code, id)\nTask: Retrieve name from area_registry whose status is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(status, date, amount, code)\n receivables_log(salary, status, type, code)\nTask: Retrieve salary from stock_catalog with salary above the MIN(amount) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(level, salary, code, id)\n sales_queue(date, value, name, level)\nTask: Select name from cost_centers where amount is greater than the maximum of value in sales_queue for matching code.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE amount > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(code, name, type, status)\n receivables_log(name, date, value, code)\nTask: Find amount from portfolio_index where type appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(code, id, date, salary)\n stocking_sites(salary, level, value, amount)\nTask: Retrieve id from journal_entries with salary above the SUM(value) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS empl\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(code, amount, value, status)\n activity_log(level, name, id, code)\nTask: Select code from personnel_registry where id exists in activity_log for the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(value, status, level, date)\n acquisition_log(code, status, name, value)\nTask: Retrieve code from engagement_log with value above the AVG(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE value > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(status, name, id, code)\n attribute_groups(code, id, name, status)\nTask: Find name from stock_catalog where status appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(value, name, salary, status)\n dispatch_queue(date, value, id, status)\nTask: Select value from stocking_sites that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(status, salary, name, value)\n stocking_sites(salary, name, date, type)\nTask: Find amount from receivables_log where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, status, type, date)\n receivables_log(code, level, value, date)\nTask: Find code from sourcing_list where id appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(amount, salary, name, value)\n sourcing_list(id, value, salary, level)\nTask: Find value from activity_log where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(name, status, amount, date)\n sourcing_list(salary, type, date, level)\nTask: Retrieve id from facility_registry whose code is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(name, status, level, type)\n dispatch_queue(value, code, type, salary)\nTask: Find value from journal_entries where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(code, salary, date, type)\n stock_catalog(code, salary, status, id)\nTask: Retrieve id from facility_registry with value above the MAX(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE value > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(date, code, value, level)\n acquisition_log(code, level, type, id)\nTask: Select amount from activity_log where amount is greater than the average of value in acquisition_log for matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(type, date, code, salary)\n attribute_groups(date, value, type, id)\nTask: Select amount from sales_queue where status exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(id, date, name, value)\n facility_registry(salary, level, type, id)\nTask: Find name from acquisition_log where status appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(status, level, type, salary)\n stock_catalog(level, type, date, status)\nTask: Find amount from portfolio_index where level appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(name, code, date, level)\n stock_catalog(level, status, salary, amount)\nTask: Select id from portfolio_index that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(name, id, type, value)\n receivables_log(level, type, code, name)\nTask: Find name from sourcing_list where code appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS ord\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(name, salary, code, amount)\n journal_entries(id, salary, name, date)\nTask: Retrieve amount from stock_catalog whose type is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(level, code, id, date)\n portfolio_index(date, amount, id, code)\nTask: Retrieve code from sales_queue with value above the SUM(salary) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE value > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(salary, type, code, amount)\n sourcing_list(status, code, level, type)\nTask: Retrieve id from activity_log that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(amount, status, value, date)\n sourcing_list(id, type, status, date)\nTask: Select id from area_registry where code exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(date, status, name, amount)\n stocking_sites(value, salary, date, status)\nTask: Retrieve salary from personnel_registry with value above the SUM(amount) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE value > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(code, amount, date, id)\n facility_registry(name, type, status, id)\nTask: Find salary from cost_centers where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(status, salary, amount, name)\n journal_entries(type, name, amount, id)\nTask: Select id from area_registry where amount is greater than the count of of salary in journal_entries for matching code.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(salary, level, name, amount)\n cost_centers(id, code, name, date)\nTask: Retrieve salary from receivables_log whose level is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(status, code, name, amount)\n portfolio_index(salary, level, id, value)\nTask: Find name from dispatch_queue where code appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(status, name, value, id)\n activity_log(code, name, id, value)\nTask: Select value from sales_queue where salary is greater than the total of value in activity_log for matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, name, type, amount)\n portfolio_index(level, amount, type, id)\nTask: Find salary from dispatch_queue where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(name, status, level, code)\n acquisition_log(value, date, status, level)\nTask: Retrieve amount from engagement_log whose code is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(level, id, name, status)\n sales_registry(level, value, status, code)\nTask: Select value from stocking_sites that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(name, salary, level, status)\n attribute_groups(code, id, date, status)\nTask: Select salary from stocking_sites where salary is greater than the maximum of value in attribute_groups for matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(salary, status, name, amount)\n personnel_registry(id, date, salary, value)\nTask: Select amount from facility_registry that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, id, code, type)\n cost_centers(id, code, level, amount)\nTask: Select name from stocking_sites that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(id, amount, date, status)\n attribute_groups(id, salary, value, amount)\nTask: Find amount from sales_registry where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, value, date, type)\n acquisition_log(value, type, status, level)\nTask: Find value from stock_catalog where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(name, code, level, salary)\n engagement_log(amount, level, value, code)\nTask: Select id from acquisition_log that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(level, status, salary, date)\n stock_catalog(type, salary, date, status)\nTask: Find value from journal_entries where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(amount, salary, name, value)\n sales_queue(status, name, salary, amount)\nTask: Retrieve id from area_registry that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(status, name, value, level)\n portfolio_index(id, salary, date, status)\nTask: Retrieve amount from stocking_sites with salary above the MIN(value) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE salary > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(date, id, level, status)\n cost_centers(date, status, amount, id)\nTask: Select amount from stocking_sites that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(status, id, type, code)\n sales_registry(value, code, type, name)\nTask: Retrieve name from area_registry whose type is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(value, code, type, name)\n receivables_log(status, name, amount, salary)\nTask: Select name from dispatch_queue where level exists in receivables_log for the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(date, salary, name, status)\n personnel_registry(type, id, level, name)\nTask: Select code from journal_entries where amount is greater than the average of amount in personnel_registry for matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(type, value, name, salary)\n acquisition_log(name, status, type, salary)\nTask: Find salary from journal_entries where status appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(salary, amount, type, code)\n dispatch_queue(salary, amount, code, level)\nTask: Find code from personnel_registry where amount exceeds the total amount from dispatch_queue for the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, id, status, code)\n sales_registry(status, type, name, level)\nTask: Retrieve salary from dispatch_queue with salary above the COUNT(value) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(value, status, amount, id)\n cost_centers(type, id, date, code)\nTask: Find id from attribute_groups where value exceeds the total value from cost_centers for the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE value > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(value, level, code, name)\n sales_queue(type, salary, code, date)\nTask: Select name from cost_centers where code exists in sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(date, level, type, value)\n portfolio_index(status, amount, type, date)\nTask: Retrieve id from area_registry that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(status, level, value, type)\n personnel_registry(type, salary, amount, level)\nTask: Find code from sales_queue where salary exceeds the maximum amount from personnel_registry for the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, date, salary, name)\n receivables_log(type, id, name, code)\nTask: Select id from portfolio_index where status exists in receivables_log for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, amount, type, id)\n journal_entries(level, code, type, salary)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(name, id, level, salary)\n activity_log(date, code, status, name)\nTask: Find name from portfolio_index where id appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(id, amount, value, date)\n sourcing_list(code, type, status, value)\nTask: Select name from sales_queue where value is greater than the count of of value in sourcing_list for matching type.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE value > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(value, level, amount, code)\n sourcing_list(amount, id, type, code)\nTask: Find id from area_registry where salary exceeds the maximum value from sourcing_list for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE salary > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(salary, type, value, date)\n area_registry(id, type, name, level)\nTask: Find code from receivables_log where salary exceeds the maximum value from area_registry for the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE salary > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(code, amount, id, salary)\n activity_log(type, salary, code, name)\nTask: Select amount from engagement_log where level exists in activity_log for the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(value, type, salary, name)\n stock_catalog(type, id, code, name)\nTask: Find amount from sales_registry where salary exceeds the average amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(salary, date, value, code)\n sales_queue(value, salary, date, level)\nTask: Find name from sales_registry where salary exceeds the total salary from sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(type, name, date, status)\n attribute_groups(name, code, amount, value)\nTask: Retrieve value from journal_entries with amount above the MIN(value) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE amount > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(type, salary, name, amount)\n stock_catalog(amount, date, code, id)\nTask: Retrieve value from dispatch_queue whose level is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, date, code, value)\n engagement_log(date, type, level, status)\nTask: Select id from stock_catalog that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(amount, type, level, status)\n engagement_log(salary, code, level, value)\nTask: Select amount from cost_centers that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(id, name, code, type)\n receivables_log(amount, type, salary, date)\nTask: Find name from journal_entries where value exceeds the total amount from receivables_log for the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE value > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(name, code, level, id)\n area_registry(name, type, value, level)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(value, type, amount, date)\n area_registry(amount, level, date, code)\nTask: Find name from stocking_sites where value exceeds the count of amount from area_registry for the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(code, value, id, level)\n area_registry(code, date, amount, value)\nTask: Retrieve name from sales_queue with amount above the MIN(value) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(date, id, name, salary)\n acquisition_log(value, status, date, code)\nTask: Select amount from activity_log where salary is greater than the maximum of value in acquisition_log for matching id.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE salary > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(id, level, name, status)\n facility_registry(date, code, value, id)\nTask: Select code from sourcing_list that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(name, date, id, salary)\n stock_catalog(value, type, id, date)\nTask: Find amount from journal_entries where type appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, date, level, id)\n portfolio_index(name, code, value, date)\nTask: Retrieve value from stock_catalog whose status is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(value, level, date, type)\n workforce_data(code, name, value, amount)\nTask: Retrieve amount from activity_log whose level is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(date, type, status, salary)\n stock_catalog(value, code, amount, id)\nTask: Retrieve id from acquisition_log with amount above the COUNT(amount) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(level, salary, id, code)\n sales_queue(code, amount, salary, name)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(id, date, status, amount)\n attribute_groups(type, name, id, date)\nTask: Select amount from engagement_log where level exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(name, code, status, type)\n stocking_sites(value, id, code, salary)\nTask: Find amount from personnel_registry where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(type, name, salary, id)\n stocking_sites(date, name, amount, level)\nTask: Find name from workforce_data where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(type, status, salary, code)\n cost_centers(salary, id, date, status)\nTask: Select salary from area_registry where level exists in cost_centers for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(value, type, code, name)\n personnel_registry(name, code, id, value)\nTask: Select value from sales_queue where amount is greater than the minimum of value in personnel_registry for matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(date, amount, code, type)\n journal_entries(status, salary, date, type)\nTask: Select name from receivables_log that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(name, code, id, salary)\n facility_registry(type, code, name, salary)\nTask: Find salary from personnel_registry where amount exceeds the count of salary from facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(salary, value, level, id)\n attribute_groups(amount, status, type, value)\nTask: Find id from dispatch_queue where a matching record exists in attribute_groups with the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(date, amount, status, name)\n receivables_log(type, status, id, level)\nTask: Retrieve code from personnel_registry whose status is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, name, value, type)\n cost_centers(level, code, type, status)\nTask: Find value from attribute_groups where status appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS mgr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(level, type, salary, code)\n dispatch_queue(salary, value, type, level)\nTask: Find salary from facility_registry where type appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(level, salary, id, name)\n personnel_registry(code, name, salary, level)\nTask: Find code from journal_entries where amount exceeds the maximum salary from personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, level, code, amount)\n receivables_log(name, level, status, type)\nTask: Find amount from stock_catalog where amount exceeds the count of value from receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(id, level, salary, name)\n receivables_log(id, status, salary, amount)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(level, value, salary, status)\n engagement_log(status, name, code, id)\nTask: Find id from activity_log where salary exceeds the minimum salary from engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(date, status, name, code)\n area_registry(value, level, id, code)\nTask: Find amount from dispatch_queue where amount exceeds the average salary from area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(date, id, amount, code)\n dispatch_queue(id, name, code, date)\nTask: Retrieve value from attribute_groups whose type is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS ord\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, id, amount, level)\n cost_centers(date, id, name, status)\nTask: Retrieve salary from stock_catalog with value above the AVG(value) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE value > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(status, salary, id, level)\n stock_catalog(code, salary, value, level)\nTask: Select value from cost_centers where salary is greater than the maximum of amount in stock_catalog for matching code.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(id, level, date, salary)\n area_registry(code, value, date, name)\nTask: Select value from engagement_log where id exists in area_registry for the same id.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(salary, value, level, id)\n area_registry(date, salary, name, value)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(level, salary, value, date)\n personnel_registry(salary, code, date, id)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(amount, salary, id, date)\n activity_log(status, value, type, code)\nTask: Select amount from engagement_log that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(code, id, value, level)\n cost_centers(date, level, id, type)\nTask: Retrieve name from area_registry that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(level, id, code, status)\n facility_registry(name, salary, value, id)\nTask: Select code from acquisition_log that have at least one matching row in facility_registry for the same level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(code, amount, id, level)\n acquisition_log(code, status, value, level)\nTask: Select amount from engagement_log that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(amount, code, id, salary)\n portfolio_index(value, amount, status, name)\nTask: Select value from cost_centers that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(level, status, code, id)\n engagement_log(date, level, status, id)\nTask: Find name from workforce_data where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(id, level, amount, salary)\n engagement_log(id, salary, amount, status)\nTask: Select code from stock_catalog where type exists in engagement_log for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(type, status, date, level)\n sales_registry(amount, type, code, status)\nTask: Find salary from cost_centers where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(salary, status, date, name)\n facility_registry(amount, type, code, value)\nTask: Select id from journal_entries that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(level, amount, date, type)\n stock_catalog(salary, level, name, type)\nTask: Retrieve code from personnel_registry with value above the MIN(salary) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE value > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(date, code, value, level)\n workforce_data(name, status, date, id)\nTask: Retrieve name from area_registry whose level is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(salary, status, id, amount)\n personnel_registry(type, level, date, salary)\nTask: Retrieve salary from engagement_log with value above the COUNT(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE value > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(id, amount, level, value)\n sales_queue(value, date, type, code)\nTask: Select salary from journal_entries that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(id, code, amount, salary)\n stock_catalog(salary, code, level, amount)\nTask: Select code from facility_registry where value is greater than the total of amount in stock_catalog for matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(level, type, amount, date)\n receivables_log(status, value, type, amount)\nTask: Select salary from facility_registry where value is greater than the minimum of value in receivables_log for matching code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS empl\nWHERE value > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(date, type, name, amount)\n stocking_sites(name, id, code, value)\nTask: Select value from cost_centers that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(date, id, name, status)\n attribute_groups(level, salary, value, id)\nTask: Retrieve name from workforce_data whose code is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM workforce_data AS dept\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, salary, amount, type)\n cost_centers(name, status, date, level)\nTask: Select name from stocking_sites where amount is greater than the minimum of value in cost_centers for matching id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, id, status, date)\n sales_registry(type, salary, amount, code)\nTask: Select code from sourcing_list where salary is greater than the total of value in sales_registry for matching status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE salary > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(level, type, amount, value)\n engagement_log(level, value, type, salary)\nTask: Select code from sourcing_list that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(type, value, level, code)\n stock_catalog(date, name, value, status)\nTask: Select salary from stocking_sites that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(status, name, salary, amount)\n workforce_data(id, status, level, amount)\nTask: Find id from stocking_sites where type appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(date, status, salary, name)\n facility_registry(id, code, salary, date)\nTask: Select amount from portfolio_index where type exists in facility_registry for the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(status, amount, date, value)\n journal_entries(name, type, salary, date)\nTask: Find name from area_registry where value exceeds the count of value from journal_entries for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(level, salary, date, id)\n receivables_log(name, date, type, id)\nTask: Retrieve amount from area_registry whose status is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(type, date, code, name)\n acquisition_log(type, salary, date, name)\nTask: Select value from area_registry that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(type, salary, date, amount)\n sales_queue(salary, date, amount, code)\nTask: Retrieve salary from cost_centers with salary above the MAX(salary) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(name, id, amount, salary)\n attribute_groups(code, status, value, name)\nTask: Find amount from workforce_data where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(value, amount, status, id)\n portfolio_index(level, name, value, date)\nTask: Select code from receivables_log where code exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS mgr\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(code, date, value, level)\n stocking_sites(code, name, date, amount)\nTask: Retrieve name from area_registry whose type is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(level, id, value, code)\n area_registry(name, status, id, code)\nTask: Retrieve name from engagement_log whose id is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(status, value, level, date)\n cost_centers(code, amount, level, value)\nTask: Select code from area_registry that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(amount, code, type, name)\n activity_log(name, date, value, type)\nTask: Find salary from journal_entries where type appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(value, date, id, salary)\n receivables_log(type, date, salary, level)\nTask: Select amount from acquisition_log where value is greater than the average of salary in receivables_log for matching type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE value > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(date, type, amount, value)\n stocking_sites(level, id, salary, type)\nTask: Select id from engagement_log that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, amount, level, id)\n acquisition_log(status, type, name, id)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(name, type, value, id)\n facility_registry(type, name, date, code)\nTask: Retrieve salary from cost_centers with amount above the COUNT(value) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(type, level, id, date)\n journal_entries(id, status, salary, code)\nTask: Find name from sales_registry where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(date, code, amount, level)\n stock_catalog(amount, name, date, type)\nTask: Select salary from sourcing_list where salary is greater than the maximum of salary in stock_catalog for matching status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, code, level, salary)\n facility_registry(code, type, value, level)\nTask: Find salary from stock_catalog where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(amount, code, date, level)\n journal_entries(code, status, level, value)\nTask: Find salary from personnel_registry where code appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, date, name, level)\n acquisition_log(status, code, type, name)\nTask: Find id from stocking_sites where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(amount, name, salary, value)\n sales_registry(code, status, amount, salary)\nTask: Find amount from sourcing_list where amount exceeds the maximum salary from sales_registry for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(value, id, level, type)\n area_registry(id, amount, salary, value)\nTask: Find id from activity_log where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(level, type, value, salary)\n journal_entries(type, date, level, status)\nTask: Select salary from portfolio_index where salary is greater than the minimum of salary in journal_entries for matching type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(amount, type, code, date)\n sourcing_list(value, type, level, salary)\nTask: Retrieve salary from receivables_log whose status is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, date, amount, type)\n journal_entries(level, value, date, type)\nTask: Find name from stocking_sites where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(date, level, type, name)\n attribute_groups(code, type, status, date)\nTask: Find name from receivables_log where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(date, amount, code, status)\n personnel_registry(date, name, salary, id)\nTask: Select name from facility_registry that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(status, id, type, amount)\n sales_queue(salary, value, id, name)\nTask: Select value from activity_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(salary, date, amount, type)\n area_registry(amount, date, id, type)\nTask: Find amount from activity_log where amount exceeds the maximum value from area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE amount > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(id, name, salary, level)\n cost_centers(amount, value, id, status)\nTask: Select value from sourcing_list where type exists in cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(type, status, id, name)\n stocking_sites(date, amount, value, level)\nTask: Select value from area_registry where value is greater than the total of value in stocking_sites for matching level.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(type, level, value, name)\n stocking_sites(level, status, type, date)\nTask: Retrieve value from portfolio_index with salary above the MIN(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE salary > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, amount, type, date)\n sales_queue(status, id, date, amount)\nTask: Find code from stocking_sites where id appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(id, level, status, code)\n activity_log(code, level, status, type)\nTask: Select id from stock_catalog where code exists in activity_log for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS inv\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(id, level, date, amount)\n personnel_registry(id, amount, type, date)\nTask: Select name from cost_centers where id exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS inv\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(salary, name, value, status)\n activity_log(amount, salary, status, id)\nTask: Find code from stocking_sites where amount exceeds the maximum amount from activity_log for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, type, amount, value)\n sales_registry(salary, level, amount, status)\nTask: Retrieve salary from activity_log with salary above the COUNT(amount) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(salary, date, level, value)\n portfolio_index(code, value, name, id)\nTask: Select code from attribute_groups that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(name, value, id, salary)\n attribute_groups(amount, status, level, salary)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(code, id, status, amount)\n sourcing_list(name, id, type, value)\nTask: Select code from attribute_groups that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(amount, value, status, type)\n personnel_registry(amount, level, value, date)\nTask: Select salary from engagement_log that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, id, code, name)\n journal_entries(type, status, code, id)\nTask: Select code from dispatch_queue that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(name, code, date, value)\n stock_catalog(type, date, value, id)\nTask: Retrieve name from acquisition_log whose status is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(code, id, type, name)\n activity_log(code, status, type, value)\nTask: Retrieve code from workforce_data whose code is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(name, code, level, id)\n area_registry(salary, type, amount, code)\nTask: Retrieve code from dispatch_queue with value above the AVG(salary) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE value > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, date, value, code)\n personnel_registry(value, date, type, status)\nTask: Retrieve value from acquisition_log with amount above the MIN(amount) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(code, id, level, status)\n journal_entries(level, amount, salary, value)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(name, code, amount, status)\n cost_centers(status, id, level, type)\nTask: Retrieve salary from engagement_log with salary above the AVG(salary) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(status, amount, type, level)\n receivables_log(type, value, amount, date)\nTask: Retrieve id from portfolio_index whose status is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, level, amount, date)\n personnel_registry(id, type, value, level)\nTask: Select code from stocking_sites that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(salary, id, level, amount)\n dispatch_queue(id, value, amount, code)\nTask: Select id from sales_registry where salary is greater than the maximum of salary in dispatch_queue for matching level.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(id, code, level, date)\n stock_catalog(code, level, amount, name)\nTask: Retrieve amount from cost_centers with salary above the AVG(value) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE salary > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(status, type, code, id)\n sales_queue(code, amount, id, level)\nTask: Retrieve amount from receivables_log whose type is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(salary, date, name, level)\n attribute_groups(level, salary, id, status)\nTask: Find amount from stock_catalog where status appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(type, date, status, name)\n area_registry(name, salary, level, value)\nTask: Select name from engagement_log where code exists in area_registry for the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(type, name, level, value)\n personnel_registry(amount, level, value, type)\nTask: Find id from dispatch_queue where type appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(name, type, code, status)\n stock_catalog(name, status, code, salary)\nTask: Retrieve salary from acquisition_log with amount above the SUM(value) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE amount > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(salary, date, value, amount)\n sales_registry(value, salary, amount, type)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, id, type, salary)\n activity_log(value, name, salary, code)\nTask: Select salary from dispatch_queue where level exists in activity_log for the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(id, date, amount, name)\n dispatch_queue(salary, code, status, value)\nTask: Find value from sales_queue where id appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(id, salary, status, amount)\n activity_log(amount, value, type, status)\nTask: Select code from acquisition_log that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(id, value, salary, code)\n sales_registry(salary, level, amount, value)\nTask: Find name from engagement_log where amount exceeds the maximum value from sales_registry for the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE amount > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(status, value, id, code)\n stocking_sites(salary, name, type, status)\nTask: Select salary from stock_catalog that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(code, name, date, value)\n sales_queue(date, salary, type, code)\nTask: Select name from cost_centers where id exists in sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(value, type, code, status)\n sales_registry(code, name, date, amount)\nTask: Retrieve amount from receivables_log whose type is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, name, status, id)\n activity_log(type, value, level, amount)\nTask: Select amount from stocking_sites where level exists in activity_log for the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(code, salary, id, level)\n stocking_sites(date, status, value, name)\nTask: Retrieve salary from activity_log with salary above the COUNT(salary) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(value, date, level, type)\n workforce_data(salary, id, name, value)\nTask: Select name from personnel_registry that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(date, level, id, salary)\n sourcing_list(type, code, id, date)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(code, status, type, salary)\n journal_entries(id, salary, code, amount)\nTask: Find code from acquisition_log where salary exceeds the maximum amount from journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(date, level, code, type)\n sales_queue(status, date, value, amount)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(level, id, amount, date)\n acquisition_log(amount, date, level, salary)\nTask: Retrieve code from facility_registry that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(status, value, name, date)\n sales_registry(value, id, name, level)\nTask: Select amount from sales_queue where value is greater than the average of value in sales_registry for matching type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS emp\nWHERE value > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(id, type, name, amount)\n attribute_groups(date, status, name, level)\nTask: Select name from personnel_registry where value is greater than the average of salary in attribute_groups for matching status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE value > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(status, level, code, amount)\n personnel_registry(code, type, date, level)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(status, amount, code, value)\n stocking_sites(level, salary, id, code)\nTask: Find code from stock_catalog where id appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(status, amount, value, id)\n sales_registry(code, id, date, value)\nTask: Find value from sales_queue where type appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, salary, type, name)\n sourcing_list(type, value, salary, date)\nTask: Select code from acquisition_log where code exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, date, name, level)\n engagement_log(status, level, id, value)\nTask: Find salary from dispatch_queue where salary exceeds the total value from engagement_log for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, name, status, date)\n dispatch_queue(type, salary, amount, date)\nTask: Retrieve salary from portfolio_index whose code is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, code, date, name)\n facility_registry(date, salary, name, amount)\nTask: Find name from portfolio_index where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(id, name, level, amount)\n area_registry(salary, level, status, code)\nTask: Find id from activity_log where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(amount, date, salary, code)\n stocking_sites(value, date, level, amount)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(name, level, amount, id)\n activity_log(code, name, date, type)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(id, code, type, level)\n journal_entries(level, name, code, amount)\nTask: Retrieve code from receivables_log whose id is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(level, id, salary, date)\n facility_registry(code, name, level, amount)\nTask: Find amount from journal_entries where status appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(status, level, salary, id)\n engagement_log(date, amount, level, type)\nTask: Retrieve id from area_registry that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(level, salary, status, type)\n sales_queue(level, type, date, name)\nTask: Find name from engagement_log where id appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(value, id, level, status)\n activity_log(code, name, date, value)\nTask: Select id from receivables_log that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(name, type, salary, status)\n engagement_log(id, type, status, date)\nTask: Find code from workforce_data where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(salary, id, code, date)\n facility_registry(type, code, salary, id)\nTask: Find code from sales_queue where amount exceeds the maximum value from facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE amount > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(type, salary, code, name)\n portfolio_index(level, value, code, date)\nTask: Select code from receivables_log where amount is greater than the minimum of value in portfolio_index for matching type.\nSQL:", "sql": "SELECT code FROM receivables_log AS dept\nWHERE amount > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(code, date, status, type)\n dispatch_queue(name, salary, level, status)\nTask: Retrieve id from activity_log whose level is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(name, type, id, status)\n dispatch_queue(date, level, status, name)\nTask: Find amount from engagement_log where amount exceeds the maximum amount from dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE amount > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(amount, type, level, status)\n stocking_sites(status, amount, date, value)\nTask: Find id from sales_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(code, amount, id, type)\n personnel_registry(status, id, value, date)\nTask: Find name from attribute_groups where status appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(amount, value, level, code)\n receivables_log(id, salary, type, level)\nTask: Find value from dispatch_queue where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(value, code, date, id)\n facility_registry(amount, level, code, date)\nTask: Find id from sales_queue where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(date, value, id, salary)\n workforce_data(id, level, name, type)\nTask: Select value from activity_log that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(status, level, name, type)\n personnel_registry(salary, id, type, code)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT name FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(type, level, name, id)\n workforce_data(value, date, name, amount)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(salary, type, value, status)\n sales_registry(type, salary, code, id)\nTask: Retrieve name from activity_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(id, type, status, salary)\n sourcing_list(id, type, amount, name)\nTask: Select id from journal_entries where salary is greater than the average of salary in sourcing_list for matching type.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "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}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(type, level, amount, id)\n attribute_groups(type, salary, level, status)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(status, salary, value, name)\n acquisition_log(id, salary, type, value)\nTask: Retrieve name from facility_registry whose code is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(amount, status, level, salary)\n engagement_log(id, date, salary, code)\nTask: Select value from activity_log that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(status, amount, id, type)\n sourcing_list(id, code, value, name)\nTask: Find value from personnel_registry where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(level, code, date, status)\n facility_registry(salary, code, amount, name)\nTask: Retrieve salary from workforce_data whose type is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(value, amount, level, type)\n sales_registry(type, code, salary, value)\nTask: Retrieve code from dispatch_queue with amount above the MAX(salary) of sales_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(value, date, amount, type)\n facility_registry(id, amount, code, name)\nTask: Find code from activity_log where salary exceeds the maximum amount from facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(amount, name, salary, value)\n receivables_log(amount, id, name, type)\nTask: Find name from activity_log where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(date, code, id, status)\n cost_centers(id, level, code, date)\nTask: Find code from engagement_log where type appears in cost_centers entries with matching type.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(type, level, amount, value)\n journal_entries(status, level, value, salary)\nTask: Find salary from attribute_groups where salary exceeds the minimum salary from journal_entries for the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(amount, type, status, code)\n sales_queue(status, name, code, id)\nTask: Retrieve code from facility_registry with salary above the MAX(value) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE salary > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(date, amount, type, name)\n stock_catalog(salary, id, amount, date)\nTask: Find value from sales_queue where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(code, level, status, type)\n receivables_log(code, amount, id, date)\nTask: Retrieve value from sales_registry whose id is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(level, code, name, salary)\n attribute_groups(status, level, value, date)\nTask: Select amount from cost_centers where salary is greater than the average of amount in attribute_groups for matching type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(type, status, date, value)\n cost_centers(status, level, date, amount)\nTask: Select name from stock_catalog where level exists in cost_centers for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(code, amount, id, salary)\n personnel_registry(type, id, date, code)\nTask: Find code from portfolio_index where amount exceeds the total value from personnel_registry for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE amount > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(id, status, value, salary)\n journal_entries(salary, date, name, level)\nTask: Find code from facility_registry where salary exceeds the count of amount from journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE salary > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, status, name, level)\n activity_log(name, date, amount, type)\nTask: Retrieve code from sourcing_list whose type is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(id, type, code, level)\n acquisition_log(amount, date, type, value)\nTask: Find amount from area_registry where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(value, amount, salary, code)\n portfolio_index(value, type, date, amount)\nTask: Find value from workforce_data where salary exceeds the total salary from portfolio_index for the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(status, type, level, salary)\n dispatch_queue(level, type, amount, code)\nTask: Find name from sourcing_list where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(code, name, status, date)\n receivables_log(level, value, type, date)\nTask: Find code from sourcing_list where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(id, salary, status, amount)\n personnel_registry(id, value, date, status)\nTask: Retrieve amount from sales_registry with amount above the SUM(amount) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(date, status, salary, level)\n dispatch_queue(value, date, amount, salary)\nTask: Select amount from activity_log where id exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(status, value, type, code)\n acquisition_log(date, salary, level, id)\nTask: Select amount from workforce_data where amount is greater than the total of salary in acquisition_log for matching type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(amount, value, name, date)\n stock_catalog(code, salary, type, status)\nTask: Find id from workforce_data where value exceeds the count of salary from stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(level, id, type, salary)\n activity_log(amount, name, salary, id)\nTask: Retrieve name from sales_registry whose type is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(code, id, type, amount)\n stocking_sites(level, status, value, id)\nTask: Select name from area_registry where value is greater than the minimum of salary in stocking_sites for matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE value > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(level, amount, type, value)\n sales_registry(id, name, type, code)\nTask: Retrieve id from dispatch_queue with amount above the AVG(salary) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(status, amount, code, id)\n personnel_registry(type, id, amount, level)\nTask: Select code from cost_centers that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(date, amount, salary, value)\n personnel_registry(name, salary, status, value)\nTask: Find id from area_registry where amount exceeds the minimum amount from personnel_registry for the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "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}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(date, name, amount, code)\n area_registry(name, date, type, id)\nTask: Find code from sourcing_list where amount exceeds the total value from area_registry for the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE amount > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(status, salary, level, amount)\n attribute_groups(id, value, type, level)\nTask: Retrieve value from acquisition_log whose type is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, level, name, id)\n workforce_data(salary, level, id, value)\nTask: Retrieve value from stocking_sites with salary above the MIN(value) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE salary > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(name, code, status, value)\n receivables_log(date, type, status, salary)\nTask: Find name from sales_registry where status appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(value, date, salary, id)\n sales_registry(date, salary, amount, name)\nTask: Select id from journal_entries where type exists in sales_registry for the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(code, level, amount, type)\n sourcing_list(value, amount, type, salary)\nTask: Select value from area_registry where code exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(level, code, name, status)\n journal_entries(amount, type, level, code)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(value, amount, id, level)\n facility_registry(type, salary, name, level)\nTask: Find salary from workforce_data where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(name, type, date, value)\n sales_registry(level, value, name, id)\nTask: Select amount from area_registry where level exists in sales_registry for the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(value, level, name, status)\n sales_queue(level, date, id, name)\nTask: Find name from stock_catalog where value exceeds the maximum value from sales_queue for the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE value > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(id, type, value, date)\n cost_centers(status, id, amount, code)\nTask: Select name from stocking_sites that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(name, amount, type, date)\n acquisition_log(amount, level, code, type)\nTask: Find salary from sales_registry where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(level, name, amount, value)\n cost_centers(type, id, code, level)\nTask: Find salary from acquisition_log where level appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(status, salary, type, name)\n sourcing_list(date, amount, name, status)\nTask: Select value from journal_entries where id exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(code, name, id, type)\n acquisition_log(name, value, level, status)\nTask: Retrieve salary from stock_catalog whose type is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(amount, code, status, id)\n stocking_sites(status, date, type, level)\nTask: Find salary from cost_centers where value exceeds the average salary from stocking_sites for the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE value > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(amount, level, code, id)\n acquisition_log(code, date, name, salary)\nTask: Select code from area_registry where salary is greater than the average of value in acquisition_log for matching id.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(code, salary, level, status)\n journal_entries(salary, date, type, level)\nTask: Retrieve name from stocking_sites whose code is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS usr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(date, type, salary, id)\n attribute_groups(value, amount, name, salary)\nTask: Retrieve amount from engagement_log with salary above the MAX(value) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE salary > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, date, salary, level)\n journal_entries(code, status, name, date)\nTask: Find id from stocking_sites where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(salary, value, type, name)\n portfolio_index(level, code, name, status)\nTask: Select code from area_registry where level exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(code, value, level, salary)\n attribute_groups(salary, id, value, name)\nTask: Find id from portfolio_index where salary exceeds the minimum value from attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE salary > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(amount, name, date, type)\n facility_registry(amount, level, name, type)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(value, name, status, amount)\n facility_registry(value, level, status, amount)\nTask: Retrieve id from sales_queue with amount above the MAX(salary) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(salary, id, status, type)\n portfolio_index(salary, type, id, value)\nTask: Retrieve value from facility_registry with salary above the AVG(value) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS ord\nWHERE salary > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(level, value, status, amount)\n receivables_log(type, code, status, salary)\nTask: Select salary from dispatch_queue where salary is greater than the total of value in receivables_log for matching status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "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}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(value, level, code, amount)\n stock_catalog(name, level, type, date)\nTask: Find id from area_registry where value exceeds the total amount from stock_catalog for the same id.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(code, amount, name, type)\n facility_registry(id, value, status, name)\nTask: Select id from cost_centers where amount is greater than the total of salary in facility_registry for matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(value, amount, name, salary)\n sales_queue(id, date, type, amount)\nTask: Select code from receivables_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(value, level, date, id)\n dispatch_queue(salary, id, type, name)\nTask: Find salary from cost_centers where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(code, status, value, amount)\n area_registry(type, date, level, status)\nTask: Find value from facility_registry where code appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(level, salary, amount, code)\n area_registry(code, level, amount, type)\nTask: Find value from stock_catalog where salary exceeds the average amount from area_registry for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(date, salary, code, amount)\n attribute_groups(name, value, amount, level)\nTask: Retrieve amount from workforce_data with amount above the SUM(value) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE amount > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(status, value, date, salary)\n cost_centers(name, salary, type, code)\nTask: Find salary from attribute_groups where id appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(value, date, status, type)\n workforce_data(level, type, code, id)\nTask: Retrieve name from acquisition_log with salary above the MIN(amount) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(level, status, date, code)\n sales_registry(type, name, id, code)\nTask: Select amount from attribute_groups that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(code, id, amount, salary)\n dispatch_queue(date, level, code, value)\nTask: Select salary from sales_registry where status exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(status, id, value, level)\n sales_queue(value, level, type, id)\nTask: Retrieve name from facility_registry with value above the MIN(salary) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE value > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(status, id, level, date)\n portfolio_index(name, level, date, status)\nTask: Retrieve amount from acquisition_log that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(amount, date, type, code)\n stocking_sites(salary, value, status, amount)\nTask: Select salary from receivables_log that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(date, amount, code, value)\n personnel_registry(id, level, status, value)\nTask: Find code from sales_registry where status appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "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}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(date, id, code, value)\n activity_log(code, date, id, status)\nTask: Find code from journal_entries where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(type, name, date, amount)\n attribute_groups(date, type, amount, level)\nTask: Select salary from receivables_log where type exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(status, name, salary, id)\n stocking_sites(date, id, name, amount)\nTask: Find value from cost_centers where salary exceeds the average value from stocking_sites for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE salary > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(status, date, level, value)\n portfolio_index(value, name, status, date)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(name, id, date, level)\n activity_log(code, amount, salary, level)\nTask: Retrieve code from sales_queue that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(level, amount, code, date)\n workforce_data(status, type, salary, id)\nTask: Select salary from sales_queue that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(type, date, value, id)\n stocking_sites(date, salary, name, id)\nTask: Find code from personnel_registry where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(date, amount, id, level)\n sales_registry(status, level, type, value)\nTask: Retrieve name from engagement_log with value above the SUM(amount) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE value > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, amount, code, type)\n attribute_groups(name, status, level, type)\nTask: Retrieve amount from dispatch_queue with salary above the SUM(value) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(level, salary, code, amount)\n sales_registry(status, amount, type, id)\nTask: Select name from receivables_log where type exists in sales_registry for the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(code, salary, date, amount)\n stocking_sites(status, value, id, date)\nTask: Retrieve value from sales_queue that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(id, code, type, name)\n sales_queue(type, salary, code, status)\nTask: Find id from attribute_groups where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(amount, salary, status, id)\n portfolio_index(name, level, type, salary)\nTask: Find id from receivables_log where salary exceeds the total salary from portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE salary > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(id, value, status, amount)\n workforce_data(value, name, id, status)\nTask: Select salary from sourcing_list where type exists in workforce_data for the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(salary, date, type, status)\n area_registry(code, value, type, level)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in area_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, id, name, type)\n sourcing_list(level, date, id, type)\nTask: Find value from portfolio_index where status appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(id, value, date, level)\n attribute_groups(type, amount, date, status)\nTask: Find id from cost_centers where salary exceeds the maximum salary from attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(id, salary, code, amount)\n personnel_registry(level, date, name, status)\nTask: Find code from area_registry where amount exceeds the maximum amount from personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(salary, status, amount, value)\n area_registry(name, id, status, salary)\nTask: Retrieve id from stock_catalog whose status is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(status, type, id, amount)\n facility_registry(date, type, amount, id)\nTask: Select code from sales_queue where amount is greater than the count of of amount in facility_registry for matching status.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(name, type, id, status)\n sales_registry(code, level, name, date)\nTask: Find salary from engagement_log where salary exceeds the total amount from sales_registry for the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(type, level, id, date)\n engagement_log(id, name, level, salary)\nTask: Find value from stocking_sites where value exceeds the total value from engagement_log for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE value > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(amount, salary, type, id)\n receivables_log(status, type, value, id)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(status, type, salary, id)\n facility_registry(amount, date, code, id)\nTask: Retrieve id from activity_log whose type is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, code, level, id)\n cost_centers(id, level, code, type)\nTask: Select value from stock_catalog where salary is greater than the maximum of value in cost_centers for matching level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(name, value, id, level)\n facility_registry(type, status, amount, code)\nTask: Retrieve name from workforce_data with amount above the SUM(salary) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, value, date, id)\n journal_entries(name, status, date, type)\nTask: Retrieve value from dispatch_queue whose code is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(status, salary, level, type)\n activity_log(name, amount, id, code)\nTask: Retrieve code from stocking_sites with amount above the AVG(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(code, id, amount, value)\n workforce_data(type, name, date, value)\nTask: Find name from engagement_log where salary exceeds the average salary from workforce_data for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(name, salary, type, code)\n sales_queue(amount, name, value, salary)\nTask: Select salary from facility_registry where value is greater than the count of of salary in sales_queue for matching type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(amount, type, id, value)\n activity_log(amount, value, type, level)\nTask: Find name from stock_catalog where id appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(code, date, status, type)\n acquisition_log(code, date, id, type)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, id, salary, status)\n facility_registry(level, salary, amount, type)\nTask: Find salary from personnel_registry where status appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(id, name, amount, level)\n facility_registry(amount, date, salary, id)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(level, code, type, amount)\n cost_centers(type, value, amount, level)\nTask: Select value from attribute_groups where type exists in cost_centers for the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(code, amount, id, date)\n receivables_log(type, salary, amount, level)\nTask: Retrieve salary from engagement_log with salary above the MIN(salary) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(level, amount, date, id)\n sales_registry(name, salary, value, id)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(value, level, date, status)\n attribute_groups(status, level, salary, id)\nTask: Retrieve value from area_registry with amount above the COUNT(amount) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(status, value, amount, type)\n activity_log(amount, value, status, type)\nTask: Retrieve salary from journal_entries whose code is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(type, value, level, code)\n attribute_groups(code, salary, type, value)\nTask: Select value from sourcing_list where salary is greater than the minimum of amount in attribute_groups for matching id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(level, date, salary, amount)\n stock_catalog(name, code, id, amount)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(date, name, status, id)\n personnel_registry(value, date, code, id)\nTask: Find name from area_registry where salary exceeds the count of value from personnel_registry for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(status, level, name, value)\n dispatch_queue(type, value, code, id)\nTask: Retrieve salary from area_registry with amount above the SUM(salary) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(value, name, salary, status)\n personnel_registry(salary, value, code, type)\nTask: Retrieve salary from stock_catalog with salary above the SUM(amount) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(date, status, salary, type)\n area_registry(type, salary, id, name)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(id, status, value, type)\n cost_centers(status, salary, code, type)\nTask: Retrieve code from journal_entries whose code is found in cost_centers rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(value, level, id, amount)\n cost_centers(value, code, date, amount)\nTask: Find value from engagement_log where status appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(value, code, amount, salary)\n personnel_registry(type, level, code, status)\nTask: Find id from facility_registry where amount exceeds the average amount from personnel_registry for the same status.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(name, id, level, salary)\n workforce_data(name, level, date, code)\nTask: Select salary from sales_registry where status exists in workforce_data for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(name, code, type, date)\n sourcing_list(level, code, name, id)\nTask: Select id from activity_log where status exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(code, value, date, id)\n facility_registry(level, id, code, value)\nTask: Retrieve salary from stock_catalog that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(id, name, status, type)\n acquisition_log(type, salary, code, status)\nTask: Find code from activity_log where level appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT code FROM activity_log AS usr\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(status, id, code, level)\n portfolio_index(value, status, code, amount)\nTask: Find name from engagement_log where level appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(name, type, value, code)\n sourcing_list(date, level, salary, type)\nTask: Select amount from personnel_registry that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, amount, type, salary)\n sales_queue(salary, value, name, code)\nTask: Select value from dispatch_queue where type exists in sales_queue for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(level, name, amount, date)\n sales_registry(salary, date, value, code)\nTask: Find value from receivables_log where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(date, code, salary, name)\n engagement_log(date, type, value, salary)\nTask: Select amount from attribute_groups where id exists in engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(type, name, amount, status)\n personnel_registry(amount, status, level, type)\nTask: Find id from receivables_log where amount exceeds the count of value from personnel_registry for the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(value, id, type, name)\n stock_catalog(level, value, amount, code)\nTask: Select value from engagement_log where type exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(status, amount, level, name)\n sales_queue(type, name, amount, level)\nTask: Find amount from cost_centers where value exceeds the minimum value from sales_queue for the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE value > (\n SELECT MIN(value) FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(id, amount, salary, name)\n stock_catalog(status, name, type, date)\nTask: Retrieve amount from area_registry whose id is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(code, level, date, status)\n facility_registry(salary, value, amount, type)\nTask: Select amount from stock_catalog where status exists in facility_registry for the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(date, level, salary, value)\n dispatch_queue(name, salary, code, id)\nTask: Select salary from area_registry that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(value, name, type, code)\n cost_centers(name, id, code, status)\nTask: Select value from portfolio_index that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(name, status, type, id)\n dispatch_queue(salary, amount, id, code)\nTask: Find name from workforce_data where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, id, level, value)\n area_registry(date, level, status, type)\nTask: Retrieve id from stocking_sites whose level is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(type, value, salary, amount)\n facility_registry(value, status, salary, amount)\nTask: Find code from workforce_data where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(status, value, type, amount)\n engagement_log(name, value, salary, status)\nTask: Find salary from workforce_data where code appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(code, name, date, value)\n stocking_sites(value, level, date, id)\nTask: Retrieve id from activity_log with value above the MIN(amount) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE value > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(code, id, date, level)\n acquisition_log(name, salary, code, type)\nTask: Find value from sales_queue where amount exceeds the total value from acquisition_log for the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE amount > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(id, name, status, level)\n personnel_registry(code, id, amount, type)\nTask: Select value from workforce_data that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(amount, type, value, level)\n stocking_sites(status, amount, code, salary)\nTask: Retrieve id from portfolio_index whose type is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(date, value, salary, code)\n dispatch_queue(level, value, salary, id)\nTask: Select salary from portfolio_index where id exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, code, value, name)\n receivables_log(level, amount, salary, type)\nTask: Select salary from stocking_sites where id exists in receivables_log for the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(status, code, salary, amount)\n acquisition_log(id, level, status, type)\nTask: Retrieve code from engagement_log with salary above the MIN(amount) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(level, status, name, salary)\n facility_registry(value, name, amount, type)\nTask: Retrieve value from attribute_groups with amount above the SUM(amount) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(date, value, code, amount)\n stock_catalog(date, type, level, code)\nTask: Select salary from sourcing_list that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(level, salary, name, value)\n sales_queue(value, date, amount, level)\nTask: Find salary from workforce_data where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(date, level, value, salary)\n activity_log(type, salary, amount, id)\nTask: Select salary from personnel_registry where amount is greater than the count of of salary in activity_log for matching code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(level, amount, salary, value)\n sales_registry(salary, value, code, type)\nTask: Select name from portfolio_index where type exists in sales_registry for the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, level, type, code)\n facility_registry(name, id, code, type)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(value, amount, status, type)\n sourcing_list(amount, name, salary, level)\nTask: Retrieve code from workforce_data with salary above the AVG(value) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS dept\nWHERE salary > (\n SELECT AVG(value) FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(code, level, status, amount)\n portfolio_index(salary, value, level, id)\nTask: Retrieve value from engagement_log with amount above the AVG(amount) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT value FROM engagement_log AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(status, id, type, amount)\n sales_registry(type, salary, status, level)\nTask: Select code from facility_registry where level exists in sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(salary, type, status, amount)\n cost_centers(salary, value, name, id)\nTask: Select amount from acquisition_log that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(code, id, name, value)\n sourcing_list(status, level, type, value)\nTask: Select salary from area_registry that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(amount, code, value, level)\n personnel_registry(name, amount, salary, id)\nTask: Find amount from sourcing_list where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(amount, date, code, level)\n workforce_data(value, code, type, level)\nTask: Select amount from facility_registry that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(code, salary, name, amount)\n cost_centers(value, salary, level, code)\nTask: Retrieve value from sourcing_list whose level is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS ord\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(value, code, level, name)\n receivables_log(date, value, type, amount)\nTask: Select id from sales_registry where salary is greater than the maximum of value in receivables_log for matching level.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE salary > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(amount, name, salary, id)\n facility_registry(level, amount, name, status)\nTask: Select amount from dispatch_queue where value is greater than the total of salary in facility_registry for matching id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE value > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(level, salary, id, name)\n sales_registry(name, level, id, type)\nTask: Select amount from acquisition_log where level exists in sales_registry for the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(value, salary, level, type)\n personnel_registry(level, date, status, type)\nTask: Find name from area_registry where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(name, id, date, type)\n sales_queue(value, status, type, level)\nTask: Select salary from sourcing_list where value is greater than the maximum of salary in sales_queue for matching id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE value > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(id, status, salary, value)\n sourcing_list(amount, level, salary, name)\nTask: Select value from attribute_groups that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, type, level, status)\n portfolio_index(type, amount, status, date)\nTask: Retrieve id from acquisition_log with amount above the MAX(amount) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, amount, level, id)\n sales_registry(id, amount, status, date)\nTask: Select code from sourcing_list where type exists in sales_registry for the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(name, value, date, amount)\n sourcing_list(status, level, type, date)\nTask: Retrieve salary from portfolio_index whose id is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(status, level, name, code)\n stocking_sites(value, type, code, date)\nTask: Find code from stock_catalog where level appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(name, level, status, type)\n journal_entries(status, type, name, salary)\nTask: Select salary from area_registry where amount is greater than the minimum of salary in journal_entries for matching type.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(level, date, name, type)\n stocking_sites(name, type, status, code)\nTask: Find name from attribute_groups where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(level, status, date, name)\n sales_queue(code, id, value, status)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(code, type, amount, name)\n journal_entries(type, value, status, name)\nTask: Find amount from sourcing_list where status appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(status, value, type, date)\n activity_log(date, salary, type, level)\nTask: Find value from sourcing_list where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(code, level, name, salary)\n personnel_registry(name, status, type, value)\nTask: Find amount from sales_registry where type appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(amount, type, name, value)\n dispatch_queue(type, name, salary, code)\nTask: Find salary from cost_centers where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(code, status, date, name)\n sourcing_list(status, value, type, name)\nTask: Select salary from facility_registry where type exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(type, value, date, name)\n area_registry(salary, type, date, code)\nTask: Retrieve name from sourcing_list with salary above the MAX(salary) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(name, type, value, salary)\n engagement_log(code, amount, value, status)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(name, amount, value, date)\n cost_centers(salary, type, amount, date)\nTask: Find salary from activity_log where amount exceeds the maximum amount from cost_centers for the same code.\nSQL:", "sql": "SELECT salary FROM activity_log AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(amount, name, date, salary)\n engagement_log(value, date, salary, level)\nTask: Retrieve value from area_registry whose code is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(status, value, date, type)\n engagement_log(level, amount, code, status)\nTask: Retrieve value from portfolio_index with value above the COUNT(salary) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(date, code, name, type)\n sales_registry(code, level, status, id)\nTask: Retrieve name from personnel_registry whose code is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM personnel_registry AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(status, salary, amount, id)\n area_registry(value, status, salary, date)\nTask: Retrieve code from stock_catalog whose id is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(id, value, name, type)\n acquisition_log(code, salary, id, value)\nTask: Find salary from area_registry where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(status, type, date, amount)\n receivables_log(code, value, name, type)\nTask: Find name from journal_entries where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(level, salary, name, amount)\n activity_log(code, value, id, salary)\nTask: Select amount from sales_queue that have at least one matching row in activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(type, level, date, id)\n engagement_log(value, code, type, amount)\nTask: Retrieve name from journal_entries with salary above the COUNT(salary) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, date, amount, name)\n cost_centers(id, salary, value, amount)\nTask: Select name from dispatch_queue where code exists in cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(date, id, name, value)\n engagement_log(status, date, id, salary)\nTask: Select salary from stocking_sites where code exists in engagement_log for the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, status, salary, date)\n workforce_data(value, level, id, code)\nTask: Find value from acquisition_log where value exceeds the total salary from workforce_data for the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE value > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(level, amount, value, name)\n area_registry(value, id, status, type)\nTask: Find salary from workforce_data where level appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(date, id, name, type)\n portfolio_index(id, type, value, level)\nTask: Find code from personnel_registry where value exceeds the minimum salary from portfolio_index for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE value > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "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}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(date, name, status, code)\n engagement_log(amount, type, value, date)\nTask: Find value from stocking_sites where amount exceeds the total salary from engagement_log for the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, code, name, value)\n cost_centers(status, value, code, amount)\nTask: Find salary from stocking_sites where status appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, name, status, amount)\n dispatch_queue(level, code, type, salary)\nTask: Select id from portfolio_index where type exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(value, level, date, type)\n facility_registry(id, amount, date, type)\nTask: Find name from workforce_data where value exceeds the maximum salary from facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE value > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(status, id, level, salary)\n cost_centers(type, level, id, value)\nTask: Find amount from attribute_groups where level appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(name, type, date, status)\n attribute_groups(value, type, name, amount)\nTask: Retrieve value from facility_registry whose type is found in attribute_groups rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(status, amount, level, name)\n activity_log(level, name, salary, id)\nTask: Find name from area_registry where level appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(id, code, date, salary)\n personnel_registry(date, salary, level, id)\nTask: Find code from area_registry where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(level, id, name, amount)\n area_registry(amount, type, value, date)\nTask: Retrieve code from portfolio_index with salary above the MAX(salary) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(salary, type, name, id)\n sourcing_list(id, status, value, amount)\nTask: Find code from sales_registry where value exceeds the minimum amount from sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE value > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(value, code, amount, date)\n dispatch_queue(value, type, status, code)\nTask: Retrieve value from workforce_data whose level is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(value, type, amount, date)\n acquisition_log(code, status, amount, value)\nTask: Retrieve id from sales_queue whose code is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(salary, level, value, amount)\n sales_registry(level, name, amount, type)\nTask: Select code from activity_log where value is greater than the average of salary in sales_registry for matching type.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE value > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(level, name, amount, id)\n journal_entries(amount, value, name, id)\nTask: Find name from acquisition_log where amount exceeds the maximum value from journal_entries for the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE amount > (\n SELECT MAX(value) FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(id, salary, level, value)\n activity_log(level, name, salary, status)\nTask: Find code from sales_registry where amount exceeds the minimum amount from activity_log for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE amount > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(status, id, date, code)\n facility_registry(code, type, date, level)\nTask: Find id from cost_centers where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, id, date, value)\n cost_centers(level, value, name, id)\nTask: Select name from dispatch_queue that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(amount, level, id, name)\n personnel_registry(amount, date, name, salary)\nTask: Find code from area_registry where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, level, name, code)\n workforce_data(value, salary, code, name)\nTask: Find value from personnel_registry where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(level, salary, date, code)\n workforce_data(value, code, status, salary)\nTask: Select amount from facility_registry where value is greater than the minimum of amount in workforce_data for matching type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(status, type, name, salary)\n sales_queue(status, salary, type, name)\nTask: Find salary from cost_centers where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(amount, date, salary, type)\n receivables_log(status, id, name, salary)\nTask: Retrieve code from personnel_registry whose level is found in receivables_log rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(level, amount, date, type)\n engagement_log(value, date, code, name)\nTask: Retrieve id from stock_catalog whose type is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS inv\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(id, status, name, level)\n sourcing_list(date, status, name, amount)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(level, amount, date, code)\n portfolio_index(id, salary, name, type)\nTask: Retrieve salary from receivables_log with amount above the MIN(amount) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(salary, id, code, type)\n sales_registry(level, value, amount, date)\nTask: Retrieve salary from sales_queue whose type is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(level, name, status, type)\n workforce_data(amount, status, id, level)\nTask: Select amount from facility_registry that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(amount, date, salary, type)\n acquisition_log(code, name, value, type)\nTask: Find code from sourcing_list where amount exceeds the average amount from acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(level, type, status, code)\n sales_registry(level, code, id, value)\nTask: Select amount from journal_entries where value is greater than the maximum of value in sales_registry for matching type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS ord\nWHERE value > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(id, status, value, amount)\n stock_catalog(value, id, type, code)\nTask: Select id from activity_log where amount is greater than the minimum of amount in stock_catalog for matching status.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(type, level, id, name)\n portfolio_index(value, level, id, salary)\nTask: Retrieve id from activity_log whose id is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, date, level, id)\n receivables_log(value, date, amount, salary)\nTask: Select amount from dispatch_queue where value is greater than the total of salary in receivables_log for matching id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE value > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, level, value, date)\n cost_centers(name, id, code, date)\nTask: Find name from engagement_log where id appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(amount, code, salary, type)\n journal_entries(level, salary, name, amount)\nTask: Find id from area_registry where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(amount, status, value, id)\n sales_queue(code, type, level, name)\nTask: Find id from workforce_data where amount exceeds the total salary from sales_queue for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(type, level, date, value)\n dispatch_queue(code, name, salary, status)\nTask: Select amount from portfolio_index where value is greater than the maximum of salary in dispatch_queue for matching id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE value > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(value, id, date, level)\n dispatch_queue(salary, status, code, type)\nTask: Find value from portfolio_index where salary exceeds the maximum amount from dispatch_queue for the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE salary > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(type, name, code, id)\n sourcing_list(value, id, status, code)\nTask: Retrieve amount from facility_registry with amount above the SUM(salary) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(date, id, salary, amount)\n portfolio_index(status, level, value, amount)\nTask: Retrieve salary from stock_catalog with salary above the AVG(value) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE salary > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "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}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(salary, date, name, amount)\n portfolio_index(code, salary, level, value)\nTask: Select name from sales_registry where value is greater than the average of amount in portfolio_index for matching level.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE value > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(id, type, code, name)\n dispatch_queue(date, status, value, id)\nTask: Find name from portfolio_index where id appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(type, id, salary, level)\n sales_queue(id, value, name, code)\nTask: Retrieve salary from receivables_log with amount above the SUM(salary) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(code, id, type, salary)\n personnel_registry(name, value, salary, code)\nTask: Find id from workforce_data where value exceeds the average amount from personnel_registry for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS inv\nWHERE value > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(name, date, value, salary)\n facility_registry(name, amount, date, level)\nTask: Find value from portfolio_index where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(name, salary, value, type)\n sales_queue(code, date, salary, status)\nTask: Find id from stock_catalog where code appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(value, id, amount, salary)\n workforce_data(salary, value, name, code)\nTask: Retrieve id from sourcing_list with value above the MIN(value) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE value > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(id, date, level, amount)\n engagement_log(code, name, value, amount)\nTask: Select amount from sales_queue where id exists in engagement_log for the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(type, level, name, code)\n engagement_log(id, level, status, type)\nTask: Select id from personnel_registry where status exists in engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(salary, id, code, amount)\n stock_catalog(value, id, amount, code)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(name, amount, code, salary)\n journal_entries(type, value, name, id)\nTask: Select salary from sourcing_list where salary is greater than the minimum of amount in journal_entries for matching level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(salary, value, status, name)\n personnel_registry(status, value, name, type)\nTask: Retrieve code from journal_entries with salary above the MAX(amount) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(value, code, name, date)\n area_registry(level, status, code, amount)\nTask: Find name from activity_log where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(status, id, date, code)\n personnel_registry(name, level, salary, type)\nTask: Select id from facility_registry where salary is greater than the average of amount in personnel_registry for matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(amount, name, value, code)\n facility_registry(amount, status, type, salary)\nTask: Retrieve code from acquisition_log that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(level, value, id, amount)\n sales_registry(id, type, level, status)\nTask: Select id from facility_registry where salary is greater than the average of value in sales_registry for matching id.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE salary > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(type, date, salary, value)\n journal_entries(id, date, code, level)\nTask: Find id from receivables_log where amount exceeds the average value from journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE amount > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(salary, amount, status, value)\n dispatch_queue(date, amount, salary, name)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(type, date, id, code)\n cost_centers(type, value, level, status)\nTask: Find salary from sales_registry where id appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(id, date, code, amount)\n sales_registry(level, name, salary, status)\nTask: Retrieve value from sales_queue with amount above the MIN(value) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(value, name, type, status)\n workforce_data(level, type, date, code)\nTask: Select salary from activity_log that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(name, value, type, date)\n dispatch_queue(type, id, name, amount)\nTask: Select salary from receivables_log where type exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(amount, code, status, id)\n stock_catalog(id, salary, level, type)\nTask: Find name from portfolio_index where value exceeds the maximum salary from stock_catalog for the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE value > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(value, salary, name, status)\n stock_catalog(amount, date, salary, name)\nTask: Select salary from personnel_registry where salary is greater than the minimum of value in stock_catalog for matching level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE salary > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(salary, level, type, date)\n portfolio_index(name, code, id, type)\nTask: Select salary from cost_centers where value is greater than the average of salary in portfolio_index for matching level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS usr\nWHERE value > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(code, salary, date, name)\n engagement_log(code, type, value, level)\nTask: Retrieve name from sales_queue with amount above the COUNT(value) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, level, status, amount)\n facility_registry(value, level, name, status)\nTask: Select value from dispatch_queue where status exists in facility_registry for the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, code, date, amount)\n area_registry(status, code, name, value)\nTask: Retrieve salary from stock_catalog with value above the MIN(value) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE value > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(amount, id, value, code)\n facility_registry(id, status, amount, value)\nTask: Find name from attribute_groups where salary exceeds the average value from facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE salary > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(status, salary, name, id)\n portfolio_index(status, name, salary, level)\nTask: Find id from engagement_log where type appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(status, code, salary, level)\n acquisition_log(code, name, date, id)\nTask: Retrieve value from attribute_groups whose type is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS ord\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(type, amount, level, code)\n sales_registry(level, id, salary, value)\nTask: Select id from receivables_log where amount is greater than the average of salary in sales_registry for matching type.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(value, date, level, salary)\n acquisition_log(level, status, type, date)\nTask: Retrieve id from facility_registry with salary above the MIN(amount) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(code, amount, value, id)\n dispatch_queue(id, level, salary, name)\nTask: Find salary from sales_registry where code appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(date, code, amount, name)\n stock_catalog(type, status, date, level)\nTask: Retrieve id from portfolio_index whose type is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(status, level, code, id)\n stock_catalog(id, type, name, salary)\nTask: Select value from workforce_data that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(id, amount, level, status)\n sourcing_list(value, salary, amount, level)\nTask: Select code from workforce_data that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(date, value, amount, level)\n area_registry(date, value, level, name)\nTask: Select value from receivables_log that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(amount, type, date, salary)\n receivables_log(status, level, value, code)\nTask: Find value from acquisition_log where id appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(id, value, salary, status)\n journal_entries(code, id, salary, name)\nTask: Select code from sales_queue where value is greater than the total of value in journal_entries for matching type.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE value > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(value, salary, code, name)\n portfolio_index(level, code, name, salary)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(value, status, id, code)\n portfolio_index(date, status, salary, level)\nTask: Retrieve code from activity_log whose code is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(code, status, type, date)\n stocking_sites(amount, name, status, level)\nTask: Select code from personnel_registry that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(type, value, name, id)\n portfolio_index(level, type, id, amount)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(value, type, code, name)\n acquisition_log(level, date, type, amount)\nTask: Retrieve amount from cost_centers with value above the MIN(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(date, amount, salary, level)\n attribute_groups(salary, status, name, value)\nTask: Find amount from acquisition_log where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, salary, date, amount)\n dispatch_queue(value, id, date, type)\nTask: Select value from activity_log where amount is greater than the maximum of amount in dispatch_queue for matching status.\nSQL:", "sql": "SELECT value FROM activity_log AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(level, code, status, type)\n personnel_registry(type, level, date, value)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(salary, date, id, name)\n attribute_groups(status, salary, value, amount)\nTask: Select name from receivables_log that have at least one matching row in attribute_groups for the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(type, value, level, name)\n stocking_sites(name, id, amount, code)\nTask: Retrieve code from dispatch_queue with amount above the MAX(amount) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE amount > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, level, amount, name)\n facility_registry(date, id, code, name)\nTask: Find name from dispatch_queue where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(value, amount, name, type)\n activity_log(amount, salary, id, value)\nTask: Retrieve salary from sourcing_list with value above the COUNT(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(code, name, value, status)\n portfolio_index(amount, level, type, status)\nTask: Select code from acquisition_log where id exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(type, salary, date, id)\n area_registry(date, type, status, code)\nTask: Select amount from activity_log where type exists in area_registry for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS emp\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(type, date, amount, status)\n stock_catalog(value, date, id, name)\nTask: Find code from journal_entries where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(value, salary, level, type)\n sales_registry(value, code, id, date)\nTask: Retrieve id from stocking_sites whose id is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(level, salary, code, type)\n sales_queue(amount, code, salary, name)\nTask: Select name from engagement_log where code exists in sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(date, level, id, status)\n portfolio_index(name, salary, status, value)\nTask: Retrieve amount from stocking_sites with amount above the SUM(value) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE amount > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(amount, date, code, salary)\n receivables_log(date, status, value, type)\nTask: Find code from sales_registry where salary exceeds the maximum salary from receivables_log for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(value, name, id, date)\n area_registry(amount, code, date, value)\nTask: Retrieve id from activity_log with amount above the MIN(value) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(salary, code, type, date)\n sourcing_list(type, name, salary, value)\nTask: Find name from area_registry where amount exceeds the average amount from sourcing_list for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "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}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(code, id, date, salary)\n sales_queue(id, code, value, status)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(level, status, salary, id)\n stock_catalog(name, id, type, level)\nTask: Select salary from dispatch_queue that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(amount, code, value, salary)\n workforce_data(level, date, id, code)\nTask: Find salary from sales_queue where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(code, status, name, type)\n activity_log(amount, id, name, date)\nTask: Select name from workforce_data that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(code, value, salary, level)\n personnel_registry(name, type, code, status)\nTask: Select id from stock_catalog where value is greater than the minimum of value in personnel_registry for matching level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE value > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(value, code, name, status)\n facility_registry(id, amount, status, type)\nTask: Find amount from personnel_registry where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(name, value, level, id)\n activity_log(type, code, level, name)\nTask: Find code from attribute_groups where amount exceeds the average value from activity_log for the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE amount > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(id, level, amount, status)\n acquisition_log(value, level, type, id)\nTask: Retrieve code from sourcing_list with amount above the MAX(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE amount > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(date, name, id, type)\n stocking_sites(status, level, value, salary)\nTask: Select value from personnel_registry where level exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(value, name, date, type)\n facility_registry(salary, type, amount, name)\nTask: Retrieve id from sourcing_list with amount above the COUNT(amount) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(code, value, level, amount)\n facility_registry(salary, level, type, value)\nTask: Retrieve id from area_registry that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(name, amount, value, type)\n engagement_log(name, code, status, id)\nTask: Find salary from stocking_sites where code appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(level, amount, name, status)\n sales_queue(salary, type, level, date)\nTask: Select name from personnel_registry where amount is greater than the average of salary in sales_queue for matching code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(level, salary, type, amount)\n stocking_sites(code, value, type, id)\nTask: Find salary from personnel_registry where amount exceeds the maximum salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(id, date, status, level)\n journal_entries(date, salary, type, level)\nTask: Select salary from sourcing_list where code exists in journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(salary, value, status, level)\n sales_queue(salary, level, date, id)\nTask: Select id from journal_entries that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(type, value, date, amount)\n attribute_groups(code, level, amount, name)\nTask: Retrieve code from sourcing_list with amount above the MIN(value) of attribute_groups rows sharing the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE amount > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(name, type, id, date)\n personnel_registry(type, id, date, code)\nTask: Find value from receivables_log where amount exceeds the minimum value from personnel_registry for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(type, code, date, name)\n area_registry(date, code, amount, name)\nTask: Find value from dispatch_queue where amount exceeds the total salary from area_registry for the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(status, value, name, date)\n portfolio_index(status, level, date, salary)\nTask: Find amount from sales_queue where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(code, status, id, date)\n stocking_sites(level, salary, id, amount)\nTask: Select id from activity_log where value is greater than the maximum of amount in stocking_sites for matching type.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE value > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(name, status, id, code)\n facility_registry(value, id, code, amount)\nTask: Retrieve amount from portfolio_index that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(type, code, value, level)\n stock_catalog(value, type, amount, status)\nTask: Select code from dispatch_queue that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(id, name, date, status)\n attribute_groups(date, code, type, level)\nTask: Find id from acquisition_log where salary exceeds the count of value from attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(status, code, salary, type)\n portfolio_index(name, status, salary, amount)\nTask: Select salary from journal_entries that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(amount, date, name, code)\n stock_catalog(id, date, type, level)\nTask: Retrieve code from sales_queue whose id is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(amount, level, type, salary)\n stocking_sites(status, salary, level, amount)\nTask: Retrieve name from sales_registry with value above the MAX(amount) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE value > (\n SELECT MAX(amount) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(status, date, name, value)\n activity_log(value, code, status, name)\nTask: Retrieve id from journal_entries whose type is found in activity_log rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(status, value, name, salary)\n stock_catalog(id, level, value, type)\nTask: Find code from stocking_sites where value exceeds the average value from stock_catalog for the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE value > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(amount, id, type, name)\n attribute_groups(value, code, date, name)\nTask: Select code from workforce_data where id exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(code, amount, date, value)\n acquisition_log(code, name, type, level)\nTask: Select amount from receivables_log where type exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(code, id, level, salary)\n stock_catalog(name, level, value, type)\nTask: Select amount from workforce_data that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(id, name, salary, type)\n portfolio_index(value, salary, name, amount)\nTask: Find id from activity_log where type appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(type, amount, level, name)\n cost_centers(code, name, level, value)\nTask: Retrieve salary from receivables_log with value above the MIN(salary) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS emp\nWHERE value > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(amount, name, status, code)\n journal_entries(date, salary, code, name)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, status, id, date)\n facility_registry(id, code, salary, name)\nTask: Find id from portfolio_index where level appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(code, type, id, salary)\n acquisition_log(value, code, status, id)\nTask: Find amount from journal_entries where salary exceeds the average value from acquisition_log for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE salary > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, id, type, name)\n portfolio_index(value, id, status, code)\nTask: Retrieve salary from acquisition_log whose code is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(type, id, code, status)\n cost_centers(date, salary, id, status)\nTask: Find name from sales_registry where id appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_registry AS ord\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(salary, amount, code, status)\n sales_queue(type, code, value, status)\nTask: Find code from stock_catalog where level appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(salary, type, level, amount)\n area_registry(name, code, status, level)\nTask: Retrieve id from sales_registry with value above the MIN(salary) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE value > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(status, value, salary, id)\n portfolio_index(amount, date, code, value)\nTask: Select code from activity_log that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(date, type, level, name)\n portfolio_index(name, id, amount, code)\nTask: Find code from attribute_groups where amount exceeds the total amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE amount > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(level, name, date, status)\n portfolio_index(type, code, amount, salary)\nTask: Retrieve value from area_registry whose id is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(type, value, date, level)\n facility_registry(salary, name, id, code)\nTask: Find amount from stock_catalog where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(status, amount, id, date)\n workforce_data(id, salary, name, amount)\nTask: Retrieve amount from journal_entries whose id is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, name, value, date)\n activity_log(status, amount, code, level)\nTask: Find value from sourcing_list where salary exceeds the minimum value from activity_log for the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE salary > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(name, date, value, salary)\n sales_queue(code, name, level, status)\nTask: Retrieve amount from journal_entries whose level is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, amount, type, salary)\n engagement_log(id, salary, type, code)\nTask: Retrieve id from dispatch_queue with value above the MAX(amount) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE value > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(type, level, id, amount)\n sales_queue(amount, value, salary, id)\nTask: Find amount from engagement_log where value exceeds the maximum value from sales_queue for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE value > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(value, name, id, level)\n dispatch_queue(id, salary, name, date)\nTask: Find amount from journal_entries where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(salary, level, status, value)\n sales_queue(salary, value, status, code)\nTask: Find code from stock_catalog where type appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(level, value, id, date)\n stock_catalog(level, status, date, amount)\nTask: Find name from sales_registry where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(id, level, salary, name)\n receivables_log(code, salary, id, date)\nTask: Find amount from stock_catalog where salary exceeds the maximum salary from receivables_log for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(level, salary, status, date)\n activity_log(name, value, status, date)\nTask: Find code from engagement_log where id appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(value, name, date, id)\n workforce_data(salary, code, value, name)\nTask: Retrieve amount from cost_centers with amount above the AVG(amount) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(code, id, salary, level)\n personnel_registry(status, type, code, amount)\nTask: Retrieve name from activity_log with amount above the SUM(salary) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(amount, value, salary, code)\n acquisition_log(salary, id, code, level)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, type, code, status)\n acquisition_log(date, type, salary, name)\nTask: Find name from stock_catalog where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(value, name, level, type)\n journal_entries(status, code, level, name)\nTask: Find name from sales_queue where salary exceeds the count of value from journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, amount, salary, id)\n personnel_registry(salary, level, code, id)\nTask: Retrieve amount from dispatch_queue whose code is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(status, date, value, amount)\n workforce_data(salary, status, level, date)\nTask: Select code from stock_catalog where value is greater than the minimum of salary in workforce_data for matching status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(level, value, date, type)\n cost_centers(status, name, type, salary)\nTask: Find salary from sales_queue where amount exceeds the minimum value from cost_centers for the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(date, salary, id, code)\n stock_catalog(level, date, id, name)\nTask: Retrieve value from area_registry that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(amount, type, status, code)\n activity_log(type, level, salary, id)\nTask: Retrieve amount from stocking_sites whose type is found in activity_log rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(name, level, value, code)\n activity_log(salary, name, status, date)\nTask: Find id from stocking_sites where level appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(type, code, salary, amount)\n journal_entries(date, status, name, level)\nTask: Select value from facility_registry where value is greater than the average of value in journal_entries for matching code.\nSQL:", "sql": "SELECT value FROM facility_registry AS ord\nWHERE value > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(date, type, id, value)\n area_registry(level, id, name, type)\nTask: Find amount from portfolio_index where salary exceeds the maximum value from area_registry for the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE salary > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(status, code, name, id)\n facility_registry(salary, status, amount, type)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(date, status, code, amount)\n attribute_groups(type, date, salary, code)\nTask: Select id from workforce_data where id exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(salary, amount, date, type)\n sales_queue(salary, code, level, id)\nTask: Find amount from sales_registry where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(date, id, value, salary)\n receivables_log(type, name, date, code)\nTask: Find salary from stocking_sites where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(id, name, code, status)\n sales_registry(amount, level, date, code)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, name, salary, code)\n workforce_data(amount, name, value, id)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(status, amount, name, date)\n acquisition_log(id, type, code, status)\nTask: Retrieve salary from sourcing_list that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(value, type, salary, amount)\n attribute_groups(name, status, type, date)\nTask: Find name from dispatch_queue where value exceeds the average value from attribute_groups for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE value > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(type, id, amount, code)\n acquisition_log(value, status, salary, type)\nTask: Find salary from workforce_data where code appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, name, code, status)\n personnel_registry(code, status, amount, value)\nTask: Retrieve name from dispatch_queue whose id is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(salary, name, type, status)\n cost_centers(value, date, status, salary)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(level, name, amount, date)\n receivables_log(value, level, id, date)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, id, code, type)\n attribute_groups(salary, id, status, name)\nTask: Retrieve id from dispatch_queue with salary above the MIN(salary) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(status, salary, name, value)\n receivables_log(name, date, level, status)\nTask: Retrieve salary from stocking_sites with salary above the MIN(salary) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(date, status, value, type)\n sales_registry(value, status, id, name)\nTask: Retrieve salary from engagement_log that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(name, date, salary, code)\n stock_catalog(name, status, amount, date)\nTask: Retrieve value from activity_log that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, value, code, name)\n workforce_data(amount, salary, name, type)\nTask: Find id from portfolio_index where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, salary, name, id)\n cost_centers(name, level, amount, type)\nTask: Select salary from stock_catalog that have at least one matching row in cost_centers for the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(id, date, amount, value)\n engagement_log(date, amount, code, id)\nTask: Find code from area_registry where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, date, level, status)\n receivables_log(level, id, salary, type)\nTask: Find code from sourcing_list where id appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(code, name, level, salary)\n stocking_sites(id, amount, date, value)\nTask: Find salary from engagement_log where salary exceeds the total value from stocking_sites for the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(salary, name, amount, code)\n stock_catalog(type, name, status, level)\nTask: Retrieve code from dispatch_queue with salary above the AVG(salary) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(code, type, level, status)\n sales_queue(code, status, name, salary)\nTask: Select value from receivables_log where id exists in sales_queue for the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(salary, code, value, status)\n sales_queue(date, code, type, value)\nTask: Find id from facility_registry where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(date, code, level, id)\n journal_entries(salary, value, id, level)\nTask: Select amount from receivables_log where level exists in journal_entries for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(id, status, name, code)\n area_registry(id, salary, status, level)\nTask: Find id from facility_registry where id appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(level, amount, id, date)\n attribute_groups(level, id, name, type)\nTask: Retrieve amount from personnel_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, date, salary, type)\n dispatch_queue(code, salary, level, name)\nTask: Find value from portfolio_index where salary exceeds the maximum salary from dispatch_queue for the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(status, value, level, code)\n stock_catalog(salary, amount, value, name)\nTask: Find salary from portfolio_index where salary exceeds the average salary from stock_catalog for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(salary, code, name, id)\n facility_registry(name, type, amount, date)\nTask: Retrieve amount from acquisition_log with salary above the AVG(amount) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(status, type, id, name)\n portfolio_index(status, amount, date, code)\nTask: Find salary from cost_centers where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(name, amount, level, salary)\n sales_queue(value, status, date, id)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, name, date, level)\n sales_registry(date, type, id, name)\nTask: Select name from stock_catalog where amount is greater than the average of value in sales_registry for matching status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(date, salary, name, amount)\n attribute_groups(name, value, level, type)\nTask: Find amount from portfolio_index where amount exceeds the minimum salary from attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(name, code, date, id)\n workforce_data(code, value, level, amount)\nTask: Select amount from sales_queue that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(name, amount, salary, level)\n area_registry(date, code, level, id)\nTask: Find code from receivables_log where level appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM receivables_log AS inv\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(level, code, status, amount)\n activity_log(date, value, level, code)\nTask: Find amount from area_registry where a matching record exists in activity_log with the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(code, salary, id, level)\n sales_registry(level, status, date, amount)\nTask: Find code from stocking_sites where amount exceeds the total value from sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE amount > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(code, date, id, amount)\n engagement_log(id, type, amount, date)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(status, level, id, name)\n workforce_data(name, id, amount, salary)\nTask: Select amount from portfolio_index where code exists in workforce_data for the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(type, code, date, value)\n stocking_sites(type, value, amount, name)\nTask: Find id from sourcing_list where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, value, level, name)\n sales_registry(amount, code, value, status)\nTask: Select salary from stock_catalog where type exists in sales_registry for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(type, value, salary, id)\n sales_registry(id, name, code, salary)\nTask: Select value from acquisition_log that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(type, salary, status, id)\n sales_queue(date, code, value, id)\nTask: Find code from sales_registry where value exceeds the count of amount from sales_queue for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(date, amount, status, salary)\n engagement_log(name, status, id, value)\nTask: Select amount from journal_entries where id exists in engagement_log for the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(value, name, salary, type)\n dispatch_queue(level, salary, code, amount)\nTask: Select salary from portfolio_index where type exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(amount, status, id, name)\n cost_centers(salary, code, date, name)\nTask: Retrieve salary from stocking_sites whose code is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(type, date, amount, status)\n portfolio_index(level, value, code, name)\nTask: Select name from stock_catalog where status exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(name, date, code, value)\n portfolio_index(date, name, status, value)\nTask: Find value from receivables_log where id appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(status, code, level, id)\n workforce_data(level, type, value, name)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in workforce_data sharing the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(value, id, date, salary)\n receivables_log(salary, name, amount, type)\nTask: Find value from sales_queue where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(code, date, status, name)\n area_registry(amount, value, id, type)\nTask: Select value from cost_centers where level exists in area_registry for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(date, salary, id, status)\n sourcing_list(status, name, value, level)\nTask: Select value from portfolio_index where status exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(level, status, value, amount)\n engagement_log(level, name, amount, id)\nTask: Retrieve code from facility_registry that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(date, name, status, id)\n personnel_registry(salary, value, amount, level)\nTask: Select amount from receivables_log where amount is greater than the average of salary in personnel_registry for matching code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "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}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(code, amount, salary, name)\n sourcing_list(code, status, type, name)\nTask: Retrieve code from stock_catalog with amount above the SUM(value) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS empl\nWHERE amount > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(salary, status, value, date)\n sales_queue(type, code, level, status)\nTask: Retrieve amount from cost_centers with value above the AVG(salary) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(value, level, type, amount)\n area_registry(type, level, salary, id)\nTask: Find name from sales_queue where code appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(salary, id, date, value)\n attribute_groups(type, name, status, salary)\nTask: Retrieve code from sourcing_list with amount above the SUM(salary) of attribute_groups rows sharing the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(salary, status, level, id)\n receivables_log(type, status, code, date)\nTask: Select amount from area_registry where amount is greater than the count of of value in receivables_log for matching type.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(level, salary, type, amount)\n stocking_sites(level, type, date, salary)\nTask: Retrieve id from attribute_groups whose type is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, code, level, amount)\n personnel_registry(name, status, code, date)\nTask: Find amount from dispatch_queue where value exceeds the maximum amount from personnel_registry for the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(level, name, value, code)\n facility_registry(id, name, level, status)\nTask: Find amount from engagement_log where level appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(id, level, amount, date)\n facility_registry(amount, level, type, value)\nTask: Find amount from activity_log where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(code, amount, value, status)\n journal_entries(date, level, status, value)\nTask: Find amount from acquisition_log where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(level, name, status, type)\n sales_registry(level, value, date, type)\nTask: Find code from receivables_log where amount exceeds the total salary from sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(id, name, code, date)\n stock_catalog(type, amount, name, id)\nTask: Select value from dispatch_queue where value is greater than the minimum of amount in stock_catalog for matching status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(value, code, type, name)\n dispatch_queue(id, value, type, level)\nTask: Find amount from activity_log where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(level, value, status, date)\n sales_registry(value, amount, id, name)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(type, amount, code, value)\n personnel_registry(amount, date, status, type)\nTask: Find amount from journal_entries where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(amount, date, code, level)\n receivables_log(code, value, status, level)\nTask: Retrieve code from sales_queue with amount above the AVG(amount) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(name, code, level, type)\n activity_log(date, level, id, name)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(id, salary, status, amount)\n portfolio_index(name, code, date, status)\nTask: Find salary from sales_queue where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(code, date, status, salary)\n stock_catalog(amount, id, date, type)\nTask: Find salary from area_registry where amount exceeds the total value from stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(type, name, value, amount)\n cost_centers(salary, type, id, amount)\nTask: Find id from area_registry where id appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(level, amount, type, value)\n sales_registry(type, salary, name, amount)\nTask: Select salary from activity_log where salary is greater than the maximum of value in sales_registry for matching code.\nSQL:", "sql": "SELECT salary FROM activity_log AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(code, date, status, salary)\n stock_catalog(name, date, type, status)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(salary, level, amount, value)\n portfolio_index(id, status, value, type)\nTask: Find name from area_registry where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(type, status, name, date)\n attribute_groups(type, value, status, amount)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(date, id, value, salary)\n area_registry(value, date, salary, name)\nTask: Select code from acquisition_log where status exists in area_registry for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, salary, level, name)\n dispatch_queue(amount, id, type, salary)\nTask: Find id from stock_catalog where code appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(name, value, date, type)\n dispatch_queue(level, type, name, id)\nTask: Find id from portfolio_index where type appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(level, amount, type, value)\n personnel_registry(salary, date, value, id)\nTask: Retrieve name from acquisition_log with salary above the AVG(value) of personnel_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE salary > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(type, level, value, date)\n activity_log(type, id, salary, date)\nTask: Select salary from dispatch_queue that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(salary, code, value, level)\n facility_registry(name, id, code, value)\nTask: Select value from area_registry that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, code, level, type)\n attribute_groups(salary, id, date, amount)\nTask: Select amount from dispatch_queue that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(id, amount, date, value)\n activity_log(level, type, salary, code)\nTask: Find amount from cost_centers where salary exceeds the maximum salary from activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(id, code, value, amount)\n portfolio_index(code, date, value, name)\nTask: Select id from engagement_log where salary is greater than the average of salary in portfolio_index for matching status.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(code, salary, level, type)\n stock_catalog(level, type, value, salary)\nTask: Select name from activity_log that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, type, id, status)\n acquisition_log(value, level, amount, name)\nTask: Select name from dispatch_queue where value is greater than the count of of value in acquisition_log for matching status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE value > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, value, status, date)\n area_registry(level, salary, date, value)\nTask: Find amount from dispatch_queue where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(level, value, id, type)\n sales_registry(type, date, name, status)\nTask: Retrieve code from facility_registry whose id is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(value, type, date, id)\n dispatch_queue(date, id, status, type)\nTask: Find value from sales_queue where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(id, value, level, code)\n acquisition_log(amount, status, type, value)\nTask: Select value from journal_entries where value is greater than the total of value in acquisition_log for matching type.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE value > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(value, date, type, id)\n journal_entries(status, date, id, code)\nTask: Find code from engagement_log where value exceeds the total salary from journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE value > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(type, amount, level, status)\n engagement_log(amount, date, code, id)\nTask: Find name from acquisition_log where id appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(type, code, level, salary)\n area_registry(date, name, salary, level)\nTask: Retrieve code from acquisition_log that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(id, name, date, amount)\n receivables_log(date, status, id, name)\nTask: Find value from sales_queue where salary exceeds the total amount from receivables_log for the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(id, code, name, amount)\n activity_log(id, date, salary, name)\nTask: Find name from sales_registry where value exceeds the minimum value from activity_log for the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE value > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(type, id, level, amount)\n sales_registry(salary, id, code, level)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(date, id, status, amount)\n cost_centers(name, salary, amount, id)\nTask: Select id from facility_registry where amount is greater than the minimum of salary in cost_centers for matching code.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, name, status, level)\n engagement_log(name, date, salary, value)\nTask: Find code from cost_centers where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(id, name, amount, salary)\n journal_entries(status, value, code, date)\nTask: Find amount from sourcing_list where amount exceeds the total value from journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE amount > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(amount, id, value, salary)\n area_registry(salary, level, name, date)\nTask: Find amount from sourcing_list where amount exceeds the minimum salary from area_registry for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(status, code, amount, type)\n personnel_registry(date, id, amount, code)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(status, type, level, id)\n activity_log(code, salary, value, level)\nTask: Find value from attribute_groups where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(id, level, salary, code)\n stock_catalog(name, date, level, type)\nTask: Retrieve amount from receivables_log whose code is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(date, value, id, name)\n area_registry(level, status, salary, value)\nTask: Find salary from facility_registry where type appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(date, code, type, salary)\n activity_log(id, amount, name, salary)\nTask: Find amount from acquisition_log where salary exceeds the count of salary from activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(salary, name, id, status)\n sales_queue(amount, name, status, level)\nTask: Select value from cost_centers that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(date, code, id, status)\n journal_entries(type, code, name, date)\nTask: Retrieve code from receivables_log whose type is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(id, amount, date, status)\n receivables_log(type, status, amount, salary)\nTask: Select salary from workforce_data where value is greater than the minimum of salary in receivables_log for matching type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE value > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(value, level, date, type)\n engagement_log(salary, code, level, type)\nTask: Select code from facility_registry where salary is greater than the average of amount in engagement_log for matching status.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, status, salary, type)\n sourcing_list(value, salary, id, amount)\nTask: Retrieve value from stock_catalog whose code is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(status, code, type, date)\n portfolio_index(salary, level, amount, name)\nTask: Select code from sourcing_list where level exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(id, level, type, code)\n acquisition_log(level, salary, status, date)\nTask: Retrieve id from stocking_sites whose id is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, code, amount, name)\n activity_log(id, salary, code, value)\nTask: Retrieve value from portfolio_index with amount above the MAX(value) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE amount > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(id, status, level, code)\n stock_catalog(salary, status, amount, name)\nTask: Select salary from engagement_log where level exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(level, id, date, amount)\n sales_queue(id, value, amount, type)\nTask: Retrieve name from activity_log with salary above the MIN(amount) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(status, value, id, name)\n portfolio_index(date, value, amount, status)\nTask: Retrieve value from activity_log that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(amount, status, level, code)\n stock_catalog(name, level, code, type)\nTask: Find salary from acquisition_log where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(amount, value, date, salary)\n sourcing_list(code, value, salary, type)\nTask: Find name from facility_registry where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(amount, date, type, status)\n area_registry(id, status, code, date)\nTask: Select amount from sourcing_list that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, status, date, value)\n engagement_log(type, value, name, status)\nTask: Select name from dispatch_queue that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(level, amount, name, date)\n area_registry(value, amount, type, level)\nTask: Select value from receivables_log that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(name, salary, id, code)\n receivables_log(salary, value, name, id)\nTask: Retrieve amount from personnel_registry with amount above the COUNT(amount) of receivables_log rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(date, code, id, salary)\n personnel_registry(value, id, level, code)\nTask: Retrieve amount from attribute_groups whose type is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(code, level, value, type)\n activity_log(level, type, value, code)\nTask: Find value from sales_registry where salary exceeds the average amount from activity_log for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(amount, name, value, code)\n acquisition_log(code, salary, amount, status)\nTask: Find id from portfolio_index where type appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(value, level, type, id)\n journal_entries(date, name, type, code)\nTask: Retrieve id from engagement_log with value above the MIN(salary) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE value > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(type, salary, name, value)\n acquisition_log(status, type, value, id)\nTask: Select value from stock_catalog that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(name, level, id, code)\n engagement_log(status, value, id, date)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(value, salary, code, type)\n workforce_data(status, level, type, amount)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(status, value, salary, code)\n sales_registry(value, id, level, code)\nTask: Select salary from receivables_log where code exists in sales_registry for the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(id, amount, date, type)\n engagement_log(value, level, id, amount)\nTask: Select amount from stock_catalog where amount is greater than the minimum of salary in engagement_log for matching status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(level, date, amount, status)\n workforce_data(code, date, salary, name)\nTask: Retrieve name from sales_queue whose code is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(amount, value, date, code)\n engagement_log(salary, type, status, id)\nTask: Select salary from personnel_registry that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(code, amount, date, name)\n acquisition_log(value, salary, id, code)\nTask: Retrieve amount from cost_centers with amount above the SUM(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(code, value, date, id)\n sales_queue(code, status, value, salary)\nTask: Select value from cost_centers that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(name, amount, level, type)\n sales_queue(amount, name, level, salary)\nTask: Find salary from facility_registry where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(name, id, code, type)\n area_registry(level, date, name, type)\nTask: Select code from sales_queue that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(amount, value, code, id)\n attribute_groups(status, amount, salary, level)\nTask: Retrieve id from portfolio_index whose level is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, code, salary, id)\n sourcing_list(level, value, date, status)\nTask: Retrieve name from acquisition_log whose status is found in sourcing_list rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(salary, type, code, name)\n stocking_sites(type, salary, code, value)\nTask: Find name from workforce_data where status appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(type, salary, name, value)\n cost_centers(name, type, amount, date)\nTask: Retrieve amount from attribute_groups whose code is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(level, date, type, status)\n portfolio_index(id, date, level, code)\nTask: Select value from journal_entries where value is greater than the average of value in portfolio_index for matching status.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE value > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, code, id, level)\n area_registry(type, code, salary, date)\nTask: Retrieve id from sourcing_list whose id is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(date, id, type, amount)\n attribute_groups(status, type, value, date)\nTask: Find name from activity_log where type appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(status, value, salary, type)\n sourcing_list(code, salary, value, date)\nTask: Select amount from personnel_registry where value is greater than the minimum of value in sourcing_list for matching code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE value > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, id, code, date)\n facility_registry(code, value, amount, salary)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, amount, level, name)\n activity_log(name, date, amount, value)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(date, level, amount, status)\n workforce_data(status, value, date, salary)\nTask: Find amount from acquisition_log where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(amount, name, status, id)\n attribute_groups(name, salary, type, value)\nTask: Retrieve value from sales_registry that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(date, level, status, code)\n portfolio_index(id, amount, date, level)\nTask: Select salary from sales_registry that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(name, amount, salary, level)\n activity_log(code, status, level, amount)\nTask: Select code from stocking_sites that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(name, date, value, code)\n receivables_log(type, amount, date, value)\nTask: Select salary from attribute_groups that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(salary, date, amount, level)\n stocking_sites(name, type, salary, level)\nTask: Retrieve name from acquisition_log whose code is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS emp\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(status, date, type, amount)\n portfolio_index(status, date, id, code)\nTask: Find amount from attribute_groups where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(value, id, salary, date)\n activity_log(date, type, id, code)\nTask: Find value from attribute_groups where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(date, value, amount, id)\n area_registry(amount, code, id, value)\nTask: Find name from acquisition_log where amount exceeds the total salary from area_registry for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(name, salary, amount, code)\n workforce_data(date, type, name, salary)\nTask: Find salary from receivables_log where code appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, code, amount, date)\n sourcing_list(amount, salary, name, date)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(amount, type, value, id)\n dispatch_queue(id, code, level, value)\nTask: Select salary from journal_entries where id exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(status, level, id, date)\n sales_registry(level, id, code, salary)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(value, amount, name, type)\n acquisition_log(value, id, level, name)\nTask: Select salary from area_registry where level exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, type, code, name)\n receivables_log(value, status, amount, type)\nTask: Find code from dispatch_queue where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(value, name, status, salary)\n stocking_sites(value, amount, salary, code)\nTask: Find code from activity_log where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(value, name, amount, code)\n portfolio_index(code, type, salary, level)\nTask: Retrieve id from dispatch_queue with amount above the COUNT(salary) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(amount, level, id, salary)\n area_registry(date, code, type, salary)\nTask: Retrieve id from attribute_groups whose type is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(code, salary, amount, type)\n receivables_log(amount, level, value, date)\nTask: Find amount from activity_log where amount exceeds the minimum amount from receivables_log for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE amount > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(salary, amount, status, type)\n receivables_log(code, status, id, level)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(level, status, type, name)\n workforce_data(amount, code, salary, level)\nTask: Select salary from sales_queue where type exists in workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(type, level, status, name)\n engagement_log(salary, id, name, amount)\nTask: Find name from activity_log where type appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(type, code, date, value)\n acquisition_log(type, value, code, date)\nTask: Retrieve amount from stocking_sites that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(name, date, status, code)\n workforce_data(date, id, level, type)\nTask: Retrieve name from journal_entries with salary above the AVG(amount) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, name, date, level)\n activity_log(id, code, date, value)\nTask: Select amount from attribute_groups where amount is greater than the total of salary in activity_log for matching code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(level, date, type, id)\n facility_registry(date, amount, id, value)\nTask: Select id from stock_catalog that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(date, status, code, id)\n sales_registry(amount, id, name, status)\nTask: Select amount from acquisition_log where level exists in sales_registry for the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(value, status, amount, id)\n journal_entries(code, date, amount, name)\nTask: Find name from attribute_groups where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(value, salary, level, type)\n acquisition_log(type, value, id, status)\nTask: Find salary from sales_registry where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(name, level, code, value)\n portfolio_index(code, level, salary, date)\nTask: Retrieve salary from acquisition_log with value above the COUNT(salary) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE value > (\n SELECT COUNT(salary) FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(code, date, status, level)\n portfolio_index(name, date, amount, status)\nTask: Select value from activity_log where salary is greater than the average of value in portfolio_index for matching level.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE salary > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(level, code, id, date)\n sourcing_list(level, code, type, value)\nTask: Find id from acquisition_log where id appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(status, date, salary, value)\n area_registry(type, id, code, value)\nTask: Select id from personnel_registry where amount is greater than the minimum of value in area_registry for matching status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(salary, status, type, amount)\n receivables_log(date, amount, status, salary)\nTask: Find id from sourcing_list where type appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(level, salary, id, type)\n personnel_registry(type, value, amount, level)\nTask: Select value from attribute_groups where salary is greater than the count of of salary in personnel_registry for matching id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(id, date, amount, type)\n cost_centers(amount, level, value, code)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(date, amount, level, status)\n journal_entries(date, code, value, name)\nTask: Find name from portfolio_index where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(name, date, type, amount)\n personnel_registry(code, level, id, value)\nTask: Select amount from attribute_groups that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(salary, code, type, id)\n sales_registry(code, level, type, amount)\nTask: Retrieve code from sales_queue with salary above the AVG(salary) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(code, amount, salary, type)\n area_registry(id, level, date, status)\nTask: Find name from sales_queue where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(date, name, amount, level)\n sales_registry(type, name, status, id)\nTask: Find salary from stock_catalog where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(value, level, code, type)\n sales_queue(amount, salary, level, status)\nTask: Find name from activity_log where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(level, type, salary, status)\n workforce_data(amount, date, type, name)\nTask: Retrieve code from stock_catalog with salary above the SUM(salary) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(date, type, status, level)\n dispatch_queue(type, date, salary, value)\nTask: Select value from area_registry that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(date, name, code, id)\n receivables_log(code, date, status, type)\nTask: Retrieve salary from sales_registry whose level is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(date, status, id, name)\n sourcing_list(name, amount, status, level)\nTask: Retrieve amount from sales_queue whose code is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(value, code, status, level)\n receivables_log(value, level, name, code)\nTask: Retrieve amount from journal_entries whose id is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(salary, status, code, name)\n facility_registry(status, type, name, code)\nTask: Select amount from stocking_sites where salary is greater than the total of salary in facility_registry for matching level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(date, level, status, amount)\n engagement_log(date, salary, id, status)\nTask: Select value from workforce_data where salary is greater than the minimum of amount in engagement_log for matching type.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(code, id, amount, date)\n activity_log(salary, status, id, code)\nTask: Find code from personnel_registry where id appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(date, amount, code, name)\n activity_log(status, date, type, level)\nTask: Retrieve salary from stock_catalog with amount above the SUM(value) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE amount > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(level, date, name, amount)\n activity_log(salary, date, id, type)\nTask: Find name from attribute_groups where level appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(date, level, name, id)\n sales_queue(value, status, level, name)\nTask: Find name from personnel_registry where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(code, date, type, level)\n personnel_registry(status, name, amount, level)\nTask: Retrieve code from acquisition_log whose code is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(code, name, level, type)\n sales_registry(code, type, name, date)\nTask: Retrieve salary from journal_entries that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(amount, salary, status, type)\n attribute_groups(date, status, amount, name)\nTask: Find id from acquisition_log where a matching record exists in attribute_groups with the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(date, level, status, name)\n sales_queue(salary, type, amount, name)\nTask: Retrieve amount from personnel_registry with amount above the SUM(value) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE amount > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(level, id, salary, date)\n facility_registry(amount, level, name, code)\nTask: Find salary from stock_catalog where salary exceeds the maximum value from facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS emp\nWHERE salary > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(value, code, status, date)\n acquisition_log(amount, type, id, status)\nTask: Find name from personnel_registry where code appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(type, status, code, level)\n activity_log(date, level, amount, code)\nTask: Select amount from personnel_registry where type exists in activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(value, id, salary, code)\n sourcing_list(level, type, date, id)\nTask: Find value from activity_log where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(salary, name, code, status)\n journal_entries(name, type, amount, salary)\nTask: Retrieve value from workforce_data whose code is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(level, status, code, name)\n cost_centers(status, value, type, salary)\nTask: Find id from attribute_groups where amount exceeds the count of value from cost_centers for the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(level, name, date, id)\n facility_registry(date, amount, salary, type)\nTask: Find salary from activity_log where salary exceeds the maximum value from facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE salary > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(value, level, code, name)\n engagement_log(status, value, level, type)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(amount, name, type, salary)\n attribute_groups(value, name, level, date)\nTask: Retrieve code from sourcing_list with salary above the SUM(amount) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(code, type, id, name)\n acquisition_log(amount, value, type, id)\nTask: Retrieve name from engagement_log whose id is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(value, code, status, type)\n acquisition_log(name, value, id, date)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(salary, value, amount, level)\n portfolio_index(date, type, level, name)\nTask: Find amount from sourcing_list where type appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(amount, id, level, name)\n activity_log(value, type, id, code)\nTask: Retrieve amount from stocking_sites with salary above the SUM(amount) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(type, date, id, amount)\n workforce_data(name, amount, type, id)\nTask: Select amount from activity_log where code exists in workforce_data for the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(status, id, value, amount)\n activity_log(salary, id, amount, level)\nTask: Select amount from acquisition_log that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(date, amount, id, code)\n sales_queue(id, code, date, amount)\nTask: Select code from sales_registry that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(status, type, name, level)\n cost_centers(status, value, name, id)\nTask: Select amount from journal_entries where id exists in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(salary, value, status, id)\n sales_queue(status, amount, id, type)\nTask: Select salary from receivables_log where salary is greater than the maximum of salary in sales_queue for matching level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(id, value, name, type)\n area_registry(name, status, type, code)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(code, date, value, type)\n personnel_registry(date, name, type, salary)\nTask: Find code from stock_catalog where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(date, code, value, status)\n sales_queue(level, id, status, value)\nTask: Find salary from dispatch_queue where amount exceeds the minimum value from sales_queue for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT MIN(value) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(salary, code, amount, level)\n stock_catalog(level, value, type, salary)\nTask: Find salary from journal_entries where type appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(value, amount, type, status)\n receivables_log(id, type, status, salary)\nTask: Retrieve value from journal_entries with amount above the AVG(amount) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(date, amount, level, code)\n attribute_groups(name, value, id, code)\nTask: Find salary from sales_registry where amount exceeds the maximum amount from attribute_groups for the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(date, id, type, status)\n activity_log(level, status, value, type)\nTask: Find id from cost_centers where value exceeds the maximum amount from activity_log for the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE value > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(salary, amount, date, code)\n portfolio_index(salary, id, amount, level)\nTask: Select name from sales_queue where amount is greater than the count of of value in portfolio_index for matching type.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, id, level, date)\n receivables_log(name, type, code, value)\nTask: Retrieve code from dispatch_queue with amount above the MIN(value) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(id, status, date, type)\n journal_entries(type, date, salary, status)\nTask: Find id from stocking_sites where level appears in journal_entries entries with matching code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(salary, status, name, level)\n personnel_registry(value, amount, salary, status)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in personnel_registry sharing the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(level, type, status, salary)\n acquisition_log(status, id, amount, type)\nTask: Retrieve value from engagement_log with salary above the COUNT(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(amount, value, date, status)\n dispatch_queue(date, code, salary, level)\nTask: Select salary from journal_entries where type exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(id, type, salary, amount)\n dispatch_queue(code, date, value, type)\nTask: Retrieve value from cost_centers whose level is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(date, amount, id, status)\n attribute_groups(name, salary, type, date)\nTask: Retrieve name from stocking_sites whose level is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS prod\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(date, status, code, amount)\n personnel_registry(name, type, salary, code)\nTask: Find code from stocking_sites where id appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(salary, level, date, value)\n activity_log(status, type, code, id)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, id, type, amount)\n journal_entries(name, salary, type, level)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(value, id, name, date)\n workforce_data(amount, date, id, code)\nTask: Retrieve value from facility_registry with amount above the COUNT(amount) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(code, date, id, salary)\n area_registry(level, name, salary, type)\nTask: Find code from engagement_log where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(id, status, name, salary)\n personnel_registry(value, amount, type, id)\nTask: Find amount from stock_catalog where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(type, name, value, date)\n personnel_registry(name, value, amount, type)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, code, id, type)\n sales_queue(value, id, date, level)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, id, name, date)\n facility_registry(salary, level, date, name)\nTask: Select id from personnel_registry that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(type, amount, name, level)\n facility_registry(code, level, salary, date)\nTask: Retrieve code from activity_log whose code is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS usr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(value, salary, date, id)\n stocking_sites(name, id, code, date)\nTask: Retrieve code from sales_queue whose code is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(type, salary, id, date)\n journal_entries(id, type, amount, status)\nTask: Retrieve name from workforce_data whose level is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(level, name, salary, date)\n stock_catalog(type, level, salary, id)\nTask: Retrieve salary from attribute_groups whose level is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(amount, id, status, level)\n stocking_sites(status, code, type, id)\nTask: Find name from area_registry where value exceeds the minimum amount from stocking_sites for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE value > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(salary, name, value, level)\n personnel_registry(date, amount, salary, status)\nTask: Select name from sales_registry where status exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, code, salary, date)\n engagement_log(name, type, status, value)\nTask: Retrieve name from acquisition_log that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(name, salary, value, date)\n receivables_log(level, name, id, code)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(id, code, name, salary)\n sales_registry(code, id, date, name)\nTask: Retrieve id from engagement_log whose id is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(type, code, level, value)\n workforce_data(name, status, salary, type)\nTask: Select amount from attribute_groups where amount is greater than the total of amount in workforce_data for matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(type, id, value, code)\n area_registry(status, salary, code, id)\nTask: Find amount from engagement_log where value exceeds the minimum salary from area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE value > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(type, code, salary, status)\n stocking_sites(value, name, type, code)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(name, status, value, salary)\n sourcing_list(level, salary, id, date)\nTask: Select salary from stocking_sites where status exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(status, date, level, salary)\n portfolio_index(type, code, date, status)\nTask: Find amount from dispatch_queue where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, status, name, type)\n sales_registry(level, salary, date, value)\nTask: Find id from acquisition_log where amount exceeds the maximum amount from sales_registry for the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(name, value, status, id)\n cost_centers(id, name, type, code)\nTask: Select code from workforce_data where value is greater than the average of amount in cost_centers for matching code.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(level, date, type, id)\n stock_catalog(code, date, value, id)\nTask: Find id from receivables_log where value exceeds the maximum value from stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE value > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(id, type, amount, salary)\n engagement_log(amount, value, code, level)\nTask: Select name from sales_registry that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(level, code, id, name)\n sales_queue(status, amount, value, level)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, type, value, name)\n area_registry(name, level, salary, amount)\nTask: Find code from acquisition_log where code appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(salary, level, name, date)\n area_registry(status, code, date, id)\nTask: Select value from cost_centers where code exists in area_registry for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(amount, value, status, code)\n sales_registry(code, type, value, id)\nTask: Select amount from engagement_log where amount is greater than the average of value in sales_registry for matching status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(date, salary, level, value)\n engagement_log(name, code, level, value)\nTask: Select salary from journal_entries where value is greater than the maximum of amount in engagement_log for matching id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE value > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(status, amount, date, code)\n stock_catalog(status, name, code, value)\nTask: Select value from activity_log that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(code, status, type, salary)\n sales_queue(date, status, level, type)\nTask: Select id from journal_entries where salary is greater than the maximum of amount in sales_queue for matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(level, id, amount, salary)\n acquisition_log(salary, type, date, id)\nTask: Select salary from personnel_registry where amount is greater than the count of of value in acquisition_log for matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(type, level, name, salary)\n acquisition_log(name, code, salary, amount)\nTask: Retrieve code from cost_centers whose type is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, type, status, value)\n sales_queue(status, id, salary, type)\nTask: Find salary from sourcing_list where salary exceeds the average salary from sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(amount, salary, code, level)\n cost_centers(amount, level, salary, name)\nTask: Select value from workforce_data where code exists in cost_centers for the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(salary, value, status, date)\n sales_queue(level, amount, salary, type)\nTask: Retrieve amount from receivables_log with value above the COUNT(value) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE value > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(level, value, name, id)\n dispatch_queue(type, id, salary, date)\nTask: Retrieve value from sales_registry whose level is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS prod\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(salary, code, id, level)\n acquisition_log(id, value, type, code)\nTask: Select code from personnel_registry where value is greater than the total of salary in acquisition_log for matching status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE value > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(status, name, value, id)\n sales_registry(amount, name, salary, code)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(status, date, name, amount)\n portfolio_index(code, salary, level, id)\nTask: Select amount from cost_centers where type exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(name, salary, id, level)\n receivables_log(name, status, type, code)\nTask: Select value from personnel_registry where code exists in receivables_log for the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(code, status, id, date)\n activity_log(amount, code, level, id)\nTask: Find name from cost_centers where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, salary, value, id)\n receivables_log(status, level, id, code)\nTask: Find value from stock_catalog where value exceeds the count of amount from receivables_log for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE value > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(code, status, name, id)\n sourcing_list(id, value, level, status)\nTask: Retrieve salary from cost_centers whose id is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS usr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(date, salary, status, type)\n cost_centers(name, id, status, amount)\nTask: Find amount from workforce_data where value exceeds the total salary from cost_centers for the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE value > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(level, name, id, date)\n receivables_log(code, salary, amount, name)\nTask: Retrieve id from sourcing_list that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(amount, date, id, level)\n receivables_log(amount, type, name, level)\nTask: Select id from dispatch_queue where salary is greater than the count of of value in receivables_log for matching id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(status, id, level, code)\n engagement_log(name, date, status, level)\nTask: Retrieve salary from stocking_sites whose code is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(name, type, salary, value)\n acquisition_log(id, amount, salary, code)\nTask: Retrieve value from attribute_groups whose code is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(date, type, level, id)\n portfolio_index(date, id, level, type)\nTask: Find value from receivables_log where salary exceeds the average value from portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE salary > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(status, salary, type, id)\n personnel_registry(date, salary, status, type)\nTask: Retrieve salary from sourcing_list whose level is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(level, id, status, date)\n stocking_sites(value, salary, level, code)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(value, level, date, amount)\n portfolio_index(amount, level, type, value)\nTask: Find code from sales_registry where value exceeds the total value from portfolio_index for the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE value > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(status, name, id, value)\n personnel_registry(id, value, amount, status)\nTask: Find value from workforce_data where level appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(level, name, id, value)\n sourcing_list(value, id, amount, status)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(status, amount, salary, date)\n acquisition_log(level, id, value, amount)\nTask: Find salary from sales_queue where id appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(value, name, salary, date)\n sourcing_list(date, salary, value, status)\nTask: Select amount from receivables_log that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, salary, status, value)\n activity_log(date, code, status, level)\nTask: Select name from dispatch_queue where id exists in activity_log for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(level, salary, id, amount)\n facility_registry(type, code, level, salary)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(salary, name, type, code)\n cost_centers(amount, value, salary, level)\nTask: Find id from sales_registry where salary exceeds the minimum salary from cost_centers for the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(code, type, id, name)\n personnel_registry(level, code, name, type)\nTask: Find salary from engagement_log where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(level, status, date, value)\n acquisition_log(value, salary, name, amount)\nTask: Retrieve code from workforce_data with salary above the AVG(salary) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(date, level, type, name)\n acquisition_log(date, status, level, name)\nTask: Select salary from stock_catalog that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(date, amount, status, type)\n stock_catalog(id, level, status, code)\nTask: Retrieve value from workforce_data with amount above the SUM(amount) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE amount > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(code, status, type, name)\n sourcing_list(amount, id, level, type)\nTask: Find name from activity_log where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(status, date, level, name)\n sales_queue(status, code, level, type)\nTask: Select value from cost_centers where amount is greater than the minimum of value in sales_queue for matching type.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE amount > (\n SELECT MIN(value) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(date, amount, type, id)\n sourcing_list(id, value, name, salary)\nTask: Find salary from cost_centers where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(value, code, level, date)\n portfolio_index(amount, type, date, name)\nTask: Select id from engagement_log where amount is greater than the average of value in portfolio_index for matching status.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE amount > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(salary, code, name, amount)\n facility_registry(code, value, name, type)\nTask: Find name from sales_registry where status appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(id, amount, type, value)\n personnel_registry(level, amount, type, name)\nTask: Find code from sourcing_list where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(status, amount, value, date)\n receivables_log(id, status, date, name)\nTask: Select id from activity_log where code exists in receivables_log for the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(level, value, status, salary)\n stocking_sites(amount, salary, level, date)\nTask: Retrieve name from area_registry with amount above the COUNT(value) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(status, salary, value, level)\n cost_centers(status, level, value, type)\nTask: Retrieve id from sales_queue with value above the SUM(value) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE value > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(amount, type, id, status)\n sales_queue(amount, name, date, code)\nTask: Select amount from sourcing_list where salary is greater than the total of value in sales_queue for matching type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(status, type, salary, value)\n activity_log(status, name, date, id)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(name, amount, type, id)\n engagement_log(id, status, level, name)\nTask: Retrieve code from cost_centers that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(type, date, salary, id)\n sales_queue(amount, level, salary, type)\nTask: Retrieve name from activity_log whose level is found in sales_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(id, amount, type, value)\n stocking_sites(value, date, type, id)\nTask: Select value from personnel_registry where value is greater than the count of of amount in stocking_sites for matching id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(id, type, date, salary)\n cost_centers(type, name, amount, date)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(status, level, salary, id)\n sales_registry(id, code, status, value)\nTask: Find id from cost_centers where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(name, type, amount, date)\n stocking_sites(date, salary, amount, code)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(value, level, salary, id)\n journal_entries(value, id, type, date)\nTask: Select code from portfolio_index where code exists in journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, date, amount, level)\n engagement_log(amount, salary, id, code)\nTask: Select code from attribute_groups where amount is greater than the count of of amount in engagement_log for matching type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, level, code, status)\n stocking_sites(name, id, status, type)\nTask: Retrieve value from portfolio_index with amount above the COUNT(value) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS inv\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(status, type, id, value)\n journal_entries(name, salary, status, code)\nTask: Find code from stocking_sites where amount exceeds the minimum amount from journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE amount > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(code, name, date, type)\n sales_registry(name, value, status, type)\nTask: Select amount from journal_entries where salary is greater than the average of amount in sales_registry for matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(code, name, level, amount)\n stocking_sites(value, date, name, level)\nTask: Find id from attribute_groups where amount exceeds the average salary from stocking_sites for the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(name, status, date, value)\n cost_centers(date, salary, code, id)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(amount, type, salary, value)\n journal_entries(code, id, amount, name)\nTask: Select name from attribute_groups where id exists in journal_entries for the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, id, level, status)\n attribute_groups(name, value, salary, amount)\nTask: Select value from stocking_sites that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(amount, id, code, name)\n journal_entries(value, salary, type, id)\nTask: Find value from facility_registry where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, value, code, date)\n area_registry(type, value, date, name)\nTask: Select id from dispatch_queue where status exists in area_registry for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(name, date, id, code)\n cost_centers(date, status, value, level)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(value, id, date, salary)\n sales_queue(value, salary, type, code)\nTask: Find name from stock_catalog where value exceeds the maximum value from sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE value > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(id, level, code, salary)\n attribute_groups(code, date, id, status)\nTask: Select id from cost_centers where salary is greater than the average of salary in attribute_groups for matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(code, status, salary, amount)\n facility_registry(type, date, level, salary)\nTask: Retrieve value from sales_queue with value above the SUM(amount) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE value > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(status, date, value, type)\n stocking_sites(status, salary, level, value)\nTask: Select name from sales_queue that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, code, amount, type)\n facility_registry(level, id, type, name)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(date, status, level, code)\n cost_centers(date, code, level, name)\nTask: Select code from attribute_groups where salary is greater than the total of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(level, salary, code, id)\n sourcing_list(name, type, date, id)\nTask: Find salary from sales_registry where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, value, name, status)\n dispatch_queue(value, level, name, date)\nTask: Select amount from portfolio_index that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(level, status, id, value)\n engagement_log(status, date, code, salary)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, amount, code, date)\n journal_entries(code, id, type, amount)\nTask: Select value from dispatch_queue where code exists in journal_entries for the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, level, code, amount)\n stock_catalog(date, type, name, level)\nTask: Select amount from portfolio_index that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(id, name, salary, code)\n engagement_log(value, level, amount, id)\nTask: Select salary from sales_queue where id exists in engagement_log for the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(value, date, name, level)\n portfolio_index(level, type, salary, id)\nTask: Find name from receivables_log where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(code, salary, status, level)\n dispatch_queue(name, id, status, amount)\nTask: Select code from area_registry where amount is greater than the minimum of value in dispatch_queue for matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE amount > (\n SELECT MIN(value) FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(salary, status, name, level)\n cost_centers(type, amount, level, date)\nTask: Find amount from sourcing_list where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(salary, amount, id, code)\n personnel_registry(salary, name, status, date)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(name, date, code, id)\n engagement_log(type, status, name, id)\nTask: Select code from facility_registry where salary is greater than the maximum of salary in engagement_log for matching code.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(value, level, salary, amount)\n dispatch_queue(salary, date, name, level)\nTask: Select amount from cost_centers where amount is greater than the total of value in dispatch_queue for matching code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE amount > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(value, name, status, type)\n receivables_log(value, level, id, date)\nTask: Find value from sales_queue where code appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(date, value, name, salary)\n stocking_sites(value, status, amount, type)\nTask: Select name from workforce_data where value is greater than the maximum of value in stocking_sites for matching level.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(level, status, amount, value)\n engagement_log(amount, type, date, id)\nTask: Find code from stock_catalog where value exceeds the maximum salary from engagement_log for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE value > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(type, status, date, salary)\n sales_registry(value, name, level, date)\nTask: Retrieve code from sales_queue whose id is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(level, name, status, salary)\n activity_log(id, amount, status, date)\nTask: Find name from sales_registry where amount exceeds the maximum salary from activity_log for the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS ord\nWHERE amount > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(salary, status, code, type)\n sourcing_list(status, name, code, level)\nTask: Retrieve salary from facility_registry whose type is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(name, value, code, date)\n stocking_sites(salary, type, name, level)\nTask: Select amount from sales_queue where id exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(value, name, amount, code)\n dispatch_queue(value, status, code, level)\nTask: Retrieve salary from receivables_log with amount above the SUM(salary) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(date, amount, name, code)\n portfolio_index(status, value, id, salary)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(salary, type, date, name)\n personnel_registry(value, level, amount, salary)\nTask: Select salary from stocking_sites where amount is greater than the minimum of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, salary, id, status)\n stock_catalog(status, name, amount, code)\nTask: Find amount from acquisition_log where amount exceeds the average amount from stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(status, code, id, date)\n receivables_log(value, date, name, type)\nTask: Select salary from acquisition_log where amount is greater than the average of amount in receivables_log for matching status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE amount > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, status, amount, type)\n stock_catalog(type, date, name, level)\nTask: Find name from engagement_log where amount exceeds the total amount from stock_catalog for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(type, name, value, amount)\n stock_catalog(date, amount, level, type)\nTask: Retrieve id from journal_entries with value above the AVG(amount) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE value > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(name, amount, code, status)\n journal_entries(name, value, type, salary)\nTask: Select code from personnel_registry where amount is greater than the total of value in journal_entries for matching code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE amount > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(value, status, level, type)\n activity_log(code, salary, amount, status)\nTask: Find code from personnel_registry where amount exceeds the count of salary from activity_log for the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(id, code, value, status)\n acquisition_log(name, date, salary, code)\nTask: Find name from facility_registry where id appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(amount, salary, date, name)\n workforce_data(id, value, salary, status)\nTask: Select amount from area_registry where id exists in workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(status, date, name, amount)\n receivables_log(value, status, salary, amount)\nTask: Find salary from stock_catalog where amount exceeds the average salary from receivables_log for the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(value, amount, code, id)\n area_registry(code, id, status, type)\nTask: Select name from attribute_groups that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(amount, value, salary, status)\n receivables_log(id, type, amount, date)\nTask: Select code from acquisition_log where level exists in receivables_log for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, amount, code, type)\n engagement_log(value, type, salary, code)\nTask: Retrieve salary from dispatch_queue whose code is found in engagement_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(date, level, status, amount)\n personnel_registry(status, id, amount, code)\nTask: Find name from acquisition_log where type appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, level, id, name)\n attribute_groups(salary, id, date, type)\nTask: Select salary from dispatch_queue that have at least one matching row in attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(id, status, date, code)\n stock_catalog(name, value, status, date)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(status, name, level, code)\n sales_registry(code, name, status, date)\nTask: Select amount from engagement_log where code exists in sales_registry for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(level, type, value, name)\n sourcing_list(id, status, level, value)\nTask: Select salary from stock_catalog where code exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(code, name, date, salary)\n acquisition_log(value, name, salary, date)\nTask: Select name from activity_log where status exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, amount, id, level)\n attribute_groups(value, level, id, amount)\nTask: Find value from stocking_sites where status appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(value, name, amount, level)\n stock_catalog(status, salary, type, name)\nTask: Find id from receivables_log where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(code, type, value, id)\n stock_catalog(salary, code, amount, type)\nTask: Retrieve value from facility_registry whose level is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS ord\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(code, amount, date, type)\n acquisition_log(amount, salary, name, type)\nTask: Select id from facility_registry that have at least one matching row in acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(salary, id, type, code)\n sales_registry(type, level, amount, salary)\nTask: Select id from stocking_sites where salary is greater than the total of value in sales_registry for matching id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS prod\nWHERE salary > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(name, id, value, type)\n dispatch_queue(code, date, type, value)\nTask: Select amount from portfolio_index that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(name, date, code, id)\n stocking_sites(id, level, date, name)\nTask: Retrieve code from portfolio_index whose type is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(status, code, level, date)\n receivables_log(status, salary, code, date)\nTask: Select salary from stock_catalog where status exists in receivables_log for the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(name, level, value, amount)\n activity_log(status, name, id, date)\nTask: Find amount from sales_registry where amount exceeds the minimum salary from activity_log for the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(date, code, level, salary)\n dispatch_queue(salary, name, value, type)\nTask: Find salary from stocking_sites where value exceeds the count of value from dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE value > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(date, amount, type, status)\n receivables_log(amount, date, id, status)\nTask: Find amount from engagement_log where level appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(date, level, status, code)\n acquisition_log(type, status, id, code)\nTask: Select salary from receivables_log that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(code, level, salary, value)\n receivables_log(type, level, salary, date)\nTask: Find salary from activity_log where salary exceeds the minimum value from receivables_log for the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE salary > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(salary, amount, id, date)\n area_registry(id, status, type, name)\nTask: Select amount from attribute_groups where type exists in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS dept\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(salary, name, code, level)\n receivables_log(type, code, value, date)\nTask: Select amount from sales_registry where level exists in receivables_log for the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "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}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(salary, status, name, date)\n stock_catalog(amount, date, salary, type)\nTask: Select value from attribute_groups where value is greater than the maximum of value in stock_catalog for matching level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE value > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(value, code, name, level)\n stocking_sites(code, type, name, value)\nTask: Find code from sales_queue where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(id, amount, value, name)\n stocking_sites(value, salary, code, type)\nTask: Find amount from engagement_log where level appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(amount, id, status, salary)\n stock_catalog(name, type, id, salary)\nTask: Find amount from receivables_log where code appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(type, status, level, date)\n facility_registry(amount, level, date, value)\nTask: Find id from sales_registry where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(type, value, level, date)\n cost_centers(value, amount, status, level)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(id, amount, level, salary)\n portfolio_index(id, salary, status, amount)\nTask: Find salary from attribute_groups where type appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(level, id, amount, date)\n workforce_data(amount, salary, value, level)\nTask: Find value from sourcing_list where amount exceeds the maximum salary from workforce_data for the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, value, status, type)\n engagement_log(id, salary, date, level)\nTask: Select name from portfolio_index that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(date, salary, id, status)\n stock_catalog(type, id, salary, level)\nTask: Retrieve name from sales_queue whose id is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(id, amount, date, type)\n stocking_sites(salary, level, amount, status)\nTask: Select amount from facility_registry where salary is greater than the minimum of amount in stocking_sites for matching id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(id, code, value, amount)\n facility_registry(level, date, id, code)\nTask: Find amount from dispatch_queue where salary exceeds the average amount from facility_registry for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(name, status, type, amount)\n engagement_log(code, amount, type, status)\nTask: Find salary from stock_catalog where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(value, date, name, code)\n stocking_sites(id, salary, status, amount)\nTask: Select value from cost_centers that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(type, id, name, amount)\n sales_registry(status, id, code, date)\nTask: Select code from dispatch_queue that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(status, type, value, name)\n facility_registry(date, value, code, amount)\nTask: Retrieve value from sales_registry with value above the SUM(salary) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(type, code, value, salary)\n dispatch_queue(name, amount, code, value)\nTask: Find salary from cost_centers where level appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(id, amount, name, salary)\n stocking_sites(status, id, name, date)\nTask: Select id from portfolio_index where code exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(type, id, status, salary)\n attribute_groups(salary, level, value, type)\nTask: Select amount from journal_entries where salary is greater than the average of value in attribute_groups for matching level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE salary > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(value, status, type, code)\n sales_registry(id, status, level, value)\nTask: Find code from stock_catalog where type appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(code, salary, type, value)\n sourcing_list(code, salary, id, amount)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(level, amount, salary, id)\n receivables_log(status, value, name, date)\nTask: Retrieve name from attribute_groups with salary above the COUNT(salary) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(code, date, name, type)\n stocking_sites(type, value, salary, code)\nTask: Select code from workforce_data where code exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(salary, type, code, date)\n personnel_registry(code, id, amount, salary)\nTask: Select id from acquisition_log where value is greater than the minimum of amount in personnel_registry for matching status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE value > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(level, code, name, type)\n personnel_registry(id, name, date, salary)\nTask: Select name from facility_registry where amount is greater than the minimum of value in personnel_registry for matching code.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(type, value, code, status)\n sales_registry(amount, value, id, status)\nTask: Find id from dispatch_queue where code appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(id, amount, level, name)\n engagement_log(code, amount, name, status)\nTask: Retrieve amount from journal_entries whose code is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS ord\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(date, status, type, name)\n area_registry(date, value, amount, salary)\nTask: Retrieve amount from workforce_data with value above the AVG(value) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE value > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(id, date, status, code)\n stocking_sites(code, salary, status, date)\nTask: Select name from cost_centers where id exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, level, salary, type)\n personnel_registry(status, amount, code, level)\nTask: Find salary from dispatch_queue where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(name, id, type, date)\n facility_registry(amount, type, id, name)\nTask: Find name from stocking_sites where code appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(name, salary, date, value)\n attribute_groups(value, date, salary, type)\nTask: Find code from portfolio_index where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(amount, id, name, status)\n receivables_log(name, salary, status, date)\nTask: Find code from cost_centers where amount exceeds the minimum value from receivables_log for the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE amount > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(name, value, date, id)\n journal_entries(name, type, value, id)\nTask: Retrieve name from attribute_groups with salary above the COUNT(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(salary, status, type, id)\n journal_entries(level, id, type, date)\nTask: Retrieve id from receivables_log with salary above the MAX(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE salary > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(type, salary, code, amount)\n facility_registry(type, value, status, code)\nTask: Retrieve code from journal_entries with value above the AVG(salary) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(salary, status, id, type)\n engagement_log(id, date, amount, type)\nTask: Select value from cost_centers that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(date, amount, value, level)\n stocking_sites(salary, id, value, amount)\nTask: Find code from facility_registry where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(type, date, status, name)\n journal_entries(type, name, value, amount)\nTask: Find salary from sales_queue where level appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(id, level, name, salary)\n personnel_registry(value, amount, name, code)\nTask: Retrieve value from stock_catalog with salary above the COUNT(salary) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(amount, name, level, id)\n facility_registry(date, value, type, name)\nTask: Retrieve value from cost_centers with amount above the COUNT(salary) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE amount > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, status, date, name)\n area_registry(level, name, status, type)\nTask: Retrieve value from stock_catalog whose level is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(status, level, code, value)\n cost_centers(value, level, code, amount)\nTask: Find salary from activity_log where value exceeds the average value from cost_centers for the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE value > (\n SELECT AVG(value) FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(amount, salary, value, status)\n acquisition_log(code, status, value, date)\nTask: Retrieve code from journal_entries with salary above the MIN(salary) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(date, name, code, id)\n stocking_sites(value, id, amount, level)\nTask: Find salary from personnel_registry where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, type, name, id)\n area_registry(salary, amount, date, type)\nTask: Retrieve salary from dispatch_queue with amount above the MIN(amount) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(date, type, code, id)\n stock_catalog(date, id, salary, status)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, value, type, amount)\n engagement_log(type, date, id, name)\nTask: Select code from dispatch_queue where type exists in engagement_log for the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS usr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(name, id, salary, amount)\n engagement_log(status, id, code, amount)\nTask: Select name from journal_entries where amount is greater than the average of value in engagement_log for matching status.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE amount > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(type, date, name, code)\n area_registry(level, status, code, type)\nTask: Retrieve amount from dispatch_queue whose code is found in area_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(id, name, amount, value)\n attribute_groups(code, level, value, id)\nTask: Find name from area_registry where amount exceeds the total salary from attribute_groups for the same code.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(date, value, name, id)\n journal_entries(amount, type, status, salary)\nTask: Retrieve amount from workforce_data with salary above the SUM(amount) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(status, level, salary, id)\n stocking_sites(name, id, level, type)\nTask: Select salary from area_registry where status exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(name, salary, status, value)\n receivables_log(value, salary, type, date)\nTask: Find salary from portfolio_index where amount exceeds the total value from receivables_log for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE amount > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(level, amount, code, type)\n sourcing_list(status, code, name, value)\nTask: Select name from sales_registry that have at least one matching row in sourcing_list for the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(amount, name, level, type)\n journal_entries(amount, date, status, type)\nTask: Select value from workforce_data that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(date, id, level, name)\n facility_registry(name, code, status, value)\nTask: Retrieve id from acquisition_log whose level is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(status, type, id, salary)\n sales_queue(date, id, name, status)\nTask: Find code from facility_registry where type appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(status, salary, id, date)\n cost_centers(status, salary, amount, name)\nTask: Find amount from sales_queue where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(date, type, level, amount)\n sales_queue(level, name, code, salary)\nTask: Select id from sourcing_list where status exists in sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(status, id, date, salary)\n stock_catalog(level, id, name, date)\nTask: Retrieve value from activity_log with amount above the MIN(value) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS inv\nWHERE amount > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(code, level, type, amount)\n attribute_groups(level, type, date, name)\nTask: Find code from engagement_log where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(salary, value, level, type)\n engagement_log(status, name, code, id)\nTask: Select code from personnel_registry where value is greater than the total of salary in engagement_log for matching status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE value > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(name, date, id, value)\n cost_centers(salary, id, level, amount)\nTask: Find amount from engagement_log where salary exceeds the count of value from cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(salary, id, level, date)\n cost_centers(name, salary, amount, type)\nTask: Find name from receivables_log where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, value, id, status)\n personnel_registry(level, date, id, value)\nTask: Retrieve amount from sales_queue whose code is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(salary, name, value, type)\n engagement_log(salary, value, date, level)\nTask: Retrieve value from stock_catalog with value above the COUNT(value) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE value > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(status, level, name, date)\n cost_centers(level, value, id, code)\nTask: Retrieve name from sourcing_list whose id is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, date, code, status)\n facility_registry(status, level, name, code)\nTask: Find salary from dispatch_queue where value exceeds the minimum salary from facility_registry for the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE value > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(salary, value, name, status)\n dispatch_queue(name, status, salary, value)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(status, code, level, date)\n personnel_registry(name, salary, value, code)\nTask: Find code from attribute_groups where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(name, value, level, type)\n sales_registry(salary, status, value, amount)\nTask: Find value from portfolio_index where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, status, id, value)\n area_registry(salary, value, name, status)\nTask: Find amount from attribute_groups where status appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(date, amount, type, status)\n journal_entries(date, code, name, amount)\nTask: Select id from workforce_data that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(value, salary, name, status)\n workforce_data(code, date, amount, value)\nTask: Find name from portfolio_index where salary exceeds the minimum salary from workforce_data for the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(name, salary, level, id)\n journal_entries(status, name, salary, level)\nTask: Select code from stocking_sites where level exists in journal_entries for the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS emp\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, code, id, date)\n sales_queue(value, date, salary, code)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(level, status, salary, type)\n workforce_data(id, value, code, level)\nTask: Select name from journal_entries that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(name, value, code, level)\n portfolio_index(type, status, name, id)\nTask: Find value from sales_registry where value exceeds the total salary from portfolio_index for the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE value > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(status, name, id, type)\n facility_registry(amount, code, type, name)\nTask: Find amount from sales_queue where amount exceeds the average salary from facility_registry for the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(type, date, name, id)\n activity_log(level, value, amount, id)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, salary, level, id)\n receivables_log(salary, type, date, id)\nTask: Retrieve id from dispatch_queue whose id is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, type, level, code)\n area_registry(date, salary, level, code)\nTask: Select code from stock_catalog that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(id, name, status, type)\n journal_entries(status, id, salary, code)\nTask: Select value from activity_log that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(date, amount, salary, value)\n journal_entries(name, value, date, level)\nTask: Retrieve value from workforce_data with value above the AVG(value) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE value > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(amount, name, salary, date)\n stocking_sites(id, code, amount, date)\nTask: Select salary from sales_queue that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(status, id, value, amount)\n area_registry(status, name, id, code)\nTask: Find value from cost_centers where amount exceeds the maximum value from area_registry for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE amount > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(amount, status, salary, code)\n dispatch_queue(value, date, id, status)\nTask: Find salary from sales_queue where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(salary, amount, code, name)\n engagement_log(id, code, value, date)\nTask: Select amount from facility_registry where id exists in engagement_log for the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(value, status, name, amount)\n receivables_log(level, type, id, salary)\nTask: Find name from stocking_sites where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(amount, type, level, name)\n stocking_sites(id, salary, name, amount)\nTask: Select value from receivables_log where amount is greater than the total of salary in stocking_sites for matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(status, amount, code, type)\n facility_registry(level, name, id, amount)\nTask: Select salary from acquisition_log where value is greater than the total of amount in facility_registry for matching type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE value > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(code, value, status, type)\n area_registry(level, id, type, name)\nTask: Find code from facility_registry where value exceeds the average salary from area_registry for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE value > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(amount, status, level, date)\n area_registry(amount, type, name, code)\nTask: Find code from workforce_data where value exceeds the total salary from area_registry for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE value > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(date, value, salary, status)\n facility_registry(value, amount, code, salary)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(status, value, amount, type)\n sourcing_list(code, level, value, salary)\nTask: Retrieve amount from stock_catalog whose id is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(value, name, status, type)\n engagement_log(amount, date, status, level)\nTask: Select id from sales_registry where status exists in engagement_log for the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(type, date, code, name)\n portfolio_index(amount, id, level, name)\nTask: Find value from personnel_registry where amount exceeds the average value from portfolio_index for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS usr\nWHERE amount > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(level, date, status, amount)\n personnel_registry(id, type, date, level)\nTask: Retrieve value from area_registry whose code is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(salary, type, code, value)\n cost_centers(type, level, amount, id)\nTask: Find id from workforce_data where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(id, salary, amount, level)\n personnel_registry(salary, amount, status, code)\nTask: Retrieve amount from receivables_log whose type is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, type, status, date)\n journal_entries(level, code, amount, id)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(id, amount, salary, date)\n sales_queue(value, date, status, type)\nTask: Retrieve salary from portfolio_index with amount above the MAX(amount) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(status, amount, salary, code)\n portfolio_index(value, code, date, status)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(id, salary, type, date)\n acquisition_log(name, status, date, value)\nTask: Find code from sales_queue where code appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT code FROM sales_queue AS inv\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, salary, code, id)\n area_registry(name, value, level, id)\nTask: Find code from receivables_log where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(amount, salary, level, type)\n receivables_log(date, name, level, id)\nTask: Retrieve salary from workforce_data with amount above the MAX(amount) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(name, id, value, code)\n activity_log(value, type, name, status)\nTask: Find value from sales_registry where value exceeds the total salary from activity_log for the same level.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(date, id, name, code)\n receivables_log(code, date, type, value)\nTask: Select salary from stock_catalog where amount is greater than the minimum of value in receivables_log for matching code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE amount > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(code, status, amount, id)\n acquisition_log(amount, type, salary, name)\nTask: Select id from stock_catalog that have at least one matching row in acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(level, id, salary, name)\n acquisition_log(code, level, id, value)\nTask: Retrieve salary from dispatch_queue whose level is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(salary, code, date, value)\n personnel_registry(type, date, id, salary)\nTask: Find value from sourcing_list where type appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(id, salary, value, status)\n portfolio_index(id, amount, salary, status)\nTask: Find value from sales_queue where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(id, name, date, salary)\n sourcing_list(level, name, status, salary)\nTask: Retrieve value from attribute_groups with amount above the MIN(value) of sourcing_list rows sharing the same level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS ord\nWHERE amount > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(date, amount, name, code)\n engagement_log(name, value, status, type)\nTask: Retrieve code from area_registry that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(name, code, status, type)\n stocking_sites(type, level, status, salary)\nTask: Select amount from activity_log that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(status, date, type, salary)\n sales_queue(date, status, id, level)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(date, type, id, code)\n dispatch_queue(code, salary, status, level)\nTask: Select name from receivables_log where value is greater than the average of value in dispatch_queue for matching level.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE value > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, id, amount, status)\n stocking_sites(code, name, salary, date)\nTask: Retrieve id from dispatch_queue with salary above the MIN(salary) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(salary, date, type, name)\n activity_log(status, code, salary, name)\nTask: Find amount from receivables_log where amount exceeds the count of salary from activity_log for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(date, code, id, amount)\n dispatch_queue(id, type, name, salary)\nTask: Select salary from sales_registry where salary is greater than the average of salary in dispatch_queue for matching status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(name, code, type, value)\n portfolio_index(amount, level, date, salary)\nTask: Retrieve value from attribute_groups whose status is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(date, status, salary, id)\n sourcing_list(salary, amount, id, level)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, type, value, level)\n journal_entries(id, value, type, status)\nTask: Select name from personnel_registry that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(type, date, status, level)\n attribute_groups(status, code, name, amount)\nTask: Select value from portfolio_index where level exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(status, salary, name, level)\n stocking_sites(amount, type, level, id)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(salary, name, amount, level)\n facility_registry(type, id, level, status)\nTask: Find amount from area_registry where id appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(salary, status, amount, level)\n personnel_registry(name, date, status, type)\nTask: Retrieve value from sales_queue with amount above the MIN(value) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(value, code, level, type)\n sales_queue(type, date, salary, status)\nTask: Select id from workforce_data where value is greater than the total of salary in sales_queue for matching type.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE value > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(date, amount, id, level)\n workforce_data(date, salary, id, level)\nTask: Retrieve salary from sourcing_list whose type is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(name, id, level, salary)\n receivables_log(type, code, status, name)\nTask: Find salary from sales_queue where amount exceeds the maximum amount from receivables_log for the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(name, code, amount, id)\n area_registry(date, id, name, level)\nTask: Find value from workforce_data where amount exceeds the count of salary from area_registry for the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(amount, code, date, value)\n area_registry(amount, salary, name, code)\nTask: Find salary from stock_catalog where amount exceeds the total salary from area_registry for the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(status, type, level, code)\n personnel_registry(type, amount, level, status)\nTask: Find value from portfolio_index where type appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(code, id, type, value)\n stock_catalog(id, name, salary, value)\nTask: Retrieve id from sales_registry with salary above the MAX(amount) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(value, amount, id, code)\n stocking_sites(amount, code, salary, type)\nTask: Find id from portfolio_index where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(value, level, name, amount)\n receivables_log(name, value, id, date)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(level, salary, status, name)\n workforce_data(name, salary, status, type)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT name FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(date, code, salary, name)\n personnel_registry(date, value, salary, id)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in personnel_registry sharing the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(id, value, amount, name)\n activity_log(date, id, name, type)\nTask: Select code from stocking_sites that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(date, value, salary, level)\n stocking_sites(salary, code, type, date)\nTask: Retrieve code from engagement_log whose code is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(code, amount, salary, value)\n cost_centers(code, amount, id, salary)\nTask: Find value from activity_log where value exceeds the total amount from cost_centers for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE value > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(id, status, type, salary)\n portfolio_index(amount, type, date, name)\nTask: Find value from journal_entries where value exceeds the minimum amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE value > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(amount, date, type, salary)\n sourcing_list(amount, code, id, type)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(date, status, salary, type)\n engagement_log(date, salary, value, id)\nTask: Retrieve name from activity_log that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(value, level, amount, name)\n stock_catalog(value, status, date, type)\nTask: Find code from facility_registry where status appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS inv\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(level, id, date, code)\n attribute_groups(name, id, status, amount)\nTask: Find amount from dispatch_queue where id appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(salary, amount, code, type)\n receivables_log(date, code, status, salary)\nTask: Find salary from facility_registry where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(level, salary, date, status)\n stocking_sites(type, level, name, date)\nTask: Find amount from area_registry where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(value, salary, name, type)\n workforce_data(level, amount, id, salary)\nTask: Retrieve amount from portfolio_index whose type is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(code, value, id, type)\n workforce_data(salary, id, type, code)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(level, value, date, type)\n workforce_data(status, name, level, type)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(salary, id, level, name)\n workforce_data(name, level, code, status)\nTask: Find amount from journal_entries where type appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(code, value, salary, date)\n journal_entries(type, status, salary, level)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(id, value, amount, type)\n receivables_log(code, value, status, amount)\nTask: Select id from sales_queue where value is greater than the count of of value in receivables_log for matching type.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE value > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, name, salary, code)\n area_registry(type, code, date, id)\nTask: Select salary from attribute_groups where status exists in area_registry for the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(value, salary, date, name)\n facility_registry(type, date, name, value)\nTask: Find salary from stock_catalog where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(amount, code, level, status)\n sales_registry(amount, salary, name, status)\nTask: Retrieve code from sales_queue with salary above the MAX(value) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS ord\nWHERE salary > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(date, status, code, salary)\n sales_registry(date, salary, id, level)\nTask: Find name from portfolio_index where value exceeds the minimum salary from sales_registry for the same level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE value > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(salary, code, date, amount)\n sales_queue(type, name, level, code)\nTask: Select amount from workforce_data where amount is greater than the count of of salary in sales_queue for matching level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(type, name, id, amount)\n facility_registry(salary, amount, name, level)\nTask: Find salary from receivables_log where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(date, type, name, value)\n sales_registry(amount, status, level, value)\nTask: Find code from sourcing_list where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, level, date, salary)\n stocking_sites(level, name, value, code)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(status, type, name, id)\n personnel_registry(code, id, date, status)\nTask: Find value from sales_registry where status appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(date, name, status, salary)\n portfolio_index(salary, code, id, name)\nTask: Find amount from sourcing_list where id appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, level, date, code)\n stocking_sites(amount, type, value, status)\nTask: Find code from cost_centers where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, id, status, salary)\n workforce_data(status, level, id, date)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(amount, level, status, value)\n sales_queue(value, name, date, amount)\nTask: Select salary from personnel_registry where level exists in sales_queue for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, type, name, salary)\n facility_registry(type, status, id, date)\nTask: Find id from personnel_registry where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(id, type, value, name)\n stock_catalog(name, level, amount, id)\nTask: Select code from engagement_log where amount is greater than the count of of salary in stock_catalog for matching code.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(name, salary, value, id)\n cost_centers(date, id, amount, value)\nTask: Find code from sales_registry where code appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(type, value, salary, status)\n stock_catalog(id, name, value, status)\nTask: Retrieve salary from sales_registry whose id is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS ord\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(value, salary, level, amount)\n stocking_sites(status, salary, id, amount)\nTask: Retrieve salary from area_registry whose type is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(value, date, level, status)\n journal_entries(date, value, name, id)\nTask: Select salary from facility_registry where type exists in journal_entries for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(status, amount, salary, name)\n facility_registry(name, id, level, type)\nTask: Find id from sales_queue where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(name, level, id, status)\n sales_queue(date, salary, status, id)\nTask: Find value from stock_catalog where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(status, type, date, level)\n cost_centers(salary, status, date, level)\nTask: Find id from engagement_log where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(level, code, name, date)\n cost_centers(type, name, amount, salary)\nTask: Find amount from facility_registry where level appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(id, salary, name, value)\n sourcing_list(salary, value, date, name)\nTask: Find amount from portfolio_index where type appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(type, level, amount, status)\n engagement_log(level, code, date, salary)\nTask: Select value from sales_queue that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(id, salary, code, type)\n workforce_data(code, type, date, amount)\nTask: Find code from sourcing_list where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(amount, salary, level, name)\n cost_centers(status, code, date, level)\nTask: Find amount from stocking_sites where id appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(id, date, code, salary)\n personnel_registry(type, value, id, level)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(date, status, value, name)\n receivables_log(status, date, salary, name)\nTask: Select code from sourcing_list where type exists in receivables_log for the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(value, amount, status, name)\n personnel_registry(code, id, value, status)\nTask: Find code from stock_catalog where type appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(code, level, value, salary)\n sales_queue(value, type, date, status)\nTask: Find salary from facility_registry where amount exceeds the maximum amount from sales_queue for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE amount > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(code, id, amount, type)\n engagement_log(date, value, type, code)\nTask: Retrieve salary from portfolio_index whose level is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(id, status, amount, code)\n area_registry(amount, id, type, salary)\nTask: Find code from stock_catalog where amount exceeds the count of value from area_registry for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(level, code, status, id)\n engagement_log(amount, level, status, name)\nTask: Find amount from cost_centers where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(name, amount, status, code)\n personnel_registry(amount, value, date, code)\nTask: Select salary from activity_log where amount is greater than the count of of salary in personnel_registry for matching type.\nSQL:", "sql": "SELECT salary FROM activity_log AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(type, id, level, status)\n attribute_groups(id, code, salary, value)\nTask: Select name from sales_registry that have at least one matching row in attribute_groups for the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(level, id, salary, status)\n stock_catalog(level, code, id, date)\nTask: Find code from portfolio_index where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(level, name, amount, type)\n acquisition_log(id, type, level, date)\nTask: Find code from journal_entries where amount exceeds the maximum amount from acquisition_log for the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(type, code, salary, value)\n activity_log(salary, amount, id, type)\nTask: Select value from dispatch_queue that have at least one matching row in activity_log for the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(date, name, salary, status)\n portfolio_index(type, level, id, value)\nTask: Retrieve value from activity_log with value above the COUNT(amount) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(value, code, status, id)\n sales_registry(status, level, amount, name)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(type, value, status, salary)\n stock_catalog(level, id, status, type)\nTask: Select value from acquisition_log where value is greater than the minimum of amount in stock_catalog for matching level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE value > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(type, amount, level, code)\n stocking_sites(level, amount, status, id)\nTask: Select name from workforce_data that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, amount, date, level)\n personnel_registry(type, name, date, status)\nTask: Select salary from dispatch_queue where value is greater than the minimum of salary in personnel_registry for matching status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE value > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(value, status, id, salary)\n facility_registry(id, level, code, name)\nTask: Retrieve id from dispatch_queue whose status is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(name, amount, code, value)\n journal_entries(id, salary, value, amount)\nTask: Find value from area_registry where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, name, status, salary)\n sales_queue(amount, type, code, status)\nTask: Retrieve id from dispatch_queue with amount above the AVG(value) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE amount > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(salary, type, date, id)\n acquisition_log(amount, id, level, code)\nTask: Find code from sales_queue where level appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(date, type, value, id)\n personnel_registry(salary, amount, status, code)\nTask: Find code from stock_catalog where code appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(name, salary, status, amount)\n stocking_sites(salary, type, date, level)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, status, salary, type)\n personnel_registry(date, id, code, salary)\nTask: Retrieve code from stock_catalog whose code is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(name, type, id, amount)\n stocking_sites(date, name, level, type)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, level, salary, status)\n sourcing_list(value, code, date, name)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(type, id, date, salary)\n stock_catalog(code, amount, salary, level)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, type, name, level)\n acquisition_log(value, id, name, date)\nTask: Find value from engagement_log where id appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(type, salary, code, status)\n area_registry(code, value, type, status)\nTask: Retrieve name from cost_centers whose level is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(type, status, name, code)\n sales_registry(value, type, amount, id)\nTask: Find code from sourcing_list where amount exceeds the minimum amount from sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE amount > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(name, level, value, code)\n sourcing_list(name, type, salary, code)\nTask: Select id from stocking_sites where id exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS emp\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(name, code, date, value)\n personnel_registry(amount, name, status, code)\nTask: Select amount from facility_registry where value is greater than the maximum of value in personnel_registry for matching code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(salary, type, amount, name)\n acquisition_log(code, date, type, id)\nTask: Find amount from attribute_groups where id appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(value, level, salary, amount)\n attribute_groups(amount, id, level, code)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(salary, type, id, code)\n dispatch_queue(status, type, amount, code)\nTask: Select salary from sales_registry that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(name, type, salary, code)\n cost_centers(amount, level, date, name)\nTask: Select value from sales_queue that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(name, status, value, salary)\n cost_centers(code, amount, date, name)\nTask: Find salary from activity_log where status appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, type, amount, code)\n acquisition_log(status, level, date, name)\nTask: Retrieve id from dispatch_queue whose id is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS prod\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(amount, date, type, salary)\n sourcing_list(amount, type, name, id)\nTask: Find name from engagement_log where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(type, id, name, value)\n workforce_data(date, level, value, amount)\nTask: Find code from area_registry where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, value, id, code)\n attribute_groups(amount, code, type, status)\nTask: Retrieve amount from acquisition_log with amount above the SUM(value) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE amount > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(date, id, code, salary)\n cost_centers(code, value, amount, salary)\nTask: Retrieve amount from facility_registry whose status is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(date, code, amount, status)\n sourcing_list(value, id, code, status)\nTask: Retrieve amount from attribute_groups whose type is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(code, value, id, amount)\n attribute_groups(salary, value, code, status)\nTask: Select amount from acquisition_log that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(id, name, level, status)\n area_registry(amount, salary, id, value)\nTask: Find code from sales_queue where code appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(value, code, amount, salary)\n sales_queue(salary, type, code, name)\nTask: Find amount from area_registry where id appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(code, value, id, amount)\n workforce_data(type, date, value, code)\nTask: Find value from engagement_log where salary exceeds the count of amount from workforce_data for the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(type, code, level, id)\n area_registry(id, code, value, level)\nTask: Find name from portfolio_index where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(id, salary, status, code)\n personnel_registry(id, status, name, code)\nTask: Retrieve name from sales_queue whose id is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, salary, code, id)\n receivables_log(amount, level, date, code)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in receivables_log sharing the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(status, name, date, value)\n sales_queue(id, type, status, salary)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in sales_queue sharing the same type.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, value, type, code)\n sourcing_list(value, date, salary, id)\nTask: Retrieve code from attribute_groups with salary above the COUNT(salary) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(type, id, code, status)\n personnel_registry(salary, level, code, id)\nTask: Find value from cost_centers where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(amount, salary, status, type)\n workforce_data(id, value, code, level)\nTask: Retrieve amount from sales_queue whose status is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(date, type, level, code)\n area_registry(id, date, code, status)\nTask: Select salary from stocking_sites that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(status, type, level, date)\n area_registry(status, salary, value, level)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(code, date, value, status)\n area_registry(level, salary, code, status)\nTask: Select name from cost_centers that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(name, date, type, level)\n facility_registry(amount, code, id, value)\nTask: Select value from cost_centers where salary is greater than the count of of salary in facility_registry for matching code.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(status, value, level, amount)\n facility_registry(id, name, amount, level)\nTask: Select value from stocking_sites where id exists in facility_registry for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(code, id, salary, status)\n cost_centers(type, value, code, id)\nTask: Retrieve amount from receivables_log with value above the AVG(amount) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(salary, amount, name, code)\n facility_registry(value, date, name, level)\nTask: Find name from workforce_data where value exceeds the average value from facility_registry for the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS inv\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(value, date, type, id)\n activity_log(salary, id, code, value)\nTask: Find code from journal_entries where salary exceeds the total value from activity_log for the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(salary, id, name, level)\n sales_queue(id, type, value, name)\nTask: Retrieve salary from journal_entries whose level is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(id, salary, code, status)\n area_registry(name, status, code, value)\nTask: Find name from portfolio_index where code appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(code, salary, name, id)\n portfolio_index(type, id, level, amount)\nTask: Select amount from workforce_data that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, amount, type, name)\n cost_centers(code, date, name, level)\nTask: Find code from sourcing_list where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(level, value, status, name)\n receivables_log(id, type, level, salary)\nTask: Retrieve name from stock_catalog with amount above the MAX(value) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE amount > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(status, type, id, value)\n stock_catalog(status, value, salary, type)\nTask: Select salary from journal_entries where value is greater than the total of salary in stock_catalog for matching id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS inv\nWHERE value > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(status, type, level, id)\n sales_queue(type, id, date, code)\nTask: Find salary from area_registry where value exceeds the count of value from sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE value > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(type, date, id, name)\n receivables_log(type, id, value, level)\nTask: Retrieve id from workforce_data whose type is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, level, salary, date)\n engagement_log(name, level, status, amount)\nTask: Retrieve salary from dispatch_queue with amount above the AVG(salary) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(status, type, date, value)\n acquisition_log(status, id, date, type)\nTask: Find salary from workforce_data where id appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(level, salary, date, name)\n cost_centers(amount, id, type, value)\nTask: Select code from attribute_groups that have at least one matching row in cost_centers for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(name, type, id, amount)\n stock_catalog(code, status, id, value)\nTask: Retrieve id from portfolio_index with amount above the MIN(salary) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE amount > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(status, level, amount, type)\n journal_entries(id, type, code, level)\nTask: Select amount from sales_queue that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(id, salary, code, amount)\n sales_queue(amount, status, salary, id)\nTask: Select value from journal_entries where code exists in sales_queue for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(date, type, amount, value)\n engagement_log(value, type, id, amount)\nTask: Find code from portfolio_index where amount exceeds the average amount from engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, level, date, code)\n sourcing_list(salary, amount, code, status)\nTask: Find code from portfolio_index where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(date, name, status, level)\n activity_log(status, date, id, name)\nTask: Find name from cost_centers where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(date, id, amount, status)\n acquisition_log(code, name, level, value)\nTask: Retrieve name from activity_log whose status is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(type, code, salary, amount)\n attribute_groups(amount, code, value, status)\nTask: Retrieve value from journal_entries whose type is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(id, level, name, code)\n cost_centers(status, amount, value, level)\nTask: Retrieve id from sales_registry whose type is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(level, name, value, id)\n sourcing_list(id, level, code, name)\nTask: Select salary from dispatch_queue that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(date, amount, status, level)\n journal_entries(value, amount, code, level)\nTask: Find name from receivables_log where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(date, salary, level, status)\n dispatch_queue(code, amount, type, name)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in dispatch_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(amount, type, date, level)\n sales_queue(id, level, amount, type)\nTask: Retrieve amount from sales_registry with value above the COUNT(amount) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE value > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(level, name, amount, type)\n journal_entries(status, type, amount, code)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT salary FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(date, amount, status, code)\n receivables_log(name, level, value, salary)\nTask: Find amount from stocking_sites where amount exceeds the minimum salary from receivables_log for the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE amount > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(code, amount, id, salary)\n dispatch_queue(amount, status, date, value)\nTask: Select amount from stocking_sites that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(status, id, amount, name)\n sales_queue(value, date, amount, level)\nTask: Select id from facility_registry where value is greater than the average of value in sales_queue for matching status.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE value > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(id, amount, value, date)\n journal_entries(id, amount, date, code)\nTask: Find salary from sales_registry where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(id, code, status, name)\n activity_log(value, type, status, amount)\nTask: Retrieve name from engagement_log with value above the AVG(value) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE value > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(code, name, salary, id)\n receivables_log(id, level, name, date)\nTask: Select id from sourcing_list where level exists in receivables_log for the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(salary, status, id, amount)\n personnel_registry(status, date, type, amount)\nTask: Retrieve id from engagement_log whose level is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(id, salary, date, type)\n area_registry(value, salary, amount, id)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(id, amount, date, status)\n attribute_groups(status, type, id, level)\nTask: Find amount from receivables_log where value exceeds the total amount from attribute_groups for the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE value > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(id, type, status, value)\n personnel_registry(type, date, name, level)\nTask: Find salary from attribute_groups where salary exceeds the count of salary from personnel_registry for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(value, code, status, salary)\n activity_log(date, status, name, salary)\nTask: Find value from journal_entries where type appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(id, status, salary, code)\n acquisition_log(value, id, code, amount)\nTask: Retrieve code from activity_log whose id is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(code, status, type, amount)\n engagement_log(amount, type, id, name)\nTask: Select salary from activity_log where amount is greater than the minimum of amount in engagement_log for matching code.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(name, id, date, level)\n sales_registry(id, type, salary, value)\nTask: Select amount from receivables_log that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(name, amount, salary, level)\n facility_registry(name, status, amount, id)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(status, level, date, type)\n area_registry(id, amount, name, type)\nTask: Select amount from portfolio_index that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(level, id, value, amount)\n receivables_log(salary, name, id, value)\nTask: Retrieve code from dispatch_queue whose type is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(level, salary, name, value)\n dispatch_queue(amount, type, salary, name)\nTask: Find name from receivables_log where value exceeds the count of amount from dispatch_queue for the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE value > (\n SELECT COUNT(amount) FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(name, type, level, status)\n activity_log(salary, value, type, code)\nTask: Select code from cost_centers where code exists in activity_log for the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, salary, value, code)\n personnel_registry(salary, value, amount, date)\nTask: Select id from portfolio_index where id exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(code, date, status, amount)\n sales_queue(id, value, name, code)\nTask: Select amount from engagement_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(salary, code, level, name)\n personnel_registry(date, name, type, id)\nTask: Retrieve name from acquisition_log whose code is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(salary, amount, type, level)\n attribute_groups(id, salary, type, status)\nTask: Find id from area_registry where value exceeds the average amount from attribute_groups for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE value > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(type, name, id, date)\n personnel_registry(status, type, id, level)\nTask: Select amount from portfolio_index where id exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, code, level, name)\n portfolio_index(code, level, type, amount)\nTask: Find amount from personnel_registry where type appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS mgr\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(status, amount, salary, code)\n attribute_groups(status, amount, code, date)\nTask: Find id from engagement_log where code appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(date, code, id, amount)\n sourcing_list(amount, level, status, type)\nTask: Find name from receivables_log where status appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(level, date, type, id)\n sales_registry(status, salary, id, level)\nTask: Select name from receivables_log where amount is greater than the count of of value in sales_registry for matching code.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(id, status, level, code)\n cost_centers(type, level, status, name)\nTask: Find salary from journal_entries where id appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(type, value, code, id)\n receivables_log(date, value, amount, type)\nTask: Find code from journal_entries where level appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(date, value, name, amount)\n journal_entries(value, salary, type, amount)\nTask: Find name from portfolio_index where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(type, code, id, value)\n engagement_log(amount, salary, date, code)\nTask: Find code from sourcing_list where value exceeds the minimum salary from engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE value > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(name, code, amount, status)\n activity_log(value, level, status, code)\nTask: Select salary from personnel_registry where level exists in activity_log for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(date, value, level, status)\n stocking_sites(id, level, date, code)\nTask: Select amount from sales_queue where code exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(amount, name, level, salary)\n sales_queue(salary, date, level, id)\nTask: Select code from workforce_data where code exists in sales_queue for the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(amount, level, salary, status)\n engagement_log(amount, status, name, code)\nTask: Select id from facility_registry where code exists in engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, name, type, status)\n dispatch_queue(date, id, salary, status)\nTask: Find amount from engagement_log where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, id, value, code)\n stock_catalog(name, id, salary, type)\nTask: Select code from attribute_groups where level exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(name, amount, value, type)\n sourcing_list(level, salary, code, value)\nTask: Retrieve name from acquisition_log whose status is found in sourcing_list rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(status, date, level, type)\n attribute_groups(code, date, value, salary)\nTask: Select id from cost_centers where salary is greater than the average of salary in attribute_groups for matching level.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(level, id, type, date)\n portfolio_index(amount, status, value, type)\nTask: Find name from engagement_log where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, salary, name, type)\n portfolio_index(name, type, code, date)\nTask: Retrieve value from stocking_sites whose code is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, status, type, amount)\n facility_registry(id, name, date, value)\nTask: Select salary from dispatch_queue where status exists in facility_registry for the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(name, date, status, level)\n facility_registry(salary, id, code, level)\nTask: Select name from stock_catalog where status exists in facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(type, status, value, date)\n area_registry(level, date, status, value)\nTask: Retrieve salary from stocking_sites with amount above the SUM(salary) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(level, code, status, id)\n dispatch_queue(status, level, salary, id)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(name, level, amount, date)\n personnel_registry(amount, type, code, value)\nTask: Select salary from sourcing_list that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(type, amount, code, id)\n workforce_data(date, level, code, value)\nTask: Find name from area_registry where id appears in workforce_data entries with matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(code, value, status, type)\n receivables_log(code, amount, type, date)\nTask: Retrieve amount from portfolio_index with amount above the SUM(salary) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, id, code, salary)\n sales_queue(salary, amount, status, name)\nTask: Find name from stock_catalog where status appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(status, value, amount, type)\n portfolio_index(amount, id, salary, name)\nTask: Retrieve id from personnel_registry with salary above the MIN(salary) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM portfolio_index AS act\n WHERE act.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(id, amount, status, salary)\n facility_registry(date, amount, type, status)\nTask: Select value from activity_log that have at least one matching row in facility_registry for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(date, status, type, amount)\n dispatch_queue(salary, name, id, value)\nTask: Select amount from acquisition_log that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(value, type, status, amount)\n workforce_data(amount, salary, code, date)\nTask: Select salary from attribute_groups where status exists in workforce_data for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(level, status, code, type)\n stocking_sites(id, status, date, value)\nTask: Find name from receivables_log where code appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(amount, code, value, salary)\n journal_entries(name, value, level, id)\nTask: Find amount from cost_centers where type appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(level, name, type, status)\n sourcing_list(type, date, status, amount)\nTask: Retrieve id from facility_registry whose code is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(name, value, level, code)\n journal_entries(id, code, value, date)\nTask: Select name from facility_registry where id exists in journal_entries for the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(amount, code, name, salary)\n cost_centers(date, level, code, status)\nTask: Select code from journal_entries where value is greater than the minimum of salary in cost_centers for matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE value > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(salary, date, type, level)\n dispatch_queue(name, value, salary, type)\nTask: Select salary from area_registry that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(value, type, level, name)\n cost_centers(status, type, id, amount)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(level, code, status, value)\n dispatch_queue(id, level, date, code)\nTask: Select amount from sales_registry that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(level, amount, type, date)\n sourcing_list(level, id, value, status)\nTask: Retrieve amount from sales_registry whose status is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(level, code, value, name)\n workforce_data(id, value, amount, type)\nTask: Select value from attribute_groups where salary is greater than the average of amount in workforce_data for matching level.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(amount, date, id, salary)\n sales_registry(name, amount, level, code)\nTask: Find id from portfolio_index where type appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(amount, date, type, salary)\n personnel_registry(salary, name, type, date)\nTask: Select name from workforce_data where value is greater than the maximum of value in personnel_registry for matching type.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(code, type, value, name)\n receivables_log(id, value, salary, date)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(id, status, salary, level)\n dispatch_queue(date, id, amount, level)\nTask: Retrieve salary from sales_registry whose type is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, date, level, code)\n workforce_data(id, amount, value, date)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(name, id, level, salary)\n portfolio_index(value, name, status, id)\nTask: Select value from activity_log that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(type, name, level, value)\n portfolio_index(date, id, code, type)\nTask: Select amount from cost_centers that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(value, amount, status, level)\n sales_registry(id, code, name, value)\nTask: Select amount from stocking_sites where value is greater than the count of of value in sales_registry for matching level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE value > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(name, date, status, value)\n activity_log(code, name, salary, type)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, code, date, status)\n receivables_log(level, status, value, name)\nTask: Select code from sourcing_list where status exists in receivables_log for the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(level, id, code, date)\n dispatch_queue(amount, id, date, level)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(level, code, name, value)\n facility_registry(value, date, type, status)\nTask: Retrieve salary from journal_entries with amount above the AVG(salary) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS inv\nWHERE amount > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(amount, code, date, name)\n sales_queue(date, type, salary, value)\nTask: Retrieve name from attribute_groups that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(id, level, amount, type)\n sourcing_list(date, type, value, salary)\nTask: Find amount from portfolio_index where id appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(name, id, type, status)\n cost_centers(amount, type, salary, date)\nTask: Select name from area_registry where amount is greater than the count of of salary in cost_centers for matching code.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(code, amount, type, level)\n cost_centers(id, level, date, salary)\nTask: Retrieve salary from sales_registry with value above the AVG(amount) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(type, salary, name, status)\n sourcing_list(code, level, name, type)\nTask: Retrieve code from area_registry with amount above the SUM(amount) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(value, amount, id, level)\n journal_entries(salary, amount, value, type)\nTask: Retrieve amount from attribute_groups whose level is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(level, salary, type, date)\n area_registry(status, id, amount, salary)\nTask: Retrieve salary from cost_centers with amount above the MIN(amount) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(status, amount, code, date)\n sourcing_list(status, code, name, amount)\nTask: Select name from attribute_groups where value is greater than the total of amount in sourcing_list for matching status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE value > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(value, code, salary, date)\n personnel_registry(level, id, salary, amount)\nTask: Select value from acquisition_log where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(code, level, value, name)\n portfolio_index(id, amount, type, code)\nTask: Find salary from workforce_data where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(code, date, salary, level)\n sourcing_list(code, date, type, salary)\nTask: Select id from journal_entries where salary is greater than the total of salary in sourcing_list for matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(code, name, id, type)\n facility_registry(salary, status, name, code)\nTask: Find name from attribute_groups where id appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(id, level, name, salary)\n facility_registry(status, level, name, value)\nTask: Retrieve name from journal_entries with amount above the MIN(value) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE amount > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(code, salary, id, type)\n portfolio_index(value, date, status, id)\nTask: Find name from area_registry where id appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(salary, amount, name, status)\n workforce_data(status, date, type, amount)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in workforce_data sharing the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(status, salary, level, amount)\n sales_registry(code, level, date, name)\nTask: Find amount from acquisition_log where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(amount, status, salary, value)\n personnel_registry(date, value, type, amount)\nTask: Select amount from cost_centers that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(status, level, amount, code)\n attribute_groups(code, amount, name, status)\nTask: Find id from cost_centers where value exceeds the total value from attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE value > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(value, name, level, id)\n personnel_registry(value, name, amount, level)\nTask: Retrieve name from receivables_log whose type is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, type, id, code)\n sales_queue(code, id, level, name)\nTask: Find salary from attribute_groups where salary exceeds the minimum salary from sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(code, salary, level, name)\n activity_log(status, date, type, salary)\nTask: Retrieve value from area_registry with salary above the MIN(value) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS usr\nWHERE salary > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(id, salary, level, code)\n workforce_data(name, amount, code, value)\nTask: Retrieve salary from activity_log whose type is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM activity_log AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(id, level, salary, name)\n workforce_data(amount, status, salary, type)\nTask: Find id from cost_centers where salary exceeds the average salary from workforce_data for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE salary > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(name, value, amount, salary)\n receivables_log(value, id, status, name)\nTask: Retrieve value from acquisition_log that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(salary, amount, code, type)\n dispatch_queue(type, salary, status, amount)\nTask: Select value from stocking_sites where status exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(value, amount, date, name)\n activity_log(id, level, type, value)\nTask: Select salary from receivables_log where salary is greater than the minimum of amount in activity_log for matching code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(name, value, level, amount)\n facility_registry(type, amount, value, status)\nTask: Select amount from cost_centers where value is greater than the count of of salary in facility_registry for matching code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE value > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(type, status, value, amount)\n sales_registry(amount, date, value, level)\nTask: Retrieve id from receivables_log whose id is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(salary, code, id, name)\n receivables_log(level, amount, status, code)\nTask: Retrieve code from area_registry that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(code, value, id, amount)\n stocking_sites(type, value, name, salary)\nTask: Select id from cost_centers where level exists in stocking_sites for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(amount, id, date, name)\n cost_centers(salary, status, code, amount)\nTask: Retrieve salary from journal_entries with salary above the SUM(amount) of cost_centers rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(id, name, value, type)\n area_registry(id, salary, date, code)\nTask: Find code from personnel_registry where value exceeds the average value from area_registry for the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS ord\nWHERE value > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(level, date, code, value)\n stocking_sites(salary, value, id, level)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(date, id, value, amount)\n area_registry(id, amount, type, name)\nTask: Find name from attribute_groups where code appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(value, amount, type, level)\n portfolio_index(level, type, amount, id)\nTask: Select name from sourcing_list where type exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(salary, date, id, name)\n engagement_log(level, salary, type, code)\nTask: Find amount from sourcing_list where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(status, code, id, date)\n sourcing_list(amount, status, level, date)\nTask: Retrieve salary from sales_queue whose level is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(amount, salary, code, value)\n engagement_log(value, status, id, type)\nTask: Select amount from workforce_data where type exists in engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(code, name, salary, date)\n activity_log(id, code, amount, value)\nTask: Find value from sourcing_list where value exceeds the count of value from activity_log for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE value > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(value, status, level, name)\n dispatch_queue(type, name, code, date)\nTask: Retrieve id from stock_catalog that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(amount, id, type, value)\n sales_queue(code, level, status, value)\nTask: Select salary from dispatch_queue that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(salary, code, value, type)\n engagement_log(id, value, type, amount)\nTask: Retrieve salary from portfolio_index whose type is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(salary, id, code, name)\n activity_log(value, amount, salary, code)\nTask: Retrieve value from cost_centers whose code is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(id, status, type, date)\n acquisition_log(amount, value, salary, name)\nTask: Retrieve id from area_registry that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(date, code, id, amount)\n receivables_log(status, level, code, salary)\nTask: Select id from personnel_registry that have at least one matching row in receivables_log for the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(status, code, value, name)\n sales_registry(value, date, status, type)\nTask: Select salary from personnel_registry that have at least one matching row in sales_registry for the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(level, date, amount, status)\n sales_queue(code, salary, level, amount)\nTask: Find amount from stocking_sites where amount exceeds the count of amount from sales_queue for the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "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}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(level, amount, type, name)\n dispatch_queue(type, amount, salary, code)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(name, status, id, amount)\n stock_catalog(code, id, name, level)\nTask: Select amount from journal_entries where status exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(status, type, salary, date)\n engagement_log(name, salary, date, type)\nTask: Find id from sales_registry where status appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(type, code, value, status)\n activity_log(name, salary, code, level)\nTask: Select amount from portfolio_index where level exists in activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(amount, id, level, date)\n acquisition_log(code, type, name, amount)\nTask: Find id from engagement_log where salary exceeds the average value from acquisition_log for the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE salary > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(code, status, amount, value)\n sourcing_list(type, status, date, salary)\nTask: Select id from sales_queue that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(id, name, date, value)\n activity_log(value, amount, name, date)\nTask: Select name from area_registry that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(amount, type, id, status)\n attribute_groups(status, type, level, salary)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(code, amount, level, name)\n stock_catalog(type, name, level, salary)\nTask: Select amount from engagement_log that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, name, id, code)\n journal_entries(salary, id, amount, code)\nTask: Select code from dispatch_queue that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, code, type, name)\n portfolio_index(date, amount, id, level)\nTask: Find salary from attribute_groups where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(name, id, date, salary)\n personnel_registry(code, status, salary, name)\nTask: Retrieve amount from stock_catalog whose level is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(type, date, level, status)\n facility_registry(id, status, code, date)\nTask: Retrieve code from workforce_data with value above the MIN(value) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE value > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(code, status, value, level)\n stock_catalog(id, level, salary, name)\nTask: Find id from sourcing_list where type appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(date, name, type, salary)\n workforce_data(type, level, date, name)\nTask: Find code from stock_catalog where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(type, code, name, salary)\n stock_catalog(date, value, amount, level)\nTask: Find amount from sales_queue where id appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(salary, date, type, name)\n sales_registry(date, code, amount, name)\nTask: Select code from facility_registry that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(code, amount, status, level)\n area_registry(amount, salary, level, name)\nTask: Retrieve code from sales_registry with salary above the SUM(amount) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, amount, name, salary)\n cost_centers(type, code, status, amount)\nTask: Select amount from sourcing_list where amount is greater than the average of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(status, value, level, amount)\n attribute_groups(date, amount, id, name)\nTask: Find code from portfolio_index where a matching record exists in attribute_groups with the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(date, value, type, id)\n sourcing_list(level, date, salary, name)\nTask: Retrieve name from attribute_groups with value above the AVG(salary) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE value > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(value, status, id, date)\n sourcing_list(amount, value, salary, name)\nTask: Select salary from personnel_registry where value is greater than the maximum of value in sourcing_list for matching code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(name, amount, date, salary)\n personnel_registry(id, date, code, amount)\nTask: Select amount from workforce_data where amount is greater than the total of amount in personnel_registry for matching type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(level, code, status, value)\n sales_queue(value, amount, id, date)\nTask: Retrieve amount from personnel_registry with salary above the SUM(value) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE salary > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(value, level, code, amount)\n workforce_data(id, type, code, amount)\nTask: Find salary from acquisition_log where level appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(amount, id, level, date)\n cost_centers(name, id, date, value)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(amount, id, name, status)\n personnel_registry(name, date, level, amount)\nTask: Select code from area_registry where amount is greater than the average of value in personnel_registry for matching code.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE amount > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(id, value, status, salary)\n engagement_log(id, value, name, level)\nTask: Select salary from sales_queue where value is greater than the average of value in engagement_log for matching level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE value > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(status, date, name, code)\n journal_entries(salary, value, date, level)\nTask: Find value from workforce_data where amount exceeds the average amount from journal_entries for the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(value, salary, name, type)\n area_registry(name, level, code, date)\nTask: Retrieve code from journal_entries with amount above the MAX(amount) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(status, code, date, level)\n acquisition_log(name, date, amount, value)\nTask: Retrieve salary from sourcing_list whose status is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(code, salary, amount, value)\n cost_centers(date, code, name, level)\nTask: Retrieve value from receivables_log whose id is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(code, level, id, salary)\n portfolio_index(amount, name, type, date)\nTask: Retrieve id from sales_queue whose id is found in portfolio_index rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(type, date, amount, level)\n acquisition_log(amount, code, id, date)\nTask: Select name from journal_entries where salary is greater than the maximum of salary in acquisition_log for matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(level, amount, status, date)\n cost_centers(date, name, id, type)\nTask: Retrieve id from engagement_log with salary above the SUM(amount) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(name, status, value, code)\n facility_registry(level, date, amount, id)\nTask: Find amount from engagement_log where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(code, level, salary, name)\n receivables_log(level, amount, code, salary)\nTask: Find code from stock_catalog where salary exceeds the minimum amount from receivables_log for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE salary > (\n SELECT MIN(amount) FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(name, status, level, salary)\n receivables_log(value, type, code, status)\nTask: Select id from acquisition_log where id exists in receivables_log for the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, name, value, status)\n stock_catalog(code, value, status, id)\nTask: Select amount from attribute_groups where amount is greater than the maximum of value in stock_catalog for matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(value, id, code, date)\n dispatch_queue(status, salary, code, type)\nTask: Select code from stock_catalog where id exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(status, amount, id, level)\n dispatch_queue(amount, date, status, type)\nTask: Retrieve amount from facility_registry with amount above the SUM(value) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE amount > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, level, value, salary)\n sales_registry(level, type, amount, id)\nTask: Retrieve id from attribute_groups whose status is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS mgr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(id, type, date, name)\n workforce_data(status, type, amount, value)\nTask: Find value from sales_queue where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(name, type, code, status)\n area_registry(name, amount, status, type)\nTask: Find amount from engagement_log where id appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS mgr\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(code, value, name, date)\n sourcing_list(type, id, status, amount)\nTask: Select amount from acquisition_log where value is greater than the count of of value in sourcing_list for matching level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS usr\nWHERE value > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(name, level, salary, id)\n receivables_log(salary, date, code, type)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(status, value, name, id)\n journal_entries(status, value, id, date)\nTask: Find salary from attribute_groups where code appears in journal_entries entries with matching code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(id, name, type, amount)\n attribute_groups(type, status, date, level)\nTask: Select name from workforce_data where salary is greater than the average of value in attribute_groups for matching code.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE salary > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(amount, level, date, salary)\n attribute_groups(level, id, amount, status)\nTask: Retrieve id from area_registry with value above the MIN(salary) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE value > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(id, type, amount, status)\n sourcing_list(code, status, value, amount)\nTask: Select id from attribute_groups where level exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS prod\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(code, date, type, status)\n portfolio_index(code, name, value, date)\nTask: Find code from receivables_log where id appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT code FROM receivables_log AS ord\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(code, date, level, id)\n sales_queue(amount, type, level, id)\nTask: Select id from journal_entries where value is greater than the total of amount in sales_queue for matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE value > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "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}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(value, salary, type, amount)\n attribute_groups(salary, date, type, amount)\nTask: Find amount from receivables_log where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(id, date, status, code)\n stock_catalog(name, level, type, status)\nTask: Find amount from dispatch_queue where value exceeds the minimum salary from stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE value > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(id, amount, status, level)\n receivables_log(amount, level, status, value)\nTask: Select code from acquisition_log where code exists in receivables_log for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(level, name, value, type)\n engagement_log(id, level, status, name)\nTask: Select id from portfolio_index where level exists in engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS dept\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(type, code, id, salary)\n stocking_sites(salary, type, code, date)\nTask: Retrieve value from receivables_log with amount above the MIN(value) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE amount > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(type, amount, status, code)\n stock_catalog(type, code, amount, name)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(date, status, type, code)\n receivables_log(level, amount, name, date)\nTask: Find id from sourcing_list where level appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(value, name, salary, status)\n attribute_groups(name, code, value, date)\nTask: Retrieve code from area_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(type, status, salary, code)\n attribute_groups(amount, salary, code, status)\nTask: Select amount from stocking_sites where amount is greater than the average of salary in attribute_groups for matching code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(date, code, salary, status)\n stocking_sites(type, salary, value, name)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(amount, type, code, status)\n facility_registry(name, type, value, status)\nTask: Select amount from sales_queue that have at least one matching row in facility_registry for the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(value, level, status, date)\n workforce_data(name, salary, level, value)\nTask: Select value from portfolio_index that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(name, date, id, salary)\n receivables_log(date, type, level, amount)\nTask: Retrieve code from attribute_groups with salary above the MAX(value) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE salary > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, type, date, code)\n attribute_groups(type, id, name, amount)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(type, status, amount, level)\n journal_entries(salary, value, type, code)\nTask: Find name from stocking_sites where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(id, amount, name, level)\n portfolio_index(status, type, value, name)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(value, type, id, salary)\n sales_registry(name, level, salary, id)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(level, status, type, value)\n receivables_log(type, code, date, level)\nTask: Select name from cost_centers that have at least one matching row in receivables_log for the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(date, code, value, name)\n sourcing_list(status, name, date, amount)\nTask: Retrieve amount from journal_entries with amount above the MAX(value) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE amount > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(id, value, level, salary)\n area_registry(id, value, date, code)\nTask: Find code from portfolio_index where amount exceeds the average salary from area_registry for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(date, salary, status, level)\n cost_centers(date, type, value, id)\nTask: Select amount from activity_log that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(name, amount, code, level)\n engagement_log(value, salary, amount, code)\nTask: Select amount from journal_entries where level exists in engagement_log for the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(type, amount, code, level)\n journal_entries(code, value, name, type)\nTask: Select id from engagement_log where status exists in journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(id, value, type, level)\n sourcing_list(type, value, date, code)\nTask: Retrieve code from portfolio_index whose level is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(id, date, salary, value)\n stocking_sites(name, code, value, id)\nTask: Select id from workforce_data where value is greater than the total of amount in stocking_sites for matching type.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE value > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(status, id, date, type)\n stocking_sites(code, id, value, type)\nTask: Find name from activity_log where status appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(name, level, status, date)\n personnel_registry(code, amount, type, date)\nTask: Retrieve code from journal_entries that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(code, status, value, name)\n receivables_log(value, name, salary, status)\nTask: Select code from facility_registry where type exists in receivables_log for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(status, salary, type, name)\n dispatch_queue(id, amount, date, level)\nTask: Select salary from workforce_data that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(status, level, salary, amount)\n stock_catalog(amount, name, id, salary)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(value, name, date, code)\n dispatch_queue(level, salary, value, code)\nTask: Retrieve name from activity_log whose type is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(status, code, level, date)\n attribute_groups(salary, level, code, status)\nTask: Find code from stock_catalog where level appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(id, date, name, status)\n sourcing_list(value, level, salary, date)\nTask: Select value from facility_registry where value is greater than the maximum of value in sourcing_list for matching type.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(amount, status, salary, name)\n activity_log(name, salary, status, level)\nTask: Find code from engagement_log where level appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(level, name, id, value)\n activity_log(level, date, code, type)\nTask: Find amount from attribute_groups where type appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(type, date, code, status)\n personnel_registry(value, status, id, salary)\nTask: Select amount from engagement_log where status exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(code, level, status, date)\n sourcing_list(value, id, code, amount)\nTask: Find name from receivables_log where amount exceeds the maximum value from sourcing_list for the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE amount > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(type, code, amount, id)\n sales_queue(value, code, amount, name)\nTask: Select salary from activity_log where level exists in sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(type, value, level, salary)\n sales_registry(value, type, code, name)\nTask: Retrieve id from dispatch_queue whose level is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(value, id, date, code)\n portfolio_index(code, amount, status, salary)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(id, status, level, amount)\n activity_log(id, name, date, level)\nTask: Select amount from workforce_data that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(code, name, value, salary)\n acquisition_log(value, date, status, salary)\nTask: Select name from journal_entries where id exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(id, salary, amount, name)\n activity_log(code, salary, level, value)\nTask: Select amount from stocking_sites where value is greater than the minimum of value in activity_log for matching code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE value > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, name, status, code)\n workforce_data(code, status, id, date)\nTask: Select value from sourcing_list where salary is greater than the count of of amount in workforce_data for matching level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(level, value, date, type)\n dispatch_queue(code, name, amount, date)\nTask: Retrieve salary from sales_queue whose type is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(amount, salary, type, level)\n area_registry(type, id, value, date)\nTask: Select id from sales_queue where id exists in area_registry for the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(status, amount, value, id)\n sales_queue(status, value, id, name)\nTask: Find code from personnel_registry where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(status, type, id, value)\n cost_centers(amount, salary, code, type)\nTask: Retrieve id from receivables_log that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(name, id, date, type)\n personnel_registry(value, salary, level, name)\nTask: Select value from stock_catalog where amount is greater than the count of of value in personnel_registry for matching id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(date, name, salary, status)\n facility_registry(date, code, salary, name)\nTask: Find amount from activity_log where status appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(level, status, amount, id)\n journal_entries(value, status, code, date)\nTask: Find amount from workforce_data where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(name, value, level, salary)\n attribute_groups(salary, id, amount, type)\nTask: Find amount from cost_centers where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, value, salary, level)\n personnel_registry(type, name, date, amount)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(level, code, date, status)\n attribute_groups(name, level, amount, date)\nTask: Find id from area_registry where type appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(name, id, amount, value)\n sourcing_list(status, level, id, code)\nTask: Select name from acquisition_log where type exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(status, id, code, level)\n sales_registry(id, value, date, salary)\nTask: Select code from stocking_sites where level exists in sales_registry for the same code.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(date, value, amount, type)\n stocking_sites(name, type, salary, date)\nTask: Select amount from portfolio_index where amount is greater than the total of amount in stocking_sites for matching code.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE amount > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(amount, value, id, date)\n sourcing_list(value, id, level, status)\nTask: Find name from engagement_log where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(level, value, date, name)\n sales_queue(name, amount, salary, level)\nTask: Retrieve value from portfolio_index with value above the COUNT(salary) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(type, date, id, value)\n area_registry(salary, name, status, type)\nTask: Retrieve value from journal_entries whose type is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(value, name, id, amount)\n area_registry(status, salary, level, date)\nTask: Find amount from acquisition_log where value exceeds the average amount from area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(status, salary, type, level)\n portfolio_index(value, type, id, status)\nTask: Select code from cost_centers where level exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(date, code, salary, type)\n journal_entries(amount, type, salary, status)\nTask: Select amount from engagement_log where code exists in journal_entries for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(value, id, salary, code)\n sales_queue(salary, amount, value, status)\nTask: Retrieve name from dispatch_queue with amount above the AVG(amount) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE amount > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(value, status, amount, level)\n stock_catalog(amount, value, level, name)\nTask: Find id from sales_registry where a matching record exists in stock_catalog with the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(value, type, salary, date)\n sales_queue(type, value, date, salary)\nTask: Find code from personnel_registry where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(code, id, salary, name)\n stocking_sites(name, amount, type, salary)\nTask: Select value from activity_log where code exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(salary, value, date, level)\n receivables_log(name, level, type, code)\nTask: Find id from journal_entries where status appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(name, code, amount, level)\n dispatch_queue(salary, code, status, type)\nTask: Find name from activity_log where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(status, name, salary, level)\n sourcing_list(salary, type, date, status)\nTask: Retrieve value from workforce_data whose level is found in sourcing_list rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(type, value, date, status)\n stock_catalog(amount, salary, type, level)\nTask: Find code from portfolio_index where code appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(salary, value, code, level)\n sourcing_list(amount, name, id, code)\nTask: Select amount from workforce_data that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(salary, status, value, date)\n cost_centers(status, level, value, salary)\nTask: Find name from engagement_log where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(status, level, date, code)\n journal_entries(type, level, date, salary)\nTask: Retrieve salary from engagement_log whose status is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(type, code, level, name)\n facility_registry(level, value, type, name)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(salary, code, amount, date)\n acquisition_log(amount, id, code, type)\nTask: Find salary from workforce_data where status appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(value, code, salary, status)\n attribute_groups(date, status, name, salary)\nTask: Find value from sourcing_list where status appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, value, date, type)\n stock_catalog(id, amount, status, date)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(status, name, level, id)\n journal_entries(level, status, salary, date)\nTask: Select amount from stocking_sites where salary is greater than the minimum of salary in journal_entries for matching level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(type, status, salary, name)\n sales_registry(type, level, code, value)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(type, value, salary, amount)\n sourcing_list(id, code, type, salary)\nTask: Find id from attribute_groups where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(status, date, value, salary)\n stock_catalog(code, type, status, date)\nTask: Select salary from stocking_sites where salary is greater than the count of of salary in stock_catalog for matching level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(amount, id, salary, name)\n engagement_log(type, salary, value, amount)\nTask: Find amount from sales_registry where status appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: usr)(name, status, type, salary)\n sales_registry(level, date, name, code)\nTask: Retrieve amount from personnel_registry with value above the AVG(salary) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE value > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(id, date, type, salary)\n stock_catalog(amount, code, salary, name)\nTask: Retrieve code from workforce_data whose type is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(date, code, salary, value)\n personnel_registry(id, salary, status, date)\nTask: Select id from receivables_log where salary is greater than the count of of salary in personnel_registry for matching status.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(status, id, level, value)\n stock_catalog(id, level, type, code)\nTask: Retrieve id from sourcing_list whose code is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS ord\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(level, salary, name, value)\n personnel_registry(level, code, date, salary)\nTask: Select name from attribute_groups where id exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(level, id, status, amount)\n sourcing_list(status, level, date, code)\nTask: Find name from attribute_groups where salary exceeds the maximum salary from sourcing_list for the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(type, status, name, code)\n activity_log(salary, status, code, id)\nTask: Select id from stock_catalog where salary is greater than the total of amount in activity_log for matching code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(status, date, id, value)\n sales_queue(id, value, status, amount)\nTask: Select amount from facility_registry where status exists in sales_queue for the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(status, amount, date, id)\n journal_entries(name, id, value, date)\nTask: Retrieve code from sales_registry with value above the COUNT(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE value > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(level, salary, amount, name)\n sales_queue(salary, type, date, status)\nTask: Find salary from stocking_sites where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(type, level, name, value)\n portfolio_index(type, amount, status, name)\nTask: Retrieve value from dispatch_queue whose status is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS dept\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(level, code, salary, type)\n sales_queue(date, name, value, id)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(date, status, salary, id)\n dispatch_queue(name, level, value, salary)\nTask: Select name from receivables_log where amount is greater than the maximum of value in dispatch_queue for matching type.\nSQL:", "sql": "SELECT name FROM receivables_log AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(salary, amount, id, type)\n stocking_sites(date, type, salary, amount)\nTask: Select name from receivables_log where salary is greater than the average of salary in stocking_sites for matching status.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE salary > (\n SELECT AVG(salary) FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(amount, level, status, type)\n cost_centers(salary, amount, code, date)\nTask: Find amount from sales_queue where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(level, name, id, type)\n receivables_log(id, status, type, date)\nTask: Retrieve salary from activity_log with amount above the SUM(value) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE amount > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(id, salary, amount, date)\n sourcing_list(id, type, salary, status)\nTask: Select code from sales_queue where code exists in sourcing_list for the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(value, code, salary, id)\n receivables_log(name, date, level, value)\nTask: Retrieve salary from attribute_groups with salary above the SUM(value) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE salary > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(code, value, type, id)\n portfolio_index(amount, name, value, level)\nTask: Select value from journal_entries where level exists in portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(date, amount, value, id)\n attribute_groups(code, status, id, amount)\nTask: Select value from personnel_registry that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(name, id, amount, status)\n facility_registry(level, id, date, type)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(date, amount, id, name)\n attribute_groups(salary, value, amount, level)\nTask: Retrieve value from sales_queue with amount above the COUNT(amount) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(value, type, id, name)\n facility_registry(type, level, id, status)\nTask: Find amount from stocking_sites where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(value, date, level, name)\n portfolio_index(name, code, value, type)\nTask: Retrieve salary from engagement_log whose status is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(type, status, amount, date)\n stock_catalog(salary, date, amount, name)\nTask: Select id from journal_entries that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(level, salary, amount, code)\n activity_log(date, level, code, amount)\nTask: Select name from portfolio_index where level exists in activity_log for the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(value, date, salary, level)\n sales_registry(status, level, amount, id)\nTask: Select amount from cost_centers that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(code, id, level, value)\n personnel_registry(date, type, name, status)\nTask: Select amount from dispatch_queue where id exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(value, id, status, level)\n receivables_log(salary, level, name, code)\nTask: Select amount from activity_log that have at least one matching row in receivables_log for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(level, code, name, salary)\n sales_registry(id, value, amount, level)\nTask: Find name from acquisition_log where status appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, date, value, type)\n receivables_log(status, level, amount, value)\nTask: Select amount from stock_catalog where salary is greater than the maximum of value in receivables_log for matching type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE salary > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(status, name, level, salary)\n dispatch_queue(code, name, id, level)\nTask: Select amount from activity_log where status exists in dispatch_queue for the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(id, status, salary, amount)\n activity_log(value, salary, date, status)\nTask: Retrieve code from attribute_groups whose code is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(salary, code, id, type)\n dispatch_queue(amount, status, code, type)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(type, code, level, date)\n portfolio_index(id, type, code, date)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in portfolio_index sharing the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, code, value, status)\n journal_entries(salary, value, date, level)\nTask: Select code from sourcing_list that have at least one matching row in journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(code, name, value, level)\n sales_registry(status, name, value, date)\nTask: Retrieve salary from journal_entries that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, status, value, level)\n dispatch_queue(salary, code, type, value)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(level, date, name, value)\n engagement_log(id, code, type, value)\nTask: Find amount from acquisition_log where salary exceeds the minimum value from engagement_log for the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE salary > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(level, name, id, status)\n area_registry(amount, date, name, type)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, status, code, id)\n sales_queue(level, type, date, value)\nTask: Retrieve name from dispatch_queue with value above the MIN(salary) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE value > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(level, value, status, amount)\n area_registry(level, salary, value, status)\nTask: Find amount from journal_entries where code appears in area_registry entries with matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(id, date, amount, value)\n attribute_groups(id, level, date, salary)\nTask: Select amount from acquisition_log where value is greater than the maximum of amount in attribute_groups for matching level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(id, salary, code, amount)\n attribute_groups(id, status, name, amount)\nTask: Find amount from facility_registry where level appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS prod\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(code, value, id, type)\n cost_centers(type, date, id, value)\nTask: Find amount from area_registry where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(code, type, id, salary)\n sourcing_list(status, value, id, code)\nTask: Retrieve amount from workforce_data whose id is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(id, code, date, value)\n cost_centers(salary, amount, level, status)\nTask: Retrieve code from engagement_log with salary above the MIN(amount) of cost_centers rows sharing the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(type, code, level, name)\n sales_queue(type, date, code, value)\nTask: Retrieve id from facility_registry with amount above the AVG(salary) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(id, code, name, status)\n facility_registry(level, name, code, amount)\nTask: Retrieve value from dispatch_queue with value above the SUM(salary) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE value > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(value, id, level, date)\n sales_registry(date, status, type, name)\nTask: Find value from acquisition_log where id appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(status, date, id, code)\n cost_centers(value, type, amount, code)\nTask: Find value from personnel_registry where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(amount, name, level, salary)\n stock_catalog(status, id, salary, level)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in stock_catalog sharing the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(salary, type, status, name)\n activity_log(date, type, salary, amount)\nTask: Find code from workforce_data where id appears in activity_log entries with matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, value, level, date)\n personnel_registry(status, id, type, date)\nTask: Select value from sourcing_list that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(type, date, salary, code)\n receivables_log(status, level, id, amount)\nTask: Retrieve name from acquisition_log with value above the AVG(value) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE value > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(status, date, value, type)\n attribute_groups(date, level, value, status)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(id, salary, amount, code)\n stocking_sites(salary, code, id, date)\nTask: Select salary from sourcing_list that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, date, status, code)\n facility_registry(amount, type, name, date)\nTask: Select name from stocking_sites where salary is greater than the average of amount in facility_registry for matching type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(status, type, name, amount)\n cost_centers(type, amount, name, salary)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, level, name, code)\n engagement_log(salary, type, date, level)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(date, status, code, id)\n portfolio_index(value, amount, name, date)\nTask: Retrieve value from engagement_log with salary above the SUM(value) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, level, name, code)\n sales_queue(status, value, code, amount)\nTask: Find code from dispatch_queue where status appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(name, type, id, level)\n activity_log(level, value, code, amount)\nTask: Find id from sales_registry where code appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(code, level, id, name)\n stock_catalog(value, id, type, level)\nTask: Retrieve id from cost_centers with value above the COUNT(amount) of stock_catalog rows sharing the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(date, salary, code, level)\n cost_centers(type, status, code, id)\nTask: Find name from attribute_groups where salary exceeds the total amount from cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(level, type, status, id)\n stocking_sites(code, type, date, name)\nTask: Select code from sales_registry where salary is greater than the average of value in stocking_sites for matching status.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE salary > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(level, date, status, code)\n attribute_groups(value, date, level, status)\nTask: Find amount from area_registry where level appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, name, type, salary)\n sourcing_list(level, name, status, type)\nTask: Find value from activity_log where salary exceeds the maximum amount from sourcing_list for the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(amount, value, date, code)\n area_registry(status, level, type, date)\nTask: Select id from engagement_log where status exists in area_registry for the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS ord\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(date, value, name, status)\n journal_entries(id, type, name, level)\nTask: Select name from attribute_groups where value is greater than the count of of value in journal_entries for matching code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(id, name, date, type)\n personnel_registry(level, status, code, id)\nTask: Select salary from engagement_log where salary is greater than the count of of salary in personnel_registry for matching id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(code, level, name, amount)\n sales_registry(level, amount, code, name)\nTask: Find value from portfolio_index where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(status, id, salary, level)\n sales_queue(salary, amount, status, type)\nTask: Select value from receivables_log where value is greater than the count of of salary in sales_queue for matching id.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, status, value, amount)\n workforce_data(id, date, status, code)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: dept)(value, status, name, amount)\n personnel_registry(value, status, level, amount)\nTask: Find name from activity_log where amount exceeds the average salary from personnel_registry for the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE amount > (\n SELECT AVG(salary) FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(status, code, amount, id)\n portfolio_index(id, type, value, name)\nTask: Find code from area_registry where status appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(name, date, type, level)\n area_registry(salary, level, code, id)\nTask: Retrieve id from activity_log whose status is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(date, salary, amount, code)\n engagement_log(value, type, code, date)\nTask: Retrieve salary from cost_centers with value above the AVG(amount) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE value > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(status, id, type, code)\n stock_catalog(status, type, code, level)\nTask: Find salary from sourcing_list where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(type, level, status, code)\n activity_log(id, salary, type, date)\nTask: Retrieve salary from area_registry with salary above the MIN(salary) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(date, amount, name, salary)\n cost_centers(type, date, status, level)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(status, level, date, type)\n area_registry(level, id, value, status)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(code, amount, type, value)\n area_registry(type, amount, id, value)\nTask: Find id from receivables_log where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(status, date, salary, type)\n sourcing_list(date, amount, salary, status)\nTask: Select code from receivables_log where amount is greater than the total of value in sourcing_list for matching code.\nSQL:", "sql": "SELECT code FROM receivables_log AS usr\nWHERE amount > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(amount, date, level, name)\n dispatch_queue(name, level, salary, value)\nTask: Select code from receivables_log that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(salary, value, status, type)\n activity_log(level, amount, value, status)\nTask: Retrieve salary from cost_centers that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(code, date, value, salary)\n journal_entries(date, status, amount, salary)\nTask: Find name from sales_queue where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(level, amount, date, type)\n sourcing_list(type, id, name, amount)\nTask: Select salary from stock_catalog that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(amount, name, code, date)\n activity_log(status, level, date, type)\nTask: Find value from portfolio_index where salary exceeds the total value from activity_log for the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS inv\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(value, name, type, level)\n acquisition_log(level, code, value, amount)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: dept)(name, level, type, status)\n acquisition_log(status, level, salary, amount)\nTask: Find amount from area_registry where salary exceeds the maximum amount from acquisition_log for the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(id, code, name, value)\n portfolio_index(amount, value, date, code)\nTask: Retrieve id from sales_queue with amount above the SUM(salary) of portfolio_index rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(level, code, value, amount)\n sales_registry(status, code, amount, value)\nTask: Retrieve code from facility_registry that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(type, amount, name, level)\n engagement_log(salary, type, id, value)\nTask: Select amount from sourcing_list that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(type, level, date, amount)\n area_registry(salary, status, amount, type)\nTask: Retrieve name from journal_entries that have at least one corresponding entry in area_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(name, date, id, level)\n receivables_log(name, code, salary, id)\nTask: Retrieve code from sourcing_list whose code is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(code, id, name, amount)\n cost_centers(code, date, salary, value)\nTask: Find name from stocking_sites where id appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(amount, code, salary, type)\n engagement_log(salary, id, value, name)\nTask: Find name from attribute_groups where id appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(name, value, salary, id)\n personnel_registry(id, amount, type, status)\nTask: Retrieve salary from workforce_data with value above the MAX(value) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(value, amount, salary, code)\n facility_registry(status, value, date, salary)\nTask: Retrieve amount from workforce_data with amount above the AVG(value) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE amount > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(name, amount, salary, code)\n sales_queue(type, value, level, id)\nTask: Select name from stock_catalog where value is greater than the maximum of value in sales_queue for matching level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE value > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(id, type, date, value)\n cost_centers(level, status, amount, type)\nTask: Find name from journal_entries where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(date, code, id, level)\n stock_catalog(value, type, salary, id)\nTask: Find salary from activity_log where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(type, date, amount, level)\n portfolio_index(value, code, salary, level)\nTask: Find amount from journal_entries where level appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(date, amount, name, status)\n workforce_data(amount, type, status, date)\nTask: Select value from dispatch_queue where value is greater than the total of salary in workforce_data for matching status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE value > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(status, salary, amount, level)\n sourcing_list(value, level, type, code)\nTask: Select value from sales_queue that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(type, salary, amount, date)\n facility_registry(level, salary, name, amount)\nTask: Find value from personnel_registry where id appears in facility_registry entries with matching id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS dept\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(status, id, salary, value)\n journal_entries(level, code, status, type)\nTask: Find salary from sales_registry where id appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(name, status, type, id)\n dispatch_queue(name, status, code, salary)\nTask: Select amount from stocking_sites where value is greater than the minimum of salary in dispatch_queue for matching code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE value > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(level, id, status, salary)\n cost_centers(type, salary, date, level)\nTask: Retrieve amount from dispatch_queue with salary above the MIN(value) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(amount, name, status, level)\n dispatch_queue(type, date, name, level)\nTask: Find value from sales_registry where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(value, type, level, date)\n stocking_sites(date, salary, status, value)\nTask: Retrieve amount from cost_centers with amount above the SUM(value) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE amount > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(code, level, value, type)\n personnel_registry(value, type, level, date)\nTask: Find code from workforce_data where a matching record exists in personnel_registry with the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(date, salary, code, id)\n journal_entries(id, type, status, level)\nTask: Select id from personnel_registry that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(type, date, status, code)\n journal_entries(type, code, status, salary)\nTask: Select id from activity_log where type exists in journal_entries for the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, status, code, date)\n sourcing_list(type, amount, date, status)\nTask: Retrieve amount from sales_queue whose level is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(amount, date, status, type)\n stocking_sites(salary, id, date, name)\nTask: Retrieve name from area_registry with salary above the MIN(salary) of stocking_sites rows sharing the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(level, type, amount, value)\n stock_catalog(name, salary, status, amount)\nTask: Retrieve id from workforce_data with salary above the MAX(amount) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(name, date, id, value)\n stock_catalog(name, type, id, status)\nTask: Find name from workforce_data where amount exceeds the minimum salary from stock_catalog for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE amount > (\n SELECT MIN(salary) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(level, status, id, salary)\n stock_catalog(date, salary, type, amount)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(date, id, amount, name)\n journal_entries(status, id, date, salary)\nTask: Select name from personnel_registry that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(code, status, id, name)\n sales_registry(salary, amount, value, id)\nTask: Retrieve amount from sourcing_list with amount above the MIN(value) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE amount > (\n SELECT MIN(value) FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, value, amount, name)\n area_registry(name, level, date, amount)\nTask: Find salary from dispatch_queue where value exceeds the average amount from area_registry for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE value > (\n SELECT AVG(amount) FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(type, code, date, status)\n stocking_sites(id, type, level, status)\nTask: Retrieve code from area_registry whose status is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(code, salary, id, level)\n acquisition_log(status, name, salary, date)\nTask: Retrieve code from stocking_sites whose status is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(id, salary, type, name)\n receivables_log(type, status, amount, date)\nTask: Find code from acquisition_log where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(salary, type, id, code)\n journal_entries(amount, date, name, value)\nTask: Find amount from stocking_sites where type appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(salary, name, amount, id)\n personnel_registry(id, name, level, code)\nTask: Find name from sales_queue where level appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(id, name, date, type)\n acquisition_log(salary, amount, name, value)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(id, name, date, value)\n portfolio_index(name, date, salary, code)\nTask: Select amount from stocking_sites where amount is greater than the minimum of amount in portfolio_index for matching status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(level, id, amount, value)\n receivables_log(amount, date, name, type)\nTask: Retrieve name from journal_entries whose level is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(name, level, id, status)\n stocking_sites(amount, type, id, code)\nTask: Retrieve value from sourcing_list whose code is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(type, status, level, value)\n portfolio_index(amount, type, status, date)\nTask: Select amount from attribute_groups that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(code, name, type, date)\n journal_entries(type, id, value, salary)\nTask: Select value from workforce_data where type exists in journal_entries for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(value, id, type, level)\n acquisition_log(level, id, date, status)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(status, id, type, value)\n personnel_registry(value, date, amount, name)\nTask: Select name from facility_registry where salary is greater than the minimum of value in personnel_registry for matching status.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE salary > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(amount, value, name, id)\n engagement_log(value, type, date, name)\nTask: Select id from personnel_registry where code exists in engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(date, name, id, amount)\n sales_registry(id, name, amount, salary)\nTask: Find value from receivables_log where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(code, type, name, id)\n area_registry(id, level, amount, status)\nTask: Select salary from receivables_log where type exists in area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(name, code, type, value)\n sales_queue(status, level, code, date)\nTask: Select amount from workforce_data where salary is greater than the total of amount in sales_queue for matching code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(status, amount, value, type)\n portfolio_index(type, level, id, salary)\nTask: Retrieve id from acquisition_log with value above the SUM(value) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE value > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(value, status, id, date)\n journal_entries(level, id, salary, amount)\nTask: Find name from cost_centers where value exceeds the total value from journal_entries for the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS emp\nWHERE value > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(level, value, amount, id)\n workforce_data(value, id, salary, level)\nTask: Retrieve salary from receivables_log with salary above the MIN(value) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE salary > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(value, type, status, name)\n sales_queue(level, name, id, type)\nTask: Select amount from area_registry that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(level, salary, amount, type)\n sales_queue(level, name, status, date)\nTask: Find name from stock_catalog where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(value, amount, salary, level)\n facility_registry(id, type, salary, value)\nTask: Select code from sourcing_list where status exists in facility_registry for the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(status, type, salary, value)\n portfolio_index(name, id, level, salary)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(id, value, amount, date)\n facility_registry(name, code, id, salary)\nTask: Select value from cost_centers that have at least one matching row in facility_registry for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(code, salary, date, value)\n activity_log(salary, code, id, status)\nTask: Select id from portfolio_index where id exists in activity_log for the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(date, type, name, value)\n cost_centers(amount, date, id, code)\nTask: Find name from facility_registry where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(name, salary, status, amount)\n acquisition_log(value, status, name, type)\nTask: Find value from facility_registry where value exceeds the maximum salary from acquisition_log for the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE value > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(id, level, value, date)\n cost_centers(status, salary, type, id)\nTask: Select amount from activity_log that have at least one matching row in cost_centers for the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(status, salary, code, value)\n workforce_data(code, level, type, date)\nTask: Find name from activity_log where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(type, id, status, level)\n cost_centers(level, name, type, salary)\nTask: Select id from stocking_sites where salary is greater than the maximum of salary in cost_centers for matching status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(value, date, salary, status)\n journal_entries(name, salary, code, value)\nTask: Find salary from workforce_data where value exceeds the count of value from journal_entries for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE value > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(date, id, code, name)\n workforce_data(level, value, salary, id)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(value, status, date, salary)\n sourcing_list(code, status, value, date)\nTask: Find name from journal_entries where type appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(salary, id, amount, level)\n attribute_groups(amount, id, level, type)\nTask: Select salary from portfolio_index where code exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(code, level, value, status)\n portfolio_index(status, date, name, amount)\nTask: Find amount from dispatch_queue where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(code, id, amount, level)\n sourcing_list(name, level, code, date)\nTask: Select salary from facility_registry where value is greater than the maximum of salary in sourcing_list for matching type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS emp\nWHERE value > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(date, value, salary, status)\n receivables_log(name, amount, code, type)\nTask: Select code from sourcing_list where salary is greater than the count of of value in receivables_log for matching level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(code, type, amount, id)\n sourcing_list(amount, salary, date, id)\nTask: Select amount from area_registry where salary is greater than the maximum of value in sourcing_list for matching type.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE salary > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(date, level, salary, code)\n facility_registry(date, type, salary, amount)\nTask: Retrieve id from personnel_registry with salary above the SUM(salary) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(status, code, value, salary)\n cost_centers(id, name, date, type)\nTask: Select id from activity_log where level exists in cost_centers for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(value, salary, type, code)\n area_registry(amount, type, level, date)\nTask: Find salary from acquisition_log where salary exceeds the count of value from area_registry for the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(id, name, date, type)\n dispatch_queue(type, id, date, value)\nTask: Select code from workforce_data where amount is greater than the maximum of amount in dispatch_queue for matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(id, level, type, amount)\n journal_entries(level, date, code, id)\nTask: Find amount from sales_queue where level appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(type, salary, code, level)\n stock_catalog(amount, level, salary, code)\nTask: Select name from sales_registry that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(value, date, name, status)\n acquisition_log(value, status, type, level)\nTask: Find amount from activity_log where status appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(value, code, level, status)\n dispatch_queue(salary, status, value, type)\nTask: Select name from engagement_log where id exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(code, type, value, name)\n workforce_data(date, name, code, value)\nTask: Find id from journal_entries where value exceeds the minimum salary from workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, type, name, id)\n workforce_data(id, level, code, status)\nTask: Find amount from stock_catalog where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(amount, date, code, salary)\n dispatch_queue(code, value, id, name)\nTask: Retrieve name from acquisition_log that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(type, amount, status, date)\n sales_queue(status, date, salary, type)\nTask: Retrieve code from facility_registry with salary above the COUNT(value) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(salary, name, code, value)\n receivables_log(value, salary, code, id)\nTask: Select amount from sourcing_list that have at least one matching row in receivables_log for the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(name, code, id, value)\n cost_centers(level, code, amount, name)\nTask: Select salary from portfolio_index where type exists in cost_centers for the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(name, date, salary, value)\n dispatch_queue(id, status, date, name)\nTask: Retrieve id from portfolio_index whose id is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS empl\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(value, code, name, amount)\n portfolio_index(id, name, date, code)\nTask: Select id from sales_registry where code exists in portfolio_index for the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS prod\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(salary, date, code, name)\n journal_entries(type, name, date, salary)\nTask: Select value from sales_queue where amount is greater than the average of amount in journal_entries for matching id.\nSQL:", "sql": "SELECT value FROM sales_queue AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(salary, status, type, level)\n engagement_log(date, value, type, level)\nTask: Retrieve salary from area_registry whose code is found in engagement_log rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(type, level, salary, value)\n attribute_groups(date, code, value, type)\nTask: Retrieve id from facility_registry with value above the MAX(salary) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE value > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(id, status, type, salary)\n stock_catalog(name, level, code, id)\nTask: Find code from stocking_sites where level appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS dept\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(type, date, salary, code)\n receivables_log(code, type, level, name)\nTask: Select code from engagement_log that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(code, id, salary, status)\n activity_log(code, type, status, salary)\nTask: Find value from engagement_log where code appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, level, value, type)\n stock_catalog(code, type, value, name)\nTask: Retrieve id from dispatch_queue whose level is found in stock_catalog rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "id", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(level, value, code, salary)\n sourcing_list(date, code, status, value)\nTask: Find salary from journal_entries where a matching record exists in sourcing_list with the same level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, type, value, status)\n area_registry(level, status, id, code)\nTask: Find salary from attribute_groups where id appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(value, type, code, level)\n receivables_log(id, amount, type, status)\nTask: Find salary from portfolio_index where level appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(salary, name, id, level)\n sourcing_list(id, name, code, salary)\nTask: Retrieve id from attribute_groups that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(date, level, type, name)\n acquisition_log(status, value, date, type)\nTask: Retrieve value from cost_centers whose level is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(name, amount, type, code)\n journal_entries(value, amount, type, level)\nTask: Select id from area_registry that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(status, salary, type, name)\n sales_queue(salary, name, level, id)\nTask: Find amount from receivables_log where type appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(value, status, id, amount)\n workforce_data(status, id, salary, name)\nTask: Retrieve amount from personnel_registry with value above the AVG(value) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE value > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(date, type, status, level)\n activity_log(date, name, amount, status)\nTask: Find code from sourcing_list where value exceeds the maximum value from activity_log for the same level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE value > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(id, value, name, amount)\n acquisition_log(level, date, code, id)\nTask: Select amount from receivables_log where salary is greater than the total of amount in acquisition_log for matching level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(salary, name, id, status)\n attribute_groups(status, level, code, salary)\nTask: Retrieve name from receivables_log with value above the MIN(value) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE value > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, amount, name, type)\n area_registry(date, status, value, amount)\nTask: Select name from sourcing_list where value is greater than the count of of salary in area_registry for matching id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE value > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(value, name, id, salary)\n cost_centers(code, amount, salary, name)\nTask: Find amount from engagement_log where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(code, status, amount, date)\n cost_centers(type, code, date, status)\nTask: Retrieve name from acquisition_log with amount above the MAX(value) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS emp\nWHERE amount > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(status, id, value, date)\n attribute_groups(salary, type, id, value)\nTask: Find id from journal_entries where value exceeds the count of amount from attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE value > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(status, level, amount, code)\n stocking_sites(type, level, name, value)\nTask: Find salary from facility_registry where level appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(status, type, level, amount)\n attribute_groups(name, value, code, id)\nTask: Select salary from sales_queue that have at least one matching row in attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(date, value, amount, name)\n attribute_groups(level, type, status, value)\nTask: Find value from activity_log where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(type, value, level, id)\n cost_centers(salary, status, date, value)\nTask: Select id from area_registry where salary is greater than the average of amount in cost_centers for matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(id, date, level, type)\n stock_catalog(id, amount, code, level)\nTask: Find value from cost_centers where salary exceeds the maximum amount from stock_catalog for the same level.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(level, code, amount, status)\n sales_registry(level, date, status, salary)\nTask: Find name from facility_registry where status appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(status, id, salary, amount)\n sourcing_list(amount, salary, date, status)\nTask: Find name from area_registry where salary exceeds the total amount from sourcing_list for the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(salary, amount, date, type)\n stocking_sites(amount, type, name, status)\nTask: Find salary from receivables_log where salary exceeds the count of amount from stocking_sites for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(name, code, amount, level)\n stock_catalog(salary, value, type, level)\nTask: Select salary from personnel_registry that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(amount, id, value, code)\n workforce_data(name, status, salary, level)\nTask: Select value from acquisition_log where code exists in workforce_data for the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS ord\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(name, type, salary, level)\n receivables_log(id, type, amount, value)\nTask: Retrieve id from workforce_data whose code is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM workforce_data AS dept\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(value, id, salary, type)\n workforce_data(id, name, date, type)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in workforce_data sharing the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(status, id, type, amount)\n cost_centers(level, id, name, date)\nTask: Retrieve salary from journal_entries that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, id, code, value)\n portfolio_index(id, code, value, amount)\nTask: Retrieve salary from acquisition_log whose level is found in portfolio_index rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(amount, level, code, salary)\n sales_queue(level, date, value, salary)\nTask: Select name from journal_entries where level exists in sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(name, code, date, id)\n stocking_sites(salary, type, code, level)\nTask: Select name from receivables_log that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(amount, value, level, date)\n sales_queue(id, name, status, amount)\nTask: Find id from acquisition_log where salary exceeds the average value from sales_queue for the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE salary > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, status, amount, name)\n acquisition_log(id, code, status, salary)\nTask: Select amount from activity_log where salary is greater than the total of amount in acquisition_log for matching status.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(salary, code, amount, value)\n area_registry(name, code, value, date)\nTask: Retrieve value from sales_registry whose level is found in area_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(date, name, id, code)\n sourcing_list(date, name, id, type)\nTask: Retrieve name from personnel_registry whose id is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(status, amount, code, level)\n activity_log(date, name, type, salary)\nTask: Select code from engagement_log where type exists in activity_log for the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(code, name, value, date)\n cost_centers(value, date, code, id)\nTask: Find salary from sourcing_list where id appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS usr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(code, value, id, name)\n stock_catalog(value, code, status, amount)\nTask: Select value from sourcing_list that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(code, type, amount, level)\n acquisition_log(date, type, value, code)\nTask: Retrieve salary from attribute_groups with value above the MAX(salary) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS inv\nWHERE value > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(id, type, name, level)\n attribute_groups(date, id, level, status)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(salary, name, id, code)\n stocking_sites(salary, value, amount, name)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(date, level, salary, status)\n sales_queue(status, salary, date, code)\nTask: Find salary from stock_catalog where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(code, value, name, date)\n attribute_groups(code, amount, level, status)\nTask: Find code from sales_queue where amount exceeds the average value from attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE amount > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(id, salary, amount, status)\n attribute_groups(status, level, date, id)\nTask: Retrieve value from activity_log whose type is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, id, level, value)\n sales_queue(amount, level, status, salary)\nTask: Retrieve code from acquisition_log whose id is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(date, level, status, type)\n engagement_log(salary, value, date, id)\nTask: Select salary from personnel_registry where value is greater than the maximum of salary in engagement_log for matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE value > (\n SELECT MAX(salary) FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(date, code, value, salary)\n sales_registry(name, amount, value, id)\nTask: Select salary from stocking_sites where code exists in sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(salary, name, value, status)\n sourcing_list(value, code, type, level)\nTask: Retrieve code from activity_log whose level is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS mgr\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(id, value, salary, status)\n area_registry(type, level, amount, value)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in area_registry sharing the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(name, date, type, level)\n receivables_log(status, level, salary, date)\nTask: Find name from sourcing_list where status appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(amount, code, type, value)\n sourcing_list(id, status, amount, value)\nTask: Select id from stock_catalog where value is greater than the average of salary in sourcing_list for matching status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE value > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(salary, status, value, name)\n portfolio_index(status, code, date, value)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(code, amount, type, id)\n sourcing_list(date, name, value, status)\nTask: Find value from dispatch_queue where level appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(level, amount, status, code)\n dispatch_queue(id, name, value, code)\nTask: Find name from activity_log where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(amount, code, level, id)\n attribute_groups(type, salary, value, code)\nTask: Find name from cost_centers where a matching record exists in attribute_groups with the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(status, type, salary, value)\n acquisition_log(level, amount, value, code)\nTask: Find name from sales_queue where status appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(level, date, code, salary)\n acquisition_log(name, date, id, status)\nTask: Select amount from cost_centers that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(value, code, name, status)\n engagement_log(date, code, amount, name)\nTask: Retrieve name from journal_entries with amount above the SUM(amount) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE amount > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(id, amount, level, type)\n area_registry(code, id, status, type)\nTask: Find id from engagement_log where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(value, id, date, status)\n attribute_groups(amount, status, level, date)\nTask: Retrieve salary from journal_entries whose level is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS inv\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(code, amount, type, salary)\n cost_centers(name, salary, level, code)\nTask: Find salary from stocking_sites where value exceeds the total amount from cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE value > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(status, id, level, amount)\n workforce_data(level, code, id, value)\nTask: Retrieve amount from personnel_registry whose id is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(id, status, name, type)\n personnel_registry(salary, type, value, name)\nTask: Select salary from portfolio_index that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(salary, value, level, code)\n attribute_groups(salary, value, amount, type)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(name, id, code, level)\n workforce_data(amount, date, value, level)\nTask: Select code from receivables_log that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(level, amount, id, salary)\n activity_log(amount, id, date, status)\nTask: Find amount from receivables_log where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(date, value, type, name)\n area_registry(code, type, salary, level)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in area_registry sharing the same status.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(name, id, salary, type)\n stocking_sites(status, value, id, salary)\nTask: Select id from journal_entries where amount is greater than the count of of value in stocking_sites for matching code.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(id, value, salary, status)\n area_registry(level, name, amount, id)\nTask: Select salary from engagement_log where amount is greater than the average of value in area_registry for matching level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE amount > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(type, salary, level, date)\n sourcing_list(status, amount, value, salary)\nTask: Select amount from facility_registry where status exists in sourcing_list for the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(status, id, amount, date)\n facility_registry(name, amount, value, salary)\nTask: Retrieve code from portfolio_index with value above the COUNT(amount) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE value > (\n SELECT COUNT(amount) FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(date, name, amount, code)\n area_registry(status, code, name, type)\nTask: Find amount from journal_entries where code appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, id, date, code)\n sales_queue(id, amount, date, value)\nTask: Select salary from attribute_groups where value is greater than the count of of value in sales_queue for matching type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE value > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(amount, value, name, code)\n activity_log(level, salary, name, code)\nTask: Select name from attribute_groups where salary is greater than the average of amount in activity_log for matching type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(level, code, type, status)\n journal_entries(amount, status, type, code)\nTask: Retrieve code from sales_queue whose type is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(id, value, date, salary)\n activity_log(level, amount, salary, code)\nTask: Select amount from cost_centers where amount is greater than the maximum of amount in activity_log for matching code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(type, value, name, salary)\n stock_catalog(name, date, status, code)\nTask: Find id from journal_entries where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(status, salary, amount, date)\n stocking_sites(salary, status, date, level)\nTask: Find value from sales_registry where level appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(code, level, amount, date)\n receivables_log(level, date, name, status)\nTask: Find name from sourcing_list where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(code, salary, name, date)\n area_registry(level, salary, status, code)\nTask: Select amount from cost_centers that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(code, name, type, level)\n activity_log(value, id, date, name)\nTask: Retrieve amount from workforce_data with salary above the SUM(value) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(amount, id, salary, code)\n acquisition_log(status, level, date, id)\nTask: Find value from cost_centers where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(type, level, name, id)\n facility_registry(code, salary, amount, type)\nTask: Retrieve salary from portfolio_index with salary above the MAX(salary) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE salary > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(amount, code, value, type)\n journal_entries(value, level, code, type)\nTask: Retrieve value from facility_registry with salary above the MAX(amount) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(id, salary, status, date)\n personnel_registry(amount, status, code, level)\nTask: Find code from area_registry where amount exceeds the count of value from personnel_registry for the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE amount > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(id, type, date, code)\n personnel_registry(amount, type, code, status)\nTask: Select salary from sales_queue where value is greater than the minimum of value in personnel_registry for matching level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE value > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, salary, level, code)\n journal_entries(type, id, status, amount)\nTask: Select code from acquisition_log where salary is greater than the maximum of amount in journal_entries for matching level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(id, code, type, value)\n cost_centers(level, code, name, date)\nTask: Find code from workforce_data where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(level, date, status, code)\n sourcing_list(value, date, salary, name)\nTask: Select name from journal_entries where value is greater than the total of amount in sourcing_list for matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE value > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(amount, level, name, salary)\n facility_registry(level, id, type, date)\nTask: Find name from dispatch_queue where code appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(code, id, salary, name)\n journal_entries(id, type, code, status)\nTask: Retrieve id from stocking_sites with value above the SUM(amount) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE value > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(name, type, salary, date)\n dispatch_queue(amount, salary, type, date)\nTask: Find code from sales_queue where value exceeds the average amount from dispatch_queue for the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS usr\nWHERE value > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(level, value, code, status)\n cost_centers(salary, value, code, name)\nTask: Select name from portfolio_index where id exists in cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, level, value, status)\n activity_log(date, name, salary, status)\nTask: Retrieve name from engagement_log with value above the MAX(amount) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(name, type, id, date)\n engagement_log(amount, id, name, value)\nTask: Find salary from dispatch_queue where code appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(name, date, status, amount)\n personnel_registry(salary, date, amount, name)\nTask: Find salary from stocking_sites where amount exceeds the maximum value from personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: empl)(status, name, code, date)\n receivables_log(level, status, id, code)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(date, value, code, id)\n acquisition_log(name, value, type, code)\nTask: Find code from activity_log where salary exceeds the minimum value from acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE salary > (\n SELECT MIN(value) FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(name, salary, status, type)\n acquisition_log(value, date, status, name)\nTask: Find name from dispatch_queue where salary exceeds the count of amount from acquisition_log for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE salary > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(date, amount, name, level)\n sales_registry(date, id, type, salary)\nTask: Select id from personnel_registry where value is greater than the maximum of salary in sales_registry for matching status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE value > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(name, value, amount, salary)\n cost_centers(status, salary, type, id)\nTask: Find code from personnel_registry where code appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(status, amount, level, salary)\n engagement_log(level, salary, value, id)\nTask: Retrieve id from journal_entries with value above the AVG(value) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE value > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(level, status, value, date)\n stocking_sites(amount, date, name, level)\nTask: Retrieve id from journal_entries whose type is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(type, id, date, value)\n area_registry(date, amount, value, level)\nTask: Find code from acquisition_log where id appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, amount, value, id)\n sourcing_list(code, amount, type, value)\nTask: Find value from personnel_registry where level appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(type, id, value, level)\n engagement_log(date, amount, type, name)\nTask: Retrieve amount from portfolio_index that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(code, status, level, amount)\n stocking_sites(amount, status, code, level)\nTask: Find id from journal_entries where salary exceeds the maximum value from stocking_sites for the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE salary > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(salary, value, type, date)\n stock_catalog(id, value, date, level)\nTask: Retrieve code from journal_entries whose status is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(type, status, id, amount)\n journal_entries(level, date, status, value)\nTask: Select code from facility_registry that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(value, name, code, type)\n receivables_log(value, level, date, id)\nTask: Retrieve amount from dispatch_queue whose status is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(type, id, amount, name)\n engagement_log(code, id, name, salary)\nTask: Find value from personnel_registry where id appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS emp\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(code, date, value, name)\n cost_centers(name, type, code, date)\nTask: Select id from workforce_data that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(status, date, type, amount)\n stocking_sites(id, code, type, amount)\nTask: Find name from receivables_log where id appears in stocking_sites entries with matching level.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(value, amount, type, level)\n area_registry(salary, id, name, date)\nTask: Select name from sales_queue that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(status, level, amount, type)\n attribute_groups(amount, name, id, type)\nTask: Find amount from sales_registry where value exceeds the average salary from attribute_groups for the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE value > (\n SELECT AVG(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: emp)(type, value, salary, status)\n journal_entries(type, name, level, date)\nTask: Select code from facility_registry where value is greater than the maximum of salary in journal_entries for matching status.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE value > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(code, id, amount, date)\n cost_centers(salary, code, level, value)\nTask: Select amount from dispatch_queue where id exists in cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(type, level, code, status)\n dispatch_queue(amount, date, id, value)\nTask: Select amount from facility_registry where amount is greater than the total of amount in dispatch_queue for matching level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS prod\nWHERE amount > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(id, type, salary, date)\n portfolio_index(name, salary, type, date)\nTask: Find code from activity_log where level appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(amount, id, level, code)\n engagement_log(id, status, date, name)\nTask: Find name from stock_catalog where level appears in engagement_log entries with matching code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(code, id, date, name)\n sales_queue(id, amount, value, code)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(status, type, value, id)\n activity_log(id, name, date, code)\nTask: Retrieve salary from workforce_data with amount above the MIN(salary) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(type, date, id, value)\n stocking_sites(salary, date, id, amount)\nTask: Select code from acquisition_log where code exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(status, id, type, date)\n journal_entries(amount, name, level, salary)\nTask: Select name from receivables_log that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(date, name, status, level)\n sourcing_list(name, type, code, level)\nTask: Find id from stock_catalog where salary exceeds the maximum value from sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE salary > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(value, salary, level, name)\n personnel_registry(salary, code, date, type)\nTask: Select name from engagement_log where code exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, name, status, type)\n sourcing_list(salary, id, level, type)\nTask: Select amount from dispatch_queue where salary is greater than the total of salary in sourcing_list for matching level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(amount, value, code, level)\n area_registry(value, name, type, salary)\nTask: Find value from workforce_data where type appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(amount, type, name, date)\n workforce_data(value, date, type, name)\nTask: Find value from receivables_log where amount exceeds the maximum value from workforce_data for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE amount > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(status, type, level, name)\n area_registry(amount, salary, name, value)\nTask: Select name from acquisition_log that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(salary, date, code, type)\n area_registry(id, date, code, type)\nTask: Retrieve code from sales_registry with amount above the MAX(salary) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS empl\nWHERE amount > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(date, id, level, status)\n dispatch_queue(id, level, type, code)\nTask: Retrieve name from area_registry with amount above the COUNT(salary) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(level, id, type, name)\n acquisition_log(salary, value, date, name)\nTask: Select value from activity_log that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(status, amount, date, id)\n receivables_log(code, id, amount, status)\nTask: Select value from journal_entries where salary is greater than the count of of value in receivables_log for matching level.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(date, value, level, name)\n sales_registry(amount, salary, code, id)\nTask: Find name from cost_centers where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(name, id, type, status)\n stock_catalog(date, amount, id, code)\nTask: Retrieve name from activity_log with amount above the AVG(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE amount > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(date, level, code, name)\n area_registry(name, salary, amount, id)\nTask: Select id from personnel_registry where level exists in area_registry for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(type, value, status, level)\n attribute_groups(id, date, type, code)\nTask: Select code from facility_registry where amount is greater than the minimum of value in attribute_groups for matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS inv\nWHERE amount > (\n SELECT MIN(value) FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(id, status, date, level)\n sales_registry(salary, type, name, status)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(salary, value, status, type)\n personnel_registry(type, level, salary, id)\nTask: Select code from sales_registry where salary is greater than the minimum of value in personnel_registry for matching code.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE salary > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(level, code, salary, id)\n cost_centers(name, level, status, type)\nTask: Find name from sales_queue where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(amount, value, status, level)\n journal_entries(name, type, level, salary)\nTask: Retrieve salary from engagement_log that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(amount, code, status, date)\n cost_centers(amount, name, salary, id)\nTask: Retrieve code from area_registry with amount above the COUNT(salary) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE amount > (\n SELECT COUNT(salary) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, code, level, salary)\n activity_log(status, level, name, id)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, date, id, name)\n attribute_groups(amount, value, salary, code)\nTask: Retrieve value from sourcing_list with amount above the MIN(salary) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(date, salary, code, id)\n stock_catalog(amount, status, date, name)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(id, date, code, amount)\n dispatch_queue(code, level, type, value)\nTask: Retrieve salary from workforce_data whose id is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(level, id, code, status)\n acquisition_log(id, level, code, amount)\nTask: Select id from engagement_log that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(salary, type, status, id)\n engagement_log(name, value, id, amount)\nTask: Select code from dispatch_queue where code exists in engagement_log for the same code.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(amount, type, salary, id)\n journal_entries(amount, code, value, id)\nTask: Select name from sales_queue where salary is greater than the count of of amount in journal_entries for matching code.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "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}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(type, salary, code, level)\n dispatch_queue(code, type, level, id)\nTask: Retrieve value from engagement_log whose status is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM engagement_log AS dept\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(code, amount, name, salary)\n journal_entries(level, code, status, id)\nTask: Select salary from attribute_groups where id exists in journal_entries for the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(type, status, id, name)\n attribute_groups(code, level, amount, id)\nTask: Find value from sales_registry where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(status, id, name, value)\n activity_log(level, id, code, type)\nTask: Retrieve salary from stock_catalog with amount above the COUNT(amount) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(level, salary, type, id)\n journal_entries(type, name, status, id)\nTask: Retrieve name from activity_log with salary above the MIN(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE salary > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(type, value, amount, name)\n stocking_sites(status, id, level, date)\nTask: Retrieve code from journal_entries whose type is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(value, status, name, id)\n journal_entries(type, id, level, code)\nTask: Select code from sales_queue where type exists in journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM sales_queue AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(status, date, type, level)\n stocking_sites(code, date, level, amount)\nTask: Find salary from activity_log where salary exceeds the average value from stocking_sites for the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE salary > (\n SELECT AVG(value) FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(amount, status, value, code)\n personnel_registry(level, status, type, name)\nTask: Find code from engagement_log where type appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(name, date, type, value)\n sales_queue(status, name, amount, value)\nTask: Select salary from facility_registry that have at least one matching row in sales_queue for the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(type, code, salary, id)\n dispatch_queue(type, date, level, name)\nTask: Find id from facility_registry where id appears in dispatch_queue entries with matching code.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(level, name, amount, status)\n stocking_sites(value, amount, status, level)\nTask: Select id from workforce_data where type exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS mgr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(status, name, salary, level)\n area_registry(status, salary, date, value)\nTask: Select name from journal_entries that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(date, status, amount, type)\n facility_registry(date, salary, status, amount)\nTask: Retrieve value from sourcing_list with amount above the COUNT(value) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(name, id, status, date)\n area_registry(code, salary, level, id)\nTask: Select value from workforce_data that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(type, salary, name, amount)\n portfolio_index(type, value, id, code)\nTask: Retrieve value from sourcing_list whose code is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, type, name, value)\n sales_queue(type, value, status, code)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(salary, amount, code, value)\n cost_centers(salary, status, date, value)\nTask: Retrieve amount from acquisition_log with salary above the MIN(salary) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(level, status, name, amount)\n stocking_sites(amount, code, type, status)\nTask: Retrieve id from activity_log that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(name, date, type, level)\n journal_entries(amount, name, salary, status)\nTask: Select code from portfolio_index where value is greater than the count of of amount in journal_entries for matching id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE value > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(value, code, id, status)\n journal_entries(status, level, amount, salary)\nTask: Select salary from attribute_groups that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(value, type, amount, name)\n cost_centers(id, amount, value, status)\nTask: Find code from attribute_groups where amount exceeds the total amount from cost_centers for the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE amount > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(value, code, id, date)\n facility_registry(level, type, value, code)\nTask: Find code from sales_registry where amount exceeds the total value from facility_registry for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE amount > (\n SELECT SUM(value) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, code, amount, name)\n sales_registry(level, salary, date, name)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(date, status, value, type)\n area_registry(code, salary, name, date)\nTask: Select id from sales_registry where value is greater than the minimum of salary in area_registry for matching code.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE value > (\n SELECT MIN(salary) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(type, value, date, name)\n stock_catalog(name, type, id, value)\nTask: Retrieve salary from attribute_groups with salary above the SUM(amount) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(code, salary, amount, value)\n stock_catalog(code, status, name, level)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(salary, status, code, type)\n attribute_groups(name, value, level, salary)\nTask: Select name from engagement_log that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(value, name, code, status)\n engagement_log(code, amount, value, id)\nTask: Find code from stocking_sites where value exceeds the count of value from engagement_log for the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE value > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(type, name, salary, date)\n facility_registry(status, code, date, level)\nTask: Retrieve code from area_registry whose code is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(salary, type, id, date)\n journal_entries(salary, level, id, type)\nTask: Find id from workforce_data where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(id, level, name, salary)\n acquisition_log(date, value, name, amount)\nTask: Find id from stock_catalog where amount exceeds the maximum salary from acquisition_log for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE amount > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(amount, status, id, level)\n engagement_log(code, value, name, id)\nTask: Retrieve code from sourcing_list whose status is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(code, status, amount, value)\n activity_log(level, id, status, type)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, value, level, code)\n sales_registry(level, amount, salary, status)\nTask: Select salary from facility_registry where salary is greater than the count of of value in sales_registry for matching status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(salary, id, level, date)\n receivables_log(name, value, date, id)\nTask: Select code from cost_centers where salary is greater than the maximum of value in receivables_log for matching code.\nSQL:", "sql": "SELECT code FROM cost_centers AS dept\nWHERE salary > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(type, amount, status, id)\n receivables_log(date, code, amount, type)\nTask: Find name from sourcing_list where value exceeds the count of value from receivables_log for the same id.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE value > (\n SELECT COUNT(value) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(value, name, date, salary)\n receivables_log(status, value, code, type)\nTask: Select salary from attribute_groups that have at least one matching row in receivables_log for the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(date, amount, level, value)\n facility_registry(code, id, name, value)\nTask: Select name from sales_registry that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(value, date, code, type)\n personnel_registry(status, type, level, date)\nTask: Find value from workforce_data where level appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(code, id, amount, type)\n workforce_data(id, amount, level, salary)\nTask: Find code from journal_entries where amount exceeds the maximum value from workforce_data for the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE amount > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(name, amount, level, date)\n stocking_sites(type, date, value, level)\nTask: Select name from journal_entries where value is greater than the maximum of value in stocking_sites for matching status.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(amount, id, status, code)\n workforce_data(level, code, type, name)\nTask: Find amount from engagement_log where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(date, salary, amount, value)\n stock_catalog(code, name, amount, status)\nTask: Select amount from acquisition_log that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(value, date, type, code)\n personnel_registry(code, date, salary, id)\nTask: Select id from sourcing_list where salary is greater than the maximum of amount in personnel_registry for matching type.\nSQL:", "sql": "SELECT id FROM sourcing_list AS usr\nWHERE salary > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(date, name, code, id)\n dispatch_queue(amount, code, date, value)\nTask: Find code from engagement_log where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(salary, value, date, id)\n stock_catalog(value, code, id, date)\nTask: Select amount from journal_entries where code exists in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(value, status, date, type)\n activity_log(type, date, code, name)\nTask: Select salary from acquisition_log where amount is greater than the total of amount in activity_log for matching type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE amount > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, type, status, salary)\n facility_registry(amount, code, type, status)\nTask: Find name from dispatch_queue where id appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(id, date, type, value)\n sales_registry(status, amount, value, date)\nTask: Retrieve name from area_registry whose id is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "name", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(code, type, salary, level)\n sales_registry(level, id, name, status)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(value, type, name, amount)\n sourcing_list(level, salary, id, amount)\nTask: Select name from workforce_data that have at least one matching row in sourcing_list for the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(level, amount, code, status)\n attribute_groups(id, level, amount, date)\nTask: Find amount from stock_catalog where amount exceeds the maximum amount from attribute_groups for the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(id, value, level, code)\n dispatch_queue(type, level, amount, status)\nTask: Retrieve salary from portfolio_index with salary above the SUM(amount) of dispatch_queue rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(name, date, type, status)\n activity_log(salary, code, level, id)\nTask: Select name from facility_registry where level exists in activity_log for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(amount, id, date, salary)\n sourcing_list(amount, type, level, code)\nTask: Find id from receivables_log where type appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT id FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(name, amount, value, level)\n attribute_groups(salary, type, value, level)\nTask: Find amount from acquisition_log where code appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(code, date, level, name)\n stock_catalog(type, id, name, amount)\nTask: Select name from acquisition_log that have at least one matching row in stock_catalog for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(date, level, value, type)\n personnel_registry(level, type, id, code)\nTask: Select salary from stocking_sites where amount is greater than the average of value in personnel_registry for matching type.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE amount > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(name, value, status, amount)\n facility_registry(salary, type, id, code)\nTask: Select code from area_registry where amount is greater than the average of salary in facility_registry for matching type.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE amount > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(id, type, salary, amount)\n attribute_groups(id, code, level, salary)\nTask: Find salary from area_registry where amount exceeds the minimum amount from attribute_groups for the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(level, code, salary, value)\n area_registry(amount, id, type, code)\nTask: Find salary from facility_registry where value exceeds the count of salary from area_registry for the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE value > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(type, value, name, id)\n sales_registry(type, level, status, code)\nTask: Find code from stock_catalog where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(salary, id, date, status)\n sourcing_list(type, value, amount, salary)\nTask: Find name from receivables_log where amount exceeds the total value from sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE amount > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(status, type, value, name)\n workforce_data(status, salary, code, amount)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in workforce_data sharing the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, amount, date, code)\n portfolio_index(type, salary, status, date)\nTask: Select salary from dispatch_queue where type exists in portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(amount, level, code, status)\n dispatch_queue(date, level, value, name)\nTask: Find id from stock_catalog where value exceeds the minimum value from dispatch_queue for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE value > (\n SELECT MIN(value) FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, code, level, type)\n area_registry(level, value, name, amount)\nTask: Find code from attribute_groups where amount exceeds the maximum amount from area_registry for the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(id, type, salary, name)\n sourcing_list(date, type, salary, level)\nTask: Find id from area_registry where value exceeds the average amount from sourcing_list for the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(level, type, code, name)\n facility_registry(type, value, level, date)\nTask: Find code from portfolio_index where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, level, code, date)\n sales_queue(status, id, salary, name)\nTask: Find salary from facility_registry where value exceeds the minimum amount from sales_queue for the same code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(name, amount, code, status)\n workforce_data(name, id, amount, level)\nTask: Find salary from personnel_registry where status appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(id, type, status, name)\n engagement_log(value, date, name, type)\nTask: Select code from portfolio_index where amount is greater than the average of value in engagement_log for matching type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE amount > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(status, name, type, id)\n dispatch_queue(value, code, name, status)\nTask: Retrieve amount from receivables_log that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(date, status, code, name)\n sourcing_list(code, value, amount, date)\nTask: Find salary from facility_registry where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(amount, status, code, date)\n activity_log(id, status, date, value)\nTask: Retrieve code from portfolio_index whose type is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(amount, name, value, code)\n portfolio_index(date, salary, status, name)\nTask: Select name from acquisition_log where value is greater than the minimum of value in portfolio_index for matching id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS inv\nWHERE value > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(level, amount, salary, type)\n workforce_data(date, status, amount, code)\nTask: Retrieve salary from receivables_log with amount above the SUM(amount) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(id, status, value, code)\n personnel_registry(name, level, id, value)\nTask: Find value from workforce_data where value exceeds the count of amount from personnel_registry for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(id, amount, date, type)\n stocking_sites(amount, date, name, value)\nTask: Retrieve value from area_registry that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(amount, type, level, value)\n acquisition_log(level, salary, amount, value)\nTask: Retrieve salary from cost_centers whose id is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(name, date, salary, code)\n engagement_log(date, status, code, id)\nTask: Retrieve value from stocking_sites whose level is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(date, status, id, amount)\n personnel_registry(name, salary, status, value)\nTask: Retrieve code from workforce_data with value above the MIN(salary) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE value > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(amount, date, name, level)\n journal_entries(date, status, type, level)\nTask: Find name from sales_registry where id appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(salary, code, name, id)\n sales_registry(id, type, level, name)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(salary, name, level, amount)\n sourcing_list(salary, id, level, value)\nTask: Retrieve name from activity_log whose id is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(name, salary, type, amount)\n facility_registry(status, date, name, value)\nTask: Select name from area_registry where amount is greater than the average of value in facility_registry for matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS emp\nWHERE amount > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(value, status, salary, id)\n cost_centers(amount, level, type, name)\nTask: Find code from journal_entries where id appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(value, level, type, amount)\n journal_entries(code, salary, amount, id)\nTask: Select salary from cost_centers where amount is greater than the maximum of salary in journal_entries for matching level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS dept\nWHERE amount > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(status, value, level, amount)\n sales_registry(type, date, id, status)\nTask: Find id from cost_centers where salary exceeds the maximum value from sales_registry for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE salary > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(salary, id, date, status)\n stocking_sites(name, value, status, amount)\nTask: Select salary from portfolio_index that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(code, status, level, date)\n stock_catalog(status, level, id, value)\nTask: Select amount from cost_centers that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(code, status, id, date)\n stocking_sites(date, id, code, value)\nTask: Find id from sales_queue where salary exceeds the count of value from stocking_sites for the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS mgr\nWHERE salary > (\n SELECT COUNT(value) FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(code, date, id, salary)\n area_registry(name, value, status, amount)\nTask: Find salary from cost_centers where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(date, value, status, name)\n workforce_data(salary, date, status, value)\nTask: Retrieve amount from personnel_registry whose id is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(level, type, code, value)\n sales_registry(id, status, name, type)\nTask: Find id from personnel_registry where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(level, code, salary, type)\n stock_catalog(date, amount, code, type)\nTask: Find name from area_registry where a matching record exists in stock_catalog with the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(value, type, code, salary)\n personnel_registry(level, status, value, amount)\nTask: Select code from sourcing_list where status exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(date, type, status, amount)\n portfolio_index(name, salary, level, amount)\nTask: Find salary from sales_registry where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(id, date, amount, salary)\n attribute_groups(type, status, level, name)\nTask: Retrieve id from sales_queue with salary above the AVG(value) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS dept\nWHERE salary > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(type, value, date, salary)\n activity_log(amount, value, code, type)\nTask: Select amount from sales_registry where salary is greater than the minimum of value in activity_log for matching code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE salary > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(code, id, name, level)\n activity_log(type, level, amount, status)\nTask: Select code from portfolio_index where level exists in activity_log for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(type, code, id, status)\n cost_centers(date, value, salary, id)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(salary, date, status, code)\n cost_centers(value, id, type, amount)\nTask: Find value from engagement_log where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(code, name, amount, date)\n sales_registry(amount, type, id, value)\nTask: Retrieve salary from workforce_data with salary above the MAX(amount) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE salary > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, level, amount, status)\n stock_catalog(name, date, type, level)\nTask: Find name from sales_registry where salary exceeds the count of value from stock_catalog for the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(salary, name, status, type)\n engagement_log(type, amount, level, date)\nTask: Retrieve value from sales_registry with salary above the MIN(value) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE salary > (\n SELECT MIN(value) FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(date, type, level, name)\n journal_entries(date, name, type, salary)\nTask: Retrieve amount from workforce_data whose status is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM workforce_data AS empl\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(value, code, status, salary)\n portfolio_index(date, type, name, amount)\nTask: Select salary from dispatch_queue where salary is greater than the average of value in portfolio_index for matching level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE salary > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(code, level, id, type)\n receivables_log(value, amount, name, date)\nTask: Select value from dispatch_queue where level exists in receivables_log for the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(status, level, date, type)\n cost_centers(code, name, value, amount)\nTask: Find id from engagement_log where code appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(name, date, code, value)\n cost_centers(value, status, level, type)\nTask: Find amount from workforce_data where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(level, id, salary, amount)\n stock_catalog(value, amount, code, id)\nTask: Retrieve value from engagement_log whose status is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM engagement_log AS prod\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(id, value, salary, amount)\n sourcing_list(name, amount, code, level)\nTask: Find name from attribute_groups where value exceeds the minimum amount from sourcing_list for the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS empl\nWHERE value > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(level, amount, type, value)\n journal_entries(id, name, code, date)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, date, amount, level)\n journal_entries(id, salary, type, level)\nTask: Select salary from sourcing_list where status exists in journal_entries for the same code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, salary, status, date)\n cost_centers(amount, value, id, name)\nTask: Select salary from acquisition_log where id exists in cost_centers for the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(amount, salary, level, code)\n journal_entries(name, value, salary, id)\nTask: Find salary from sourcing_list where amount exceeds the minimum salary from journal_entries for the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(code, type, level, date)\n attribute_groups(name, value, code, date)\nTask: Find salary from area_registry where type appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(id, amount, value, type)\n workforce_data(code, salary, value, id)\nTask: Retrieve value from receivables_log whose type is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(name, amount, salary, id)\n receivables_log(id, type, salary, level)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in receivables_log sharing the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(code, status, value, name)\n dispatch_queue(id, date, code, type)\nTask: Retrieve id from sales_queue with salary above the MAX(salary) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(id, date, value, code)\n activity_log(type, level, amount, name)\nTask: Find value from portfolio_index where amount exceeds the count of value from activity_log for the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS ord\nWHERE amount > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(amount, id, value, name)\n stock_catalog(type, value, id, level)\nTask: Find name from personnel_registry where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(date, status, level, id)\n activity_log(amount, date, value, type)\nTask: Retrieve salary from journal_entries whose code is found in activity_log rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(type, salary, status, value)\n workforce_data(amount, date, value, code)\nTask: Select value from cost_centers where id exists in workforce_data for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(level, code, date, value)\n cost_centers(value, id, level, code)\nTask: Find salary from sourcing_list where amount exceeds the total amount from cost_centers for the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(type, date, level, value)\n facility_registry(date, type, name, id)\nTask: Find salary from receivables_log where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(id, type, code, amount)\n receivables_log(value, level, amount, id)\nTask: Find id from attribute_groups where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(value, id, status, salary)\n engagement_log(type, level, name, id)\nTask: Select id from workforce_data where type exists in engagement_log for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS dept\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(name, amount, id, status)\n personnel_registry(type, salary, level, value)\nTask: Retrieve value from area_registry with salary above the SUM(salary) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE salary > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, type, level, amount)\n area_registry(name, code, status, date)\nTask: Find name from portfolio_index where status appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(status, amount, value, date)\n sales_queue(amount, date, value, name)\nTask: Retrieve id from cost_centers whose status is found in sales_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(type, id, name, salary)\n activity_log(name, id, salary, date)\nTask: Find code from sales_registry where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(name, value, amount, code)\n journal_entries(value, salary, code, level)\nTask: Find code from stock_catalog where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT code FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(value, level, type, code)\n sales_registry(value, id, date, salary)\nTask: Find value from activity_log where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(code, salary, level, name)\n stocking_sites(level, type, id, date)\nTask: Find value from sales_registry where value exceeds the maximum salary from stocking_sites for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE value > (\n SELECT MAX(salary) FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(id, type, name, status)\n workforce_data(salary, date, value, status)\nTask: Retrieve amount from cost_centers whose code is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS mgr\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(status, salary, level, amount)\n sourcing_list(status, value, level, type)\nTask: Find salary from workforce_data where code appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(value, code, type, salary)\n workforce_data(name, id, date, value)\nTask: Select id from receivables_log that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(amount, salary, status, name)\n personnel_registry(status, value, code, name)\nTask: Select code from area_registry where value is greater than the minimum of salary in personnel_registry for matching level.\nSQL:", "sql": "SELECT code FROM area_registry AS mgr\nWHERE value > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(salary, value, level, type)\n cost_centers(id, salary, status, amount)\nTask: Select code from activity_log that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(type, level, code, id)\n sourcing_list(level, date, type, name)\nTask: Retrieve amount from acquisition_log with value above the AVG(value) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE value > (\n SELECT AVG(value) FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, name, value, code)\n sales_registry(status, type, value, id)\nTask: Find id from stock_catalog where value exceeds the maximum value from sales_registry for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE value > (\n SELECT MAX(value) FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(value, amount, date, code)\n portfolio_index(value, salary, amount, status)\nTask: Find name from journal_entries where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(code, value, id, level)\n attribute_groups(value, amount, name, level)\nTask: Find salary from engagement_log where amount exceeds the total value from attribute_groups for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE amount > (\n SELECT SUM(value) FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(type, amount, level, date)\n attribute_groups(value, status, code, name)\nTask: Select value from sales_queue where value is greater than the maximum of salary in attribute_groups for matching code.\nSQL:", "sql": "SELECT value FROM sales_queue AS empl\nWHERE value > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(id, value, amount, status)\n sales_registry(type, name, salary, code)\nTask: Find id from stock_catalog where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(date, type, amount, level)\n engagement_log(type, level, value, name)\nTask: Retrieve salary from journal_entries whose type is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(code, date, level, name)\n workforce_data(amount, salary, type, date)\nTask: Select code from stock_catalog that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(code, type, status, value)\n stocking_sites(amount, value, status, date)\nTask: Retrieve id from activity_log whose status is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM activity_log AS ord\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.type = ord.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(type, id, value, code)\n dispatch_queue(status, id, value, amount)\nTask: Find name from activity_log where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(type, salary, status, date)\n sourcing_list(id, name, value, date)\nTask: Find salary from stock_catalog where salary exceeds the total value from sourcing_list for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE salary > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(type, status, code, amount)\n sales_queue(name, id, level, code)\nTask: Find code from area_registry where value exceeds the total amount from sales_queue for the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE value > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(level, code, value, date)\n journal_entries(id, code, name, salary)\nTask: Find value from sales_registry where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(status, date, salary, id)\n dispatch_queue(id, date, value, salary)\nTask: Select id from receivables_log where amount is greater than the minimum of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(id, name, status, date)\n area_registry(salary, id, level, date)\nTask: Retrieve id from personnel_registry with amount above the COUNT(value) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(amount, status, type, level)\n engagement_log(id, salary, level, value)\nTask: Select name from activity_log where value is greater than the count of of value in engagement_log for matching status.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE value > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(salary, id, name, type)\n workforce_data(type, salary, value, name)\nTask: Find salary from sales_queue where amount exceeds the total salary from workforce_data for the same id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(id, code, type, date)\n activity_log(salary, status, level, date)\nTask: Retrieve name from portfolio_index with amount above the SUM(salary) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(type, amount, code, level)\n portfolio_index(name, value, level, type)\nTask: Retrieve code from engagement_log whose level is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS emp\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(code, id, salary, name)\n journal_entries(name, type, date, amount)\nTask: Find salary from receivables_log where value exceeds the average amount from journal_entries for the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE value > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(value, id, code, name)\n journal_entries(name, type, amount, id)\nTask: Find code from sales_registry where amount exceeds the average value from journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE amount > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(id, amount, level, status)\n stocking_sites(amount, value, id, level)\nTask: Retrieve code from cost_centers whose type is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(id, date, salary, amount)\n facility_registry(code, status, salary, type)\nTask: Retrieve value from attribute_groups whose id is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(level, date, type, salary)\n sales_queue(level, date, value, salary)\nTask: Select amount from cost_centers where value is greater than the total of amount in sales_queue for matching code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE value > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(type, value, date, salary)\n sourcing_list(type, level, status, date)\nTask: Retrieve name from workforce_data with value above the MAX(amount) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE value > (\n SELECT MAX(amount) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(level, status, code, value)\n activity_log(value, id, date, status)\nTask: Find name from personnel_registry where amount exceeds the total value from activity_log for the same type.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE amount > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(level, salary, value, status)\n engagement_log(id, type, level, code)\nTask: Select name from receivables_log where type exists in engagement_log for the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(code, salary, status, amount)\n journal_entries(status, name, id, type)\nTask: Select name from receivables_log where value is greater than the total of amount in journal_entries for matching id.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE value > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "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}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(code, salary, status, value)\n journal_entries(id, code, type, value)\nTask: Retrieve value from facility_registry with value above the COUNT(salary) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS usr\nWHERE value > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(id, name, amount, value)\n sourcing_list(name, id, date, status)\nTask: Retrieve amount from receivables_log with amount above the COUNT(salary) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(type, value, name, salary)\n engagement_log(type, status, date, value)\nTask: Retrieve amount from sales_registry whose status is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(status, salary, name, value)\n stock_catalog(amount, type, salary, date)\nTask: Select id from attribute_groups where salary is greater than the total of amount in stock_catalog for matching level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(salary, id, code, status)\n engagement_log(name, date, level, status)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(date, level, value, name)\n acquisition_log(value, amount, level, type)\nTask: Retrieve salary from dispatch_queue with salary above the SUM(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, type, amount, id)\n stock_catalog(salary, code, amount, level)\nTask: Select name from acquisition_log that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(name, type, id, amount)\n activity_log(status, amount, level, date)\nTask: Select amount from cost_centers that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(type, status, id, level)\n attribute_groups(code, salary, date, type)\nTask: Select value from acquisition_log where status exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(amount, status, level, type)\n sales_registry(code, id, type, date)\nTask: Retrieve id from cost_centers whose code is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(date, value, name, status)\n activity_log(salary, value, id, type)\nTask: Select salary from area_registry where code exists in activity_log for the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(amount, type, level, status)\n workforce_data(status, level, type, amount)\nTask: Select value from activity_log that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(level, code, value, id)\n dispatch_queue(name, date, type, salary)\nTask: Retrieve name from sales_registry whose code is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(name, salary, code, id)\n cost_centers(value, type, date, id)\nTask: Find salary from journal_entries where type appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(name, status, level, salary)\n workforce_data(name, date, status, level)\nTask: Find salary from sales_registry where a matching record exists in workforce_data with the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, id, code, name)\n portfolio_index(type, id, status, level)\nTask: Retrieve code from journal_entries whose type is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(date, type, salary, id)\n workforce_data(level, id, type, status)\nTask: Select salary from journal_entries where salary is greater than the count of of salary in workforce_data for matching id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(id, amount, status, date)\n engagement_log(salary, code, status, amount)\nTask: Select name from journal_entries that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(date, status, salary, id)\n stocking_sites(type, level, status, code)\nTask: Retrieve amount from sales_registry whose level is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(type, code, id, salary)\n dispatch_queue(salary, type, code, id)\nTask: Select value from sales_queue where id exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(salary, status, name, value)\n stock_catalog(date, value, status, name)\nTask: Select salary from personnel_registry that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(code, id, salary, name)\n engagement_log(value, name, type, salary)\nTask: Select id from workforce_data where code exists in engagement_log for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, id, salary, code)\n journal_entries(name, value, level, date)\nTask: Select salary from cost_centers that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(name, type, id, level)\n sales_registry(salary, type, amount, name)\nTask: Retrieve amount from engagement_log whose code is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(salary, date, amount, id)\n facility_registry(status, code, amount, value)\nTask: Find amount from receivables_log where type appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(type, amount, code, date)\n personnel_registry(type, date, value, status)\nTask: Retrieve id from facility_registry whose status is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(id, name, value, level)\n portfolio_index(id, salary, type, value)\nTask: Find id from workforce_data where amount exceeds the count of amount from portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(salary, status, level, value)\n sales_queue(value, type, salary, code)\nTask: Select name from attribute_groups where value is greater than the maximum of value in sales_queue for matching id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE value > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(value, name, salary, status)\n receivables_log(code, name, id, date)\nTask: Find salary from attribute_groups where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(date, amount, code, salary)\n cost_centers(level, id, salary, code)\nTask: Retrieve amount from workforce_data with value above the MAX(salary) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE value > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(type, salary, name, amount)\n personnel_registry(type, salary, code, status)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, code, status, salary)\n workforce_data(name, id, status, amount)\nTask: Select amount from portfolio_index where salary is greater than the average of value in workforce_data for matching level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(type, salary, code, value)\n sales_registry(id, date, type, code)\nTask: Select salary from workforce_data where code exists in sales_registry for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: emp)(amount, status, value, id)\n journal_entries(id, value, name, date)\nTask: Find salary from area_registry where level appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(date, level, name, id)\n stocking_sites(value, date, salary, level)\nTask: Select salary from acquisition_log where type exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(amount, code, type, status)\n activity_log(value, id, type, name)\nTask: Retrieve salary from sales_queue with value above the MAX(amount) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(name, id, date, type)\n portfolio_index(date, salary, id, code)\nTask: Find code from personnel_registry where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(type, name, status, amount)\n dispatch_queue(id, date, value, status)\nTask: Retrieve code from portfolio_index whose status is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, level, value, date)\n stock_catalog(date, level, status, amount)\nTask: Retrieve code from activity_log with amount above the AVG(amount) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE amount > (\n SELECT AVG(amount) FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(date, id, amount, status)\n attribute_groups(id, salary, type, code)\nTask: Retrieve value from cost_centers with amount above the SUM(salary) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(date, id, code, salary)\n receivables_log(status, code, level, date)\nTask: Retrieve name from stocking_sites that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(id, amount, salary, date)\n portfolio_index(id, level, name, status)\nTask: Select name from activity_log that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(status, amount, id, value)\n receivables_log(value, salary, date, name)\nTask: Select amount from stock_catalog where salary is greater than the average of value in receivables_log for matching status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS empl\nWHERE salary > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(value, level, code, salary)\n portfolio_index(type, name, date, salary)\nTask: Find code from cost_centers where code appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(value, type, amount, level)\n personnel_registry(type, date, level, salary)\nTask: Retrieve id from activity_log with value above the COUNT(value) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE value > (\n SELECT COUNT(value) FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(value, salary, amount, id)\n area_registry(date, amount, id, salary)\nTask: Find id from receivables_log where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(name, salary, level, date)\n sales_registry(value, status, code, date)\nTask: Retrieve salary from area_registry whose type is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS dept\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(level, date, name, type)\n dispatch_queue(name, amount, value, status)\nTask: Retrieve name from workforce_data with amount above the MAX(value) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE amount > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(status, amount, id, salary)\n personnel_registry(id, status, value, type)\nTask: Select amount from receivables_log where code exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(type, salary, name, amount)\n activity_log(name, type, value, date)\nTask: Retrieve code from sales_registry with amount above the AVG(value) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE amount > (\n SELECT AVG(value) FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(date, code, amount, status)\n stocking_sites(status, salary, value, name)\nTask: Select value from sourcing_list that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(status, salary, id, date)\n workforce_data(name, id, status, level)\nTask: Find name from sourcing_list where value exceeds the average value from workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE value > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(name, level, amount, type)\n cost_centers(status, salary, level, type)\nTask: Retrieve value from personnel_registry that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(level, id, value, name)\n acquisition_log(name, value, amount, salary)\nTask: Retrieve code from journal_entries with amount above the COUNT(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE amount > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(date, type, id, name)\n journal_entries(amount, salary, type, level)\nTask: Find id from stock_catalog where status appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(code, name, salary, type)\n personnel_registry(salary, code, amount, date)\nTask: Retrieve id from facility_registry whose code is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(level, name, salary, status)\n sales_queue(name, type, value, salary)\nTask: Retrieve id from cost_centers whose level is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(salary, date, type, id)\n sales_registry(salary, code, status, date)\nTask: Retrieve id from area_registry that have at least one corresponding entry in sales_registry sharing the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(amount, level, status, name)\n stocking_sites(code, name, value, amount)\nTask: Retrieve value from workforce_data whose id is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM workforce_data AS ord\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, type, name, status)\n engagement_log(status, name, id, level)\nTask: Retrieve id from sourcing_list with salary above the SUM(salary) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(id, code, type, value)\n workforce_data(status, id, value, date)\nTask: Retrieve name from portfolio_index whose status is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(type, salary, value, amount)\n cost_centers(amount, id, status, value)\nTask: Select id from dispatch_queue where code exists in cost_centers for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS empl\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(code, amount, level, name)\n journal_entries(amount, code, type, level)\nTask: Find code from acquisition_log where id appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(amount, id, type, name)\n workforce_data(value, amount, salary, level)\nTask: Select code from journal_entries where id exists in workforce_data for the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(id, level, salary, date)\n stocking_sites(type, amount, name, date)\nTask: Select amount from dispatch_queue that have at least one matching row in stocking_sites for the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(type, amount, date, code)\n sales_registry(type, id, name, amount)\nTask: Retrieve name from stocking_sites whose type is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(name, date, salary, level)\n stocking_sites(date, value, level, name)\nTask: Retrieve code from personnel_registry with salary above the MAX(value) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE salary > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(status, code, name, amount)\n dispatch_queue(name, salary, amount, status)\nTask: Find code from stock_catalog where value exceeds the minimum salary from dispatch_queue for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE value > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(name, salary, value, id)\n journal_entries(type, level, code, name)\nTask: Find amount from sales_registry where salary exceeds the count of salary from journal_entries for the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(id, level, salary, date)\n engagement_log(level, type, value, status)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(status, type, level, salary)\n sales_queue(type, level, status, date)\nTask: Find amount from engagement_log where level appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(amount, salary, id, value)\n activity_log(id, salary, name, amount)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(type, value, name, status)\n stock_catalog(code, type, date, salary)\nTask: Retrieve name from sales_registry whose level is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(id, type, status, level)\n acquisition_log(date, code, value, status)\nTask: Find id from stock_catalog where salary exceeds the total value from acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE salary > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(status, value, level, name)\n engagement_log(type, amount, name, value)\nTask: Find name from dispatch_queue where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(type, status, amount, level)\n portfolio_index(code, amount, name, level)\nTask: Select id from sales_registry where salary is greater than the maximum of value in portfolio_index for matching type.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE salary > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(type, level, value, name)\n portfolio_index(type, id, date, level)\nTask: Retrieve name from acquisition_log that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(status, value, code, type)\n journal_entries(code, value, name, amount)\nTask: Retrieve salary from activity_log with amount above the MIN(amount) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(status, date, name, type)\n sales_registry(status, id, salary, name)\nTask: Select salary from acquisition_log that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(value, id, amount, code)\n attribute_groups(date, code, name, amount)\nTask: Retrieve amount from area_registry whose type is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(name, id, salary, value)\n journal_entries(salary, id, code, name)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(status, salary, id, code)\n cost_centers(code, value, name, id)\nTask: Find salary from stock_catalog where status appears in cost_centers entries with matching id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(amount, value, type, date)\n journal_entries(name, amount, id, level)\nTask: Find amount from sales_registry where type appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(salary, value, status, amount)\n engagement_log(id, level, code, status)\nTask: Find name from portfolio_index where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(salary, value, code, level)\n receivables_log(code, type, amount, salary)\nTask: Select code from workforce_data where amount is greater than the minimum of salary in receivables_log for matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(date, name, status, value)\n sourcing_list(level, date, id, amount)\nTask: Find value from workforce_data where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(status, amount, type, level)\n acquisition_log(name, type, date, id)\nTask: Select value from workforce_data where status exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, date, amount, level)\n journal_entries(id, salary, level, type)\nTask: Find value from dispatch_queue where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(date, type, salary, code)\n sales_queue(status, amount, date, id)\nTask: Select salary from engagement_log where salary is greater than the average of amount in sales_queue for matching level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(type, amount, value, code)\n sourcing_list(salary, level, date, value)\nTask: Retrieve amount from activity_log that have at least one corresponding entry in sourcing_list sharing the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(id, amount, name, type)\n personnel_registry(name, value, salary, level)\nTask: Select amount from activity_log that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(status, id, date, type)\n facility_registry(type, date, name, level)\nTask: Find amount from sourcing_list where level appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(type, date, name, salary)\n stock_catalog(id, level, status, date)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(type, salary, code, status)\n dispatch_queue(amount, date, level, status)\nTask: Retrieve value from portfolio_index with salary above the AVG(value) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(amount, salary, code, level)\n acquisition_log(type, value, name, status)\nTask: Retrieve name from sourcing_list whose status is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(value, name, level, salary)\n activity_log(name, level, type, salary)\nTask: Retrieve salary from acquisition_log with salary above the MAX(salary) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(value, salary, name, date)\n cost_centers(date, code, salary, id)\nTask: Select name from sales_queue where level exists in cost_centers for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(status, amount, level, code)\n attribute_groups(date, type, status, id)\nTask: Retrieve salary from stocking_sites whose code is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(amount, status, level, name)\n stocking_sites(id, salary, code, status)\nTask: Select code from cost_centers where id exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(type, name, status, amount)\n sourcing_list(salary, level, status, code)\nTask: Select name from workforce_data that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(status, date, amount, salary)\n stocking_sites(type, salary, status, level)\nTask: Select salary from portfolio_index where salary is greater than the total of value in stocking_sites for matching type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE salary > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(name, id, date, type)\n cost_centers(name, status, level, type)\nTask: Find amount from facility_registry where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(date, name, code, status)\n portfolio_index(date, salary, type, code)\nTask: Find name from stock_catalog where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, id, status, type)\n journal_entries(value, code, status, date)\nTask: Retrieve amount from stocking_sites with salary above the SUM(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(code, type, date, value)\n portfolio_index(status, code, value, name)\nTask: Find id from activity_log where code appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, name, status, date)\n area_registry(value, amount, status, name)\nTask: Find name from portfolio_index where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, value, date, id)\n dispatch_queue(code, type, amount, status)\nTask: Select name from attribute_groups where code exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(name, code, status, type)\n personnel_registry(value, salary, type, name)\nTask: Select value from workforce_data that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, value, type, name)\n workforce_data(type, status, level, name)\nTask: Retrieve amount from dispatch_queue with value above the COUNT(amount) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(salary, type, date, id)\n attribute_groups(value, date, name, status)\nTask: Find id from sales_queue where salary exceeds the count of salary from attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(type, value, code, amount)\n sales_registry(name, value, type, salary)\nTask: Select code from facility_registry that have at least one matching row in sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(id, amount, name, status)\n facility_registry(date, salary, status, name)\nTask: Find name from receivables_log where value exceeds the maximum amount from facility_registry for the same id.\nSQL:", "sql": "SELECT name FROM receivables_log AS prod\nWHERE value > (\n SELECT MAX(amount) FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(name, value, level, salary)\n journal_entries(salary, date, level, id)\nTask: Find amount from personnel_registry where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(value, amount, salary, type)\n cost_centers(date, salary, code, name)\nTask: Select code from receivables_log where code exists in cost_centers for the same code.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(salary, code, id, status)\n attribute_groups(code, date, amount, salary)\nTask: Select amount from facility_registry where salary is greater than the maximum of value in attribute_groups for matching status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE salary > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(amount, salary, value, status)\n stock_catalog(type, value, id, date)\nTask: Select salary from dispatch_queue where status exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(id, name, level, code)\n engagement_log(level, code, date, salary)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(type, name, code, date)\n dispatch_queue(id, type, name, date)\nTask: Select amount from acquisition_log that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(id, status, level, code)\n sales_queue(name, salary, date, amount)\nTask: Select name from cost_centers where code exists in sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(value, date, level, name)\n acquisition_log(code, name, value, date)\nTask: Retrieve salary from sourcing_list with amount above the SUM(salary) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, code, name, date)\n workforce_data(id, name, status, salary)\nTask: Select id from dispatch_queue that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(name, id, type, code)\n facility_registry(salary, amount, date, code)\nTask: Find code from personnel_registry where a matching record exists in facility_registry with the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, status, id, value)\n workforce_data(id, salary, type, value)\nTask: Select name from dispatch_queue where amount is greater than the total of salary in workforce_data for matching code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(id, salary, status, amount)\n dispatch_queue(value, type, salary, level)\nTask: Retrieve id from attribute_groups that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(code, type, amount, id)\n portfolio_index(status, amount, id, type)\nTask: Select code from stocking_sites where type exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, value, status, date)\n acquisition_log(salary, value, id, name)\nTask: Retrieve amount from portfolio_index with salary above the SUM(amount) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(id, salary, value, type)\n acquisition_log(level, value, date, id)\nTask: Select id from area_registry where type exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(status, code, id, amount)\n facility_registry(value, salary, level, type)\nTask: Find salary from personnel_registry where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, value, salary, status)\n workforce_data(date, code, amount, salary)\nTask: Retrieve name from dispatch_queue with salary above the SUM(value) of workforce_data rows sharing the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(date, value, amount, id)\n acquisition_log(level, code, salary, amount)\nTask: Select amount from receivables_log where type exists in acquisition_log for the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(id, level, value, name)\n sales_queue(value, name, date, code)\nTask: Find amount from portfolio_index where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(status, value, salary, type)\n sales_queue(value, code, salary, name)\nTask: Retrieve name from acquisition_log with value above the SUM(value) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE value > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "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": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(name, level, code, value)\n sales_queue(status, name, level, code)\nTask: Select code from sourcing_list where salary is greater than the minimum of salary in sales_queue for matching type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, name, status, type)\n sourcing_list(code, date, value, type)\nTask: Retrieve salary from attribute_groups whose status is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, salary, code, id)\n acquisition_log(level, amount, id, name)\nTask: Find value from stock_catalog where salary exceeds the maximum amount from acquisition_log for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(level, status, value, date)\n stock_catalog(salary, date, amount, level)\nTask: Find id from sourcing_list where value exceeds the count of salary from stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(salary, code, type, amount)\n facility_registry(value, code, id, status)\nTask: Select amount from personnel_registry that have at least one matching row in facility_registry for the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(date, value, level, name)\n sales_queue(status, date, name, amount)\nTask: Retrieve code from area_registry that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(code, amount, level, salary)\n sales_registry(value, id, code, type)\nTask: Find name from dispatch_queue where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(type, value, status, name)\n stock_catalog(name, type, level, date)\nTask: Find value from receivables_log where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(amount, status, code, name)\n workforce_data(type, status, id, amount)\nTask: Find id from journal_entries where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(id, name, salary, date)\n facility_registry(level, id, type, salary)\nTask: Select salary from sales_queue where value is greater than the count of of salary in facility_registry for matching level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE value > (\n SELECT COUNT(salary) FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(salary, date, name, amount)\n workforce_data(amount, code, type, value)\nTask: Find code from personnel_registry where amount exceeds the total value from workforce_data for the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE amount > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(type, level, status, name)\n sales_queue(date, value, salary, name)\nTask: Find name from sourcing_list where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(type, code, status, id)\n sales_queue(date, id, type, value)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(name, date, status, value)\n receivables_log(name, status, value, date)\nTask: Find code from portfolio_index where salary exceeds the minimum salary from receivables_log for the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(code, level, salary, value)\n workforce_data(status, name, value, level)\nTask: Find amount from sales_queue where value exceeds the average value from workforce_data for the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE value > (\n SELECT AVG(value) FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(id, amount, status, type)\n stocking_sites(amount, salary, type, date)\nTask: Find value from sourcing_list where amount exceeds the minimum amount from stocking_sites for the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE amount > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, salary, id, level)\n engagement_log(value, code, amount, level)\nTask: Find value from dispatch_queue where amount exceeds the total salary from engagement_log for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(level, type, date, name)\n sales_queue(code, name, value, date)\nTask: Select code from journal_entries that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(status, amount, id, date)\n activity_log(level, name, amount, date)\nTask: Retrieve salary from stock_catalog with salary above the SUM(value) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(amount, code, type, salary)\n personnel_registry(value, amount, code, type)\nTask: Select amount from stocking_sites where code exists in personnel_registry for the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS mgr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(date, salary, value, amount)\n sales_queue(salary, value, id, name)\nTask: Find salary from acquisition_log where salary exceeds the count of salary from sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE salary > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(salary, status, value, level)\n area_registry(code, value, salary, type)\nTask: Select amount from personnel_registry that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(salary, code, type, amount)\n facility_registry(status, code, id, level)\nTask: Retrieve salary from cost_centers that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(name, amount, id, date)\n portfolio_index(value, amount, status, name)\nTask: Find id from activity_log where salary exceeds the maximum value from portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE salary > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(type, date, amount, name)\n receivables_log(date, name, id, type)\nTask: Select value from acquisition_log where amount is greater than the count of of salary in receivables_log for matching id.\nSQL:", "sql": "SELECT value FROM acquisition_log AS usr\nWHERE amount > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(level, name, amount, value)\n sourcing_list(salary, name, type, amount)\nTask: Retrieve name from facility_registry with value above the MIN(amount) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE value > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(id, name, amount, value)\n cost_centers(code, name, type, amount)\nTask: Retrieve id from receivables_log whose status is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM receivables_log AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(status, date, amount, id)\n engagement_log(name, id, level, status)\nTask: Select salary from area_registry that have at least one matching row in engagement_log for the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(value, status, name, amount)\n engagement_log(status, value, name, type)\nTask: Select value from cost_centers that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(code, name, type, amount)\n area_registry(status, id, type, date)\nTask: Find name from facility_registry where value exceeds the total salary from area_registry for the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE value > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(name, amount, status, type)\n cost_centers(code, date, type, value)\nTask: Select salary from engagement_log where salary is greater than the maximum of salary in cost_centers for matching level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS empl\nWHERE salary > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, salary, code, amount)\n area_registry(level, date, status, name)\nTask: Select amount from personnel_registry where value is greater than the minimum of amount in area_registry for matching code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(name, value, salary, code)\n portfolio_index(code, name, status, salary)\nTask: Select salary from sales_queue where value is greater than the average of amount in portfolio_index for matching type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE value > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(level, code, amount, value)\n area_registry(value, level, amount, date)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(type, level, value, amount)\n sales_registry(amount, date, name, level)\nTask: Find code from portfolio_index where id appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(level, id, salary, code)\n sales_queue(status, level, salary, name)\nTask: Select salary from sales_registry where value is greater than the count of of value in sales_queue for matching level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE value > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(status, salary, date, amount)\n facility_registry(level, type, status, date)\nTask: Select value from portfolio_index where id exists in facility_registry for the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS ord\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(level, salary, type, code)\n attribute_groups(salary, code, name, type)\nTask: Select id from engagement_log that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(salary, code, type, id)\n sales_registry(name, salary, level, amount)\nTask: Select name from sales_queue that have at least one matching row in sales_registry for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(type, status, date, salary)\n acquisition_log(amount, level, name, status)\nTask: Select value from attribute_groups that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(code, level, type, status)\n activity_log(code, id, type, amount)\nTask: Retrieve code from attribute_groups that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(date, amount, status, code)\n area_registry(code, amount, name, level)\nTask: Select code from cost_centers where status exists in area_registry for the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(code, name, level, status)\n journal_entries(name, amount, salary, type)\nTask: Retrieve amount from attribute_groups with value above the SUM(amount) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE value > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(status, amount, code, salary)\n journal_entries(salary, value, name, type)\nTask: Select salary from sourcing_list where type exists in journal_entries for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(date, level, type, salary)\n activity_log(id, code, level, name)\nTask: Find name from receivables_log where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(amount, type, status, name)\n acquisition_log(status, type, date, value)\nTask: Find code from stocking_sites where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(id, status, level, code)\n sourcing_list(amount, value, code, id)\nTask: Select code from portfolio_index where code exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(level, amount, name, date)\n sales_registry(date, value, code, name)\nTask: Find salary from stock_catalog where a matching record exists in sales_registry with the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(type, status, date, salary)\n personnel_registry(code, salary, amount, date)\nTask: Find code from receivables_log where value exceeds the total value from personnel_registry for the same status.\nSQL:", "sql": "SELECT code FROM receivables_log AS inv\nWHERE value > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(value, code, type, id)\n personnel_registry(code, status, name, level)\nTask: Retrieve value from workforce_data that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(salary, level, date, name)\n workforce_data(amount, id, name, date)\nTask: Select name from sales_registry where value is greater than the maximum of value in workforce_data for matching type.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE value > (\n SELECT MAX(value) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(level, amount, status, type)\n sales_queue(salary, name, code, amount)\nTask: Select id from stock_catalog where value is greater than the average of salary in sales_queue for matching status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE value > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(type, date, value, id)\n personnel_registry(id, code, status, level)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in personnel_registry sharing the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(id, date, status, code)\n personnel_registry(amount, code, type, id)\nTask: Find salary from attribute_groups where value exceeds the total salary from personnel_registry for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE value > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, code, status, value)\n sales_registry(date, type, id, status)\nTask: Select amount from attribute_groups where value is greater than the average of value in sales_registry for matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE value > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(id, type, status, name)\n journal_entries(id, amount, code, type)\nTask: Find salary from sales_queue where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(value, type, date, id)\n journal_entries(amount, salary, code, date)\nTask: Select id from sourcing_list where status exists in journal_entries for the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(level, salary, value, code)\n acquisition_log(status, date, amount, name)\nTask: Find salary from area_registry where amount exceeds the minimum amount from acquisition_log for the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(salary, type, status, date)\n personnel_registry(type, status, value, salary)\nTask: Select name from sourcing_list where salary is greater than the minimum of value in personnel_registry for matching level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE salary > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(name, value, status, date)\n workforce_data(type, value, level, name)\nTask: Select amount from acquisition_log that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(type, status, id, code)\n sourcing_list(date, amount, name, salary)\nTask: Select code from engagement_log where value is greater than the maximum of value in sourcing_list for matching status.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(date, code, name, type)\n area_registry(salary, id, code, level)\nTask: Select id from receivables_log where amount is greater than the minimum of value in area_registry for matching code.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(value, type, date, level)\n area_registry(type, value, name, id)\nTask: Select id from cost_centers that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(code, status, amount, type)\n stocking_sites(amount, code, status, value)\nTask: Select name from cost_centers where value is greater than the count of of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(type, code, salary, level)\n stock_catalog(name, status, date, amount)\nTask: Find id from personnel_registry where type appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS usr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(type, amount, id, status)\n attribute_groups(code, type, name, salary)\nTask: Select salary from workforce_data where status exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(id, type, amount, salary)\n sales_registry(type, level, id, status)\nTask: Retrieve code from area_registry with salary above the AVG(amount) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE salary > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(id, name, amount, date)\n facility_registry(amount, level, code, status)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(type, status, amount, code)\n sourcing_list(date, value, level, status)\nTask: Find code from workforce_data where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(type, amount, id, value)\n cost_centers(type, date, level, salary)\nTask: Select salary from engagement_log where amount is greater than the minimum of value in cost_centers for matching id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS usr\nWHERE amount > (\n SELECT MIN(value) FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(value, salary, level, code)\n facility_registry(name, type, date, level)\nTask: Select code from acquisition_log where code exists in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(code, name, id, value)\n stocking_sites(code, id, type, amount)\nTask: Find salary from sales_registry where status appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(level, code, amount, salary)\n attribute_groups(id, type, code, name)\nTask: Find amount from engagement_log where level appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(id, value, salary, code)\n engagement_log(date, status, id, type)\nTask: Find code from cost_centers where type appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT code FROM cost_centers AS empl\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, id, name, date)\n stock_catalog(status, id, date, level)\nTask: Find salary from sales_queue where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(value, id, code, date)\n stocking_sites(value, id, name, type)\nTask: Find code from area_registry where code appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(level, status, id, code)\n area_registry(date, amount, status, value)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(code, amount, date, value)\n facility_registry(value, amount, date, level)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, type, date, value)\n area_registry(id, code, value, salary)\nTask: Select code from stock_catalog that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(code, id, value, name)\n attribute_groups(id, salary, date, value)\nTask: Retrieve amount from area_registry whose level is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(value, code, id, name)\n dispatch_queue(id, value, amount, code)\nTask: Retrieve amount from sales_registry that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(code, amount, value, status)\n activity_log(type, status, name, value)\nTask: Retrieve value from dispatch_queue whose type is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(type, name, code, date)\n acquisition_log(id, level, type, date)\nTask: Find name from area_registry where level appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(type, id, level, name)\n facility_registry(level, value, code, id)\nTask: Retrieve value from stock_catalog whose level is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(id, value, amount, salary)\n journal_entries(type, name, value, amount)\nTask: Retrieve salary from stock_catalog with value above the SUM(amount) of journal_entries rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE value > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(date, value, code, level)\n activity_log(date, code, value, level)\nTask: Select value from facility_registry where id exists in activity_log for the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(level, date, type, status)\n sourcing_list(amount, value, code, salary)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in sourcing_list sharing the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, amount, id, value)\n facility_registry(value, code, level, amount)\nTask: Select name from dispatch_queue that have at least one matching row in facility_registry for the same status.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(name, amount, code, type)\n area_registry(value, id, code, status)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT name FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(status, name, date, type)\n attribute_groups(status, value, type, salary)\nTask: Find id from acquisition_log where value exceeds the maximum value from attribute_groups for the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE value > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, value, level, code)\n area_registry(id, amount, value, name)\nTask: Find code from dispatch_queue where value exceeds the minimum amount from area_registry for the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE value > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(code, type, id, status)\n engagement_log(date, amount, type, salary)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(amount, value, type, id)\n portfolio_index(status, name, type, amount)\nTask: Select code from dispatch_queue that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(amount, salary, type, name)\n portfolio_index(name, salary, status, date)\nTask: Select amount from stock_catalog where value is greater than the average of value in portfolio_index for matching status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE value > (\n SELECT AVG(value) FROM portfolio_index AS act\n WHERE act.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(name, type, status, date)\n cost_centers(amount, value, level, type)\nTask: Select name from sales_registry where salary is greater than the maximum of amount in cost_centers for matching code.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE salary > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(code, level, salary, date)\n personnel_registry(type, code, status, value)\nTask: Retrieve code from dispatch_queue with salary above the AVG(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(date, status, value, amount)\n acquisition_log(code, status, level, amount)\nTask: Select code from portfolio_index where type exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(name, type, status, code)\n dispatch_queue(value, code, name, status)\nTask: Select salary from receivables_log where code exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(level, date, name, value)\n acquisition_log(status, id, amount, value)\nTask: Retrieve code from cost_centers that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(level, salary, type, id)\n stocking_sites(name, code, id, level)\nTask: Retrieve name from stock_catalog with value above the COUNT(salary) of stocking_sites rows sharing the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: dept)(type, status, level, salary)\n attribute_groups(date, code, level, name)\nTask: Select id from activity_log where id exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS dept\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(code, name, level, type)\n area_registry(code, amount, id, date)\nTask: Retrieve amount from dispatch_queue with amount above the SUM(value) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(salary, status, date, amount)\n stock_catalog(amount, type, level, status)\nTask: Find code from area_registry where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(id, code, amount, value)\n activity_log(type, date, status, code)\nTask: Find amount from facility_registry where value exceeds the maximum value from activity_log for the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE value > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(status, level, date, name)\n dispatch_queue(type, date, name, level)\nTask: Find id from cost_centers where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(id, type, code, name)\n stocking_sites(amount, status, code, level)\nTask: Retrieve value from dispatch_queue whose type is found in stocking_sites rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(salary, name, status, date)\n sourcing_list(type, code, level, salary)\nTask: Retrieve amount from sales_registry whose id is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_registry AS ord\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(value, name, level, amount)\n journal_entries(type, value, amount, code)\nTask: Find id from portfolio_index where value exceeds the minimum salary from journal_entries for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE value > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, type, name, status)\n acquisition_log(salary, type, status, level)\nTask: Retrieve id from stock_catalog with amount above the MAX(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(name, code, status, level)\n area_registry(name, type, amount, level)\nTask: Select salary from workforce_data where type exists in area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(type, code, salary, status)\n engagement_log(status, type, salary, name)\nTask: Retrieve salary from attribute_groups with value above the COUNT(amount) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(date, value, salary, level)\n acquisition_log(name, code, type, status)\nTask: Find id from cost_centers where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(amount, date, level, id)\n facility_registry(value, type, name, id)\nTask: Select salary from dispatch_queue where salary is greater than the average of amount in facility_registry for matching level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(id, type, name, status)\n workforce_data(code, salary, name, amount)\nTask: Retrieve code from facility_registry with value above the SUM(amount) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE value > (\n SELECT SUM(amount) FROM workforce_data AS empl\n WHERE empl.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(code, value, id, status)\n personnel_registry(level, name, id, code)\nTask: Select value from sales_registry where id exists in personnel_registry for the same status.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(id, date, value, type)\n stock_catalog(value, code, status, date)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(type, status, name, code)\n facility_registry(name, value, id, status)\nTask: Select amount from acquisition_log where code exists in facility_registry for the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(level, type, name, amount)\n sourcing_list(value, level, status, code)\nTask: Retrieve value from stocking_sites with salary above the MAX(salary) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE salary > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(code, type, status, salary)\n facility_registry(level, date, code, amount)\nTask: Retrieve amount from cost_centers with value above the AVG(amount) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS usr\nWHERE value > (\n SELECT AVG(amount) FROM facility_registry AS brc\n WHERE brc.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(name, level, type, date)\n dispatch_queue(value, name, amount, id)\nTask: Find code from stocking_sites where a matching record exists in dispatch_queue with the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(level, salary, name, id)\n attribute_groups(name, id, amount, date)\nTask: Find id from portfolio_index where value exceeds the minimum salary from attribute_groups for the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS ord\nWHERE value > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(type, status, amount, level)\n facility_registry(value, amount, type, salary)\nTask: Retrieve amount from acquisition_log whose status is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, name, value, date)\n facility_registry(code, value, name, date)\nTask: Find amount from sourcing_list where code appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS empl\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(code, name, status, value)\n workforce_data(level, id, name, status)\nTask: Retrieve salary from engagement_log whose code is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(level, amount, name, type)\n sourcing_list(value, level, amount, salary)\nTask: Find code from portfolio_index where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(status, id, type, salary)\n sourcing_list(date, status, type, level)\nTask: Find name from activity_log where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(amount, id, salary, level)\n workforce_data(date, type, name, id)\nTask: Find name from activity_log where code appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(id, amount, name, status)\n cost_centers(amount, value, type, id)\nTask: Retrieve name from acquisition_log whose level is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(type, id, salary, level)\n acquisition_log(level, code, status, value)\nTask: Find salary from dispatch_queue where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(salary, type, code, name)\n facility_registry(level, date, status, code)\nTask: Retrieve name from area_registry that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(status, name, type, code)\n sales_registry(salary, name, amount, value)\nTask: Retrieve id from stock_catalog whose type is found in sales_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(date, code, salary, amount)\n stocking_sites(salary, value, date, status)\nTask: Find value from personnel_registry where type appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(level, code, type, status)\n stocking_sites(status, date, id, code)\nTask: Find code from engagement_log where salary exceeds the total salary from stocking_sites for the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(name, code, id, type)\n portfolio_index(level, status, value, name)\nTask: Select id from receivables_log where level exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(name, date, amount, value)\n cost_centers(level, type, value, name)\nTask: Find salary from facility_registry where a matching record exists in cost_centers with the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(salary, date, level, id)\n portfolio_index(amount, id, status, name)\nTask: Find amount from facility_registry where a matching record exists in portfolio_index with the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(level, status, code, id)\n area_registry(status, code, level, amount)\nTask: Find amount from personnel_registry where status appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE status IN (\n SELECT status FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(code, type, id, salary)\n facility_registry(amount, id, name, salary)\nTask: Find id from sales_queue where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(amount, salary, value, name)\n dispatch_queue(level, date, value, salary)\nTask: Find salary from stock_catalog where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(id, value, code, name)\n acquisition_log(status, name, amount, id)\nTask: Retrieve amount from dispatch_queue with salary above the COUNT(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE salary > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(amount, type, value, name)\n area_registry(id, amount, level, date)\nTask: Find salary from workforce_data where salary exceeds the count of salary from area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(type, status, id, amount)\n cost_centers(code, id, type, salary)\nTask: Find code from portfolio_index where status appears in cost_centers entries with matching type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(id, code, name, amount)\n stock_catalog(amount, level, name, value)\nTask: Select name from personnel_registry where salary is greater than the maximum of amount in stock_catalog for matching status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS mgr\nWHERE salary > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(status, code, name, type)\n portfolio_index(value, level, salary, amount)\nTask: Find value from stock_catalog where id appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(value, date, amount, status)\n attribute_groups(salary, amount, type, name)\nTask: Select value from personnel_registry where amount is greater than the average of amount in attribute_groups for matching id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(type, level, salary, amount)\n sourcing_list(salary, id, name, status)\nTask: Retrieve amount from acquisition_log whose status is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, date, id, status)\n area_registry(amount, salary, code, value)\nTask: Find amount from dispatch_queue where code appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(id, code, date, salary)\n stock_catalog(id, status, amount, type)\nTask: Find code from sourcing_list where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(amount, value, id, code)\n engagement_log(date, status, type, name)\nTask: Find salary from stocking_sites where value exceeds the maximum value from engagement_log for the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE value > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(status, amount, code, id)\n cost_centers(amount, level, value, salary)\nTask: Select value from stocking_sites that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(value, date, name, status)\n personnel_registry(level, date, value, status)\nTask: Find code from sourcing_list where id appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS dept\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(type, date, code, id)\n acquisition_log(status, name, date, code)\nTask: Select amount from stock_catalog where status exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(salary, date, amount, status)\n stocking_sites(salary, value, type, status)\nTask: Find value from receivables_log where code appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(level, name, amount, type)\n stocking_sites(date, name, status, code)\nTask: Find id from personnel_registry where code appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS mgr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(level, date, status, type)\n acquisition_log(type, name, level, salary)\nTask: Retrieve amount from workforce_data with value above the SUM(amount) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE value > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(code, name, value, type)\n receivables_log(amount, level, code, salary)\nTask: Find name from acquisition_log where value exceeds the count of salary from receivables_log for the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: emp)(id, code, amount, date)\n activity_log(salary, status, name, value)\nTask: Find amount from engagement_log where id appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(name, status, type, amount)\n dispatch_queue(id, amount, level, value)\nTask: Find salary from workforce_data where salary exceeds the total salary from dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, code, value, date)\n cost_centers(code, value, date, name)\nTask: Find salary from activity_log where salary exceeds the minimum amount from cost_centers for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(type, id, code, date)\n area_registry(type, id, status, value)\nTask: Select code from cost_centers that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(id, date, value, code)\n attribute_groups(status, name, value, level)\nTask: Find amount from stocking_sites where status appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(name, date, value, code)\n sourcing_list(code, salary, level, id)\nTask: Find amount from attribute_groups where amount exceeds the total value from sourcing_list for the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(id, date, amount, code)\n workforce_data(status, id, value, type)\nTask: Retrieve code from stock_catalog whose status is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(amount, level, status, value)\n cost_centers(salary, type, id, name)\nTask: Retrieve name from sales_registry with salary above the SUM(amount) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(date, status, value, name)\n area_registry(name, status, code, salary)\nTask: Select code from sales_queue that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(amount, value, level, salary)\n sales_registry(amount, type, status, name)\nTask: Select value from attribute_groups where type exists in sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(value, date, name, salary)\n receivables_log(type, level, salary, value)\nTask: Select value from stocking_sites where value is greater than the total of salary in receivables_log for matching code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE value > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(date, amount, name, salary)\n attribute_groups(name, code, salary, id)\nTask: Find value from facility_registry where salary exceeds the maximum amount from attribute_groups for the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(amount, value, name, status)\n workforce_data(status, type, level, amount)\nTask: Select amount from engagement_log that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(type, salary, amount, status)\n journal_entries(status, id, type, name)\nTask: Select amount from stocking_sites where amount is greater than the total of value in journal_entries for matching id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE amount > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(name, status, amount, level)\n sales_registry(date, code, type, amount)\nTask: Select amount from stocking_sites where salary is greater than the average of amount in sales_registry for matching type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS dept\nWHERE salary > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.type = dept.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "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}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(status, code, amount, type)\n activity_log(salary, type, status, id)\nTask: Retrieve value from personnel_registry with salary above the COUNT(value) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(id, code, salary, name)\n sales_registry(amount, date, level, value)\nTask: Select salary from sourcing_list where type exists in sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(date, code, type, value)\n dispatch_queue(salary, date, status, level)\nTask: Select salary from attribute_groups that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(date, value, salary, type)\n acquisition_log(value, name, amount, id)\nTask: Find id from dispatch_queue where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(status, type, amount, salary)\n activity_log(salary, type, date, value)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(id, date, amount, status)\n dispatch_queue(date, id, name, type)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in dispatch_queue sharing the same status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(date, level, code, value)\n journal_entries(date, level, id, code)\nTask: Select code from stocking_sites where level exists in journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, status, name, id)\n sales_registry(code, type, id, date)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: ord)(name, amount, level, type)\n sourcing_list(amount, value, status, salary)\nTask: Find name from engagement_log where amount exceeds the total salary from sourcing_list for the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(name, level, amount, date)\n stocking_sites(amount, value, status, name)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(status, name, date, id)\n receivables_log(date, name, id, amount)\nTask: Retrieve code from facility_registry that have at least one corresponding entry in receivables_log sharing the same type.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(date, value, id, code)\n acquisition_log(id, status, type, date)\nTask: Find value from sales_queue where salary exceeds the total value from acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS emp\nWHERE salary > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(code, id, value, date)\n cost_centers(value, salary, type, amount)\nTask: Select value from engagement_log that have at least one matching row in cost_centers for the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(type, status, salary, name)\n sales_queue(level, salary, name, code)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(type, name, id, code)\n attribute_groups(amount, salary, id, code)\nTask: Select amount from receivables_log where type exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(amount, name, status, id)\n activity_log(name, type, value, id)\nTask: Select id from engagement_log that have at least one matching row in activity_log for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(date, level, amount, salary)\n sourcing_list(status, id, name, date)\nTask: Select id from stock_catalog where level exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(name, value, id, level)\n sales_registry(id, date, salary, name)\nTask: Find id from sales_queue where salary exceeds the count of salary from sales_registry for the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(salary, name, type, value)\n dispatch_queue(type, amount, code, name)\nTask: Retrieve salary from receivables_log that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(level, type, salary, name)\n area_registry(level, salary, amount, code)\nTask: Find value from personnel_registry where salary exceeds the average salary from area_registry for the same type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(type, amount, status, id)\n acquisition_log(amount, status, name, type)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(salary, value, amount, level)\n stock_catalog(amount, code, date, salary)\nTask: Retrieve salary from activity_log with salary above the SUM(amount) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(name, type, id, date)\n sales_queue(value, id, type, date)\nTask: Retrieve amount from stocking_sites that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(name, amount, value, salary)\n area_registry(value, salary, amount, code)\nTask: Find name from facility_registry where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(value, level, code, date)\n stock_catalog(code, level, name, amount)\nTask: Select value from receivables_log where status exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(value, level, code, date)\n receivables_log(amount, code, value, level)\nTask: Select id from cost_centers that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(date, value, name, type)\n engagement_log(id, level, date, type)\nTask: Find value from stock_catalog where salary exceeds the maximum value from engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE salary > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(value, type, id, amount)\n cost_centers(amount, salary, date, type)\nTask: Select amount from personnel_registry that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(date, type, value, name)\n area_registry(code, date, value, level)\nTask: Find amount from journal_entries where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, code, type, level)\n dispatch_queue(level, date, amount, code)\nTask: Find name from stock_catalog where type appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(salary, amount, value, code)\n receivables_log(date, type, value, name)\nTask: Retrieve amount from personnel_registry whose level is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, name, date, type)\n attribute_groups(id, status, level, salary)\nTask: Retrieve id from stock_catalog that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(level, type, status, code)\n sales_queue(code, date, type, salary)\nTask: Find code from personnel_registry where amount exceeds the maximum value from sales_queue for the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE amount > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(type, amount, id, value)\n engagement_log(status, name, id, code)\nTask: Retrieve id from personnel_registry that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(level, salary, type, id)\n area_registry(salary, type, name, value)\nTask: Find amount from sales_registry where value exceeds the maximum value from area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE value > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(status, value, name, salary)\n personnel_registry(name, date, type, level)\nTask: Find name from sales_registry where amount exceeds the minimum amount from personnel_registry for the same id.\nSQL:", "sql": "SELECT name FROM sales_registry AS usr\nWHERE amount > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(type, id, name, code)\n sales_registry(value, type, code, salary)\nTask: Find amount from acquisition_log where value exceeds the maximum amount from sales_registry for the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE value > (\n SELECT MAX(amount) FROM sales_registry AS cst\n WHERE cst.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(type, date, level, status)\n portfolio_index(salary, id, type, name)\nTask: Select code from area_registry where id exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(id, amount, type, name)\n portfolio_index(value, salary, level, name)\nTask: Find salary from stock_catalog where value exceeds the maximum amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE value > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(salary, type, status, value)\n facility_registry(id, status, name, value)\nTask: Find salary from personnel_registry where level appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(id, type, amount, level)\n stock_catalog(name, date, value, salary)\nTask: Retrieve name from portfolio_index with salary above the SUM(value) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE salary > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(salary, date, type, code)\n cost_centers(type, name, level, code)\nTask: Select id from sales_registry where status exists in cost_centers for the same level.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(code, salary, status, name)\n engagement_log(value, salary, code, name)\nTask: Find name from sales_queue where value exceeds the average salary from engagement_log for the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS inv\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(status, salary, id, value)\n sales_registry(type, amount, salary, status)\nTask: Select salary from portfolio_index that have at least one matching row in sales_registry for the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(date, amount, id, type)\n stocking_sites(code, status, value, amount)\nTask: Find amount from workforce_data where a matching record exists in stocking_sites with the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "amount", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, status, level, name)\n acquisition_log(value, name, status, type)\nTask: Retrieve name from stock_catalog whose status is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(value, id, status, level)\n area_registry(salary, amount, level, status)\nTask: Retrieve id from sales_registry with amount above the COUNT(salary) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: emp)(id, name, code, status)\n activity_log(code, id, status, name)\nTask: Find salary from sales_queue where salary exceeds the average amount from activity_log for the same code.\nSQL:", "sql": "SELECT salary FROM sales_queue AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(code, name, type, id)\n workforce_data(date, type, level, salary)\nTask: Select amount from area_registry that have at least one matching row in workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(value, date, level, salary)\n stocking_sites(value, status, type, amount)\nTask: Retrieve id from sales_registry whose level is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: empl)(type, value, date, id)\n facility_registry(name, code, type, salary)\nTask: Retrieve name from portfolio_index whose code is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(value, code, id, status)\n area_registry(type, name, amount, salary)\nTask: Retrieve salary from engagement_log with salary above the MIN(value) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE salary > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(code, type, amount, name)\n attribute_groups(id, status, salary, type)\nTask: Find value from area_registry where salary exceeds the total salary from attribute_groups for the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, code, status, name)\n cost_centers(date, value, level, type)\nTask: Find code from sourcing_list where code appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS inv\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(amount, level, status, code)\n personnel_registry(name, code, value, type)\nTask: Select salary from area_registry where salary is greater than the minimum of amount in personnel_registry for matching status.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(id, type, date, salary)\n stock_catalog(amount, name, code, id)\nTask: Find salary from acquisition_log where salary exceeds the average value from stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE salary > (\n SELECT AVG(value) FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, amount, salary, code)\n workforce_data(name, level, type, date)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(value, name, status, amount)\n stocking_sites(level, code, salary, status)\nTask: Select amount from receivables_log that have at least one matching row in stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(code, level, id, type)\n activity_log(code, id, value, name)\nTask: Find salary from area_registry where amount exceeds the maximum value from activity_log for the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS empl\nWHERE amount > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(amount, level, salary, date)\n stock_catalog(level, code, id, amount)\nTask: Select salary from area_registry that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(level, type, value, name)\n journal_entries(type, code, name, level)\nTask: Retrieve value from acquisition_log that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(type, id, status, level)\n acquisition_log(amount, date, status, name)\nTask: Find code from journal_entries where amount exceeds the average value from acquisition_log for the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE amount > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(date, salary, id, code)\n engagement_log(salary, level, date, id)\nTask: Find name from activity_log where type appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT name FROM activity_log AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: prod)(salary, level, amount, name)\n acquisition_log(value, name, amount, id)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(type, salary, amount, name)\n sourcing_list(level, salary, date, code)\nTask: Find id from facility_registry where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(status, type, code, salary)\n sales_registry(level, salary, code, type)\nTask: Select code from receivables_log where salary is greater than the total of salary in sales_registry for matching id.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(name, value, date, id)\n sales_queue(salary, value, code, id)\nTask: Find id from activity_log where code appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(code, date, amount, type)\n sourcing_list(value, amount, name, type)\nTask: Select code from area_registry where salary is greater than the count of of value in sourcing_list for matching level.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE salary > (\n SELECT COUNT(value) FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, amount, value, level)\n journal_entries(value, date, salary, id)\nTask: Retrieve value from sourcing_list whose code is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(level, type, date, id)\n sales_queue(id, status, name, level)\nTask: Select salary from sourcing_list that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(salary, id, type, value)\n engagement_log(name, code, type, status)\nTask: Select name from attribute_groups where value is greater than the minimum of amount in engagement_log for matching level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE value > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(salary, name, amount, status)\n sales_queue(amount, salary, id, type)\nTask: Find salary from area_registry where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(level, name, id, code)\n activity_log(level, date, code, value)\nTask: Select name from dispatch_queue where type exists in activity_log for the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(type, name, date, status)\n stock_catalog(level, status, type, amount)\nTask: Find id from personnel_registry where amount exceeds the maximum amount from stock_catalog for the same level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE amount > (\n SELECT MAX(amount) FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(value, level, code, amount)\n area_registry(status, salary, name, amount)\nTask: Retrieve id from receivables_log with salary above the SUM(value) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE salary > (\n SELECT SUM(value) FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(type, salary, date, value)\n facility_registry(level, name, value, id)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(status, amount, id, name)\n attribute_groups(status, salary, date, amount)\nTask: Find amount from sourcing_list where id appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(id, level, code, name)\n attribute_groups(value, level, name, salary)\nTask: Find amount from sales_queue where type appears in attribute_groups entries with matching type.\nSQL:", "sql": "SELECT amount FROM sales_queue AS inv\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: usr)(id, value, name, salary)\n stocking_sites(id, code, date, status)\nTask: Find amount from dispatch_queue where code appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = usr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(name, salary, level, code)\n sales_registry(value, status, salary, name)\nTask: Select id from receivables_log where value is greater than the count of of amount in sales_registry for matching level.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(amount, status, type, date)\n activity_log(code, salary, type, id)\nTask: Find id from workforce_data where amount exceeds the minimum value from activity_log for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS dept\nWHERE amount > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(name, salary, code, value)\n workforce_data(date, code, name, type)\nTask: Retrieve code from sourcing_list whose level is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM sourcing_list AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(type, level, value, date)\n cost_centers(id, value, type, level)\nTask: Select amount from engagement_log that have at least one matching row in cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(amount, id, type, status)\n sales_registry(amount, status, code, level)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(id, amount, salary, type)\n engagement_log(status, level, code, name)\nTask: Retrieve salary from portfolio_index with value above the MIN(salary) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE value > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(salary, amount, level, name)\n attribute_groups(amount, status, value, code)\nTask: Find code from activity_log where salary exceeds the minimum salary from attribute_groups for the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: empl)(amount, level, code, status)\n sales_registry(level, date, value, type)\nTask: Find id from personnel_registry where amount exceeds the average amount from sales_registry for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS empl\nWHERE amount > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(salary, id, status, level)\n dispatch_queue(salary, amount, value, id)\nTask: Find code from portfolio_index where amount exceeds the count of value from dispatch_queue for the same type.\nSQL:", "sql": "SELECT code FROM portfolio_index AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(id, status, value, date)\n cost_centers(value, amount, date, level)\nTask: Retrieve salary from dispatch_queue with amount above the SUM(value) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(code, level, name, id)\n receivables_log(value, date, salary, status)\nTask: Select id from sourcing_list where id exists in receivables_log for the same status.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(amount, salary, code, name)\n stocking_sites(code, amount, type, value)\nTask: Retrieve code from area_registry that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(date, salary, id, level)\n sales_queue(type, value, name, id)\nTask: Find name from engagement_log where status appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(id, salary, code, date)\n activity_log(id, amount, status, date)\nTask: Find code from portfolio_index where value exceeds the total salary from activity_log for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS emp\nWHERE value > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(amount, code, type, name)\n portfolio_index(id, name, status, level)\nTask: Select code from facility_registry where value is greater than the average of amount in portfolio_index for matching id.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE value > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(status, amount, value, id)\n attribute_groups(amount, level, value, salary)\nTask: Find code from workforce_data where type appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: ord)(value, level, salary, type)\n acquisition_log(name, salary, date, value)\nTask: Find id from personnel_registry where salary exceeds the average amount from acquisition_log for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(code, type, value, id)\n portfolio_index(salary, type, name, date)\nTask: Find value from receivables_log where type appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(name, salary, date, value)\n sales_queue(value, id, type, level)\nTask: Retrieve code from workforce_data whose level is found in sales_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(salary, name, type, amount)\n activity_log(code, name, salary, amount)\nTask: Retrieve value from sales_queue with amount above the COUNT(salary) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(status, id, date, type)\n personnel_registry(name, code, level, type)\nTask: Select id from area_registry that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(id, value, date, name)\n dispatch_queue(code, name, level, date)\nTask: Find salary from sales_registry where amount exceeds the total salary from dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE amount > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(date, value, salary, status)\n sales_queue(code, id, type, amount)\nTask: Find name from engagement_log where salary exceeds the average value from sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE salary > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(level, salary, name, value)\n stock_catalog(value, code, name, type)\nTask: Find value from receivables_log where level appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(code, status, value, type)\n personnel_registry(salary, status, level, date)\nTask: Retrieve value from area_registry with value above the SUM(value) of personnel_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS mgr\nWHERE value > (\n SELECT SUM(value) FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(date, id, amount, name)\n stocking_sites(value, type, date, id)\nTask: Select amount from facility_registry where salary is greater than the total of amount in stocking_sites for matching code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(date, name, type, salary)\n engagement_log(salary, type, id, value)\nTask: Select salary from facility_registry where salary is greater than the count of of value in engagement_log for matching level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(level, salary, amount, type)\n cost_centers(id, salary, type, level)\nTask: Retrieve salary from journal_entries with salary above the AVG(salary) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(status, name, value, salary)\n acquisition_log(code, salary, date, status)\nTask: Select amount from stocking_sites that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(value, id, type, salary)\n cost_centers(salary, amount, status, code)\nTask: Select id from stock_catalog where code exists in cost_centers for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(level, type, amount, id)\n journal_entries(value, type, level, code)\nTask: Retrieve id from area_registry that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(id, type, amount, name)\n stocking_sites(date, status, id, name)\nTask: Select name from activity_log that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: empl)(date, amount, type, status)\n facility_registry(amount, date, id, level)\nTask: Find salary from stocking_sites where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(value, type, amount, name)\n sourcing_list(id, level, name, type)\nTask: Find salary from cost_centers where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(salary, date, code, level)\n stocking_sites(salary, level, value, type)\nTask: Select amount from activity_log where status exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(code, name, value, type)\n engagement_log(salary, id, name, type)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(status, name, amount, date)\n stock_catalog(name, status, amount, date)\nTask: Find salary from workforce_data where amount exceeds the average salary from stock_catalog for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, type, id, salary)\n cost_centers(salary, value, id, level)\nTask: Retrieve value from portfolio_index whose status is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(date, value, name, id)\n cost_centers(id, status, salary, amount)\nTask: Select code from acquisition_log where amount is greater than the total of salary in cost_centers for matching level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(type, id, status, code)\n portfolio_index(amount, value, id, date)\nTask: Retrieve name from sales_registry that have at least one corresponding entry in portfolio_index sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: dept)(salary, date, type, status)\n stock_catalog(amount, status, date, value)\nTask: Retrieve name from cost_centers with salary above the SUM(value) of stock_catalog rows sharing the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE salary > (\n SELECT SUM(value) FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(value, status, id, type)\n cost_centers(value, status, type, date)\nTask: Select value from sales_registry where amount is greater than the average of salary in cost_centers for matching id.\nSQL:", "sql": "SELECT value FROM sales_registry AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(amount, value, name, type)\n facility_registry(id, status, amount, level)\nTask: Find id from stocking_sites where salary exceeds the total salary from facility_registry for the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE salary > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(code, name, status, salary)\n journal_entries(type, level, id, value)\nTask: Find code from facility_registry where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = empl.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(date, level, value, salary)\n dispatch_queue(name, id, code, date)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(id, type, date, status)\n receivables_log(salary, name, level, status)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(salary, value, type, amount)\n dispatch_queue(status, level, date, type)\nTask: Retrieve id from portfolio_index with salary above the COUNT(value) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE salary > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, code, level, name)\n facility_registry(type, salary, status, level)\nTask: Select value from acquisition_log where amount is greater than the count of of value in facility_registry for matching level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(name, date, id, level)\n workforce_data(level, date, name, code)\nTask: Select code from activity_log where code exists in workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(id, value, code, name)\n sales_registry(id, type, date, code)\nTask: Find salary from acquisition_log where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(name, salary, type, code)\n stocking_sites(amount, name, type, code)\nTask: Select amount from cost_centers that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(code, status, value, id)\n sourcing_list(value, name, id, type)\nTask: Find name from portfolio_index where level appears in sourcing_list entries with matching type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS inv\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, type, date, name)\n stocking_sites(name, value, type, id)\nTask: Retrieve id from stock_catalog that have at least one corresponding entry in stocking_sites sharing the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(name, value, id, type)\n cost_centers(amount, id, name, value)\nTask: Find name from journal_entries where salary exceeds the total amount from cost_centers for the same id.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(date, type, name, value)\n receivables_log(id, level, code, name)\nTask: Find name from facility_registry where status appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(salary, id, value, status)\n cost_centers(value, status, name, code)\nTask: Retrieve salary from facility_registry that have at least one corresponding entry in cost_centers sharing the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(status, code, level, type)\n acquisition_log(date, code, status, id)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in acquisition_log sharing the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, code, amount, level)\n receivables_log(type, code, date, name)\nTask: Find id from sourcing_list where code appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(status, salary, name, date)\n journal_entries(type, code, amount, date)\nTask: Select amount from workforce_data where id exists in journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS ord\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(value, type, name, salary)\n receivables_log(level, status, type, date)\nTask: Retrieve salary from journal_entries whose code is found in receivables_log rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(salary, date, type, amount)\n facility_registry(code, value, id, name)\nTask: Find name from sales_queue where value exceeds the average salary from facility_registry for the same type.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(level, date, id, amount)\n dispatch_queue(type, code, date, status)\nTask: Select amount from personnel_registry that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, value, id, level)\n workforce_data(type, salary, name, code)\nTask: Find amount from sourcing_list where amount exceeds the count of salary from workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.code = inv.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(id, type, amount, salary)\n sales_queue(date, level, code, value)\nTask: Select code from personnel_registry that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(name, amount, date, code)\n journal_entries(level, value, date, name)\nTask: Retrieve amount from stocking_sites whose type is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS inv\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(name, salary, date, type)\n workforce_data(amount, level, id, name)\nTask: Select id from journal_entries where id exists in workforce_data for the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: prod)(type, code, date, level)\n stocking_sites(date, code, salary, status)\nTask: Retrieve salary from engagement_log with value above the SUM(value) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(level, id, type, date)\n activity_log(level, code, status, type)\nTask: Retrieve code from stock_catalog whose type is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(type, value, name, date)\n journal_entries(level, date, amount, code)\nTask: Retrieve code from portfolio_index whose code is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(level, date, status, value)\n acquisition_log(name, code, salary, id)\nTask: Select salary from receivables_log where salary is greater than the maximum of amount in acquisition_log for matching level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE salary > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(value, status, date, code)\n cost_centers(id, status, code, name)\nTask: Select name from workforce_data where type exists in cost_centers for the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(value, name, type, date)\n portfolio_index(salary, level, name, status)\nTask: Find name from journal_entries where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(value, name, code, level)\n journal_entries(id, amount, level, value)\nTask: Retrieve salary from portfolio_index whose code is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(date, name, amount, status)\n dispatch_queue(name, code, id, value)\nTask: Select code from journal_entries that have at least one matching row in dispatch_queue for the same type.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(level, salary, amount, type)\n attribute_groups(date, code, status, type)\nTask: Select amount from acquisition_log that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(value, type, salary, date)\n dispatch_queue(name, salary, date, amount)\nTask: Find salary from stock_catalog where salary exceeds the count of salary from dispatch_queue for the same id.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE salary > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(id, amount, level, salary)\n engagement_log(id, date, status, level)\nTask: Select name from journal_entries that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT name FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(date, id, value, name)\n journal_entries(id, name, level, amount)\nTask: Select salary from sourcing_list where amount is greater than the total of value in journal_entries for matching id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE amount > (\n SELECT SUM(value) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(status, value, salary, id)\n personnel_registry(status, id, type, code)\nTask: Retrieve value from portfolio_index with amount above the MIN(value) of personnel_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(name, code, level, status)\n area_registry(type, name, amount, status)\nTask: Find value from sourcing_list where amount exceeds the minimum value from area_registry for the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE amount > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(status, value, level, code)\n stocking_sites(id, level, amount, value)\nTask: Find id from journal_entries where id appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(status, date, level, id)\n portfolio_index(status, code, value, type)\nTask: Find value from sourcing_list where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, date, value, id)\n sourcing_list(status, level, code, value)\nTask: Retrieve amount from attribute_groups whose id is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(name, value, code, salary)\n personnel_registry(status, code, name, date)\nTask: Select salary from area_registry where status exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS ord\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, value, code, type)\n engagement_log(type, level, salary, amount)\nTask: Find name from dispatch_queue where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(code, id, value, type)\n engagement_log(code, id, value, date)\nTask: Find salary from personnel_registry where code appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS inv\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(code, type, salary, value)\n personnel_registry(level, type, id, name)\nTask: Find id from sales_registry where status appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT id FROM sales_registry AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(name, value, amount, id)\n sales_registry(code, level, salary, date)\nTask: Find code from workforce_data where level appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(amount, name, id, salary)\n stocking_sites(type, code, level, salary)\nTask: Select salary from receivables_log where code exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(type, id, code, value)\n activity_log(date, status, amount, value)\nTask: Select value from attribute_groups where salary is greater than the total of value in activity_log for matching status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: empl)(value, date, status, name)\n sales_registry(name, date, level, code)\nTask: Find code from personnel_registry where a matching record exists in sales_registry with the same code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, code, type, value)\n dispatch_queue(value, amount, salary, type)\nTask: Find value from stock_catalog where salary exceeds the count of salary from dispatch_queue for the same level.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE salary > (\n SELECT COUNT(salary) FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(value, type, level, amount)\n personnel_registry(status, type, name, value)\nTask: Retrieve salary from receivables_log with amount above the AVG(amount) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(id, level, value, status)\n attribute_groups(level, date, name, id)\nTask: Retrieve name from dispatch_queue that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, amount, salary, id)\n activity_log(code, amount, id, name)\nTask: Find id from stocking_sites where value exceeds the average amount from activity_log for the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(salary, value, level, date)\n attribute_groups(level, name, status, amount)\nTask: Find salary from dispatch_queue where salary exceeds the count of salary from attribute_groups for the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE salary > (\n SELECT COUNT(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(name, amount, value, date)\n sales_queue(name, salary, code, amount)\nTask: Select salary from workforce_data where code exists in sales_queue for the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(id, value, code, level)\n dispatch_queue(name, amount, id, salary)\nTask: Select amount from acquisition_log where id exists in dispatch_queue for the same type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS inv\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(type, value, salary, level)\n cost_centers(name, value, date, level)\nTask: Retrieve value from facility_registry whose type is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS mgr\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(salary, name, date, code)\n attribute_groups(id, code, date, amount)\nTask: Select amount from acquisition_log where amount is greater than the average of value in attribute_groups for matching id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE amount > (\n SELECT AVG(value) FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(date, amount, code, name)\n engagement_log(level, code, type, status)\nTask: Select name from acquisition_log where amount is greater than the total of value in engagement_log for matching status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE amount > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(type, salary, status, amount)\n sales_queue(level, id, type, name)\nTask: Retrieve salary from dispatch_queue with salary above the MIN(salary) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: ord)(name, level, value, type)\n workforce_data(value, salary, status, code)\nTask: Find code from sourcing_list where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT code FROM sourcing_list AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(date, level, code, salary)\n activity_log(status, id, amount, salary)\nTask: Retrieve amount from portfolio_index whose code is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(id, salary, date, amount)\n stock_catalog(code, status, level, amount)\nTask: Select value from activity_log where status exists in stock_catalog for the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, value, date, level)\n sales_registry(level, date, type, name)\nTask: Select amount from portfolio_index where value is greater than the average of amount in sales_registry for matching status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS empl\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(amount, name, code, salary)\n dispatch_queue(value, code, name, type)\nTask: Find amount from personnel_registry where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(id, level, code, amount)\n area_registry(code, value, date, salary)\nTask: Retrieve value from stocking_sites with value above the MAX(salary) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS empl\nWHERE value > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(code, date, value, id)\n journal_entries(date, code, level, status)\nTask: Find amount from stock_catalog where status appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(name, amount, code, date)\n stock_catalog(name, status, code, value)\nTask: Find id from cost_centers where value exceeds the average salary from stock_catalog for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE value > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(salary, amount, type, status)\n stock_catalog(level, value, status, type)\nTask: Select id from portfolio_index where type exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: prod)(status, date, type, salary)\n sourcing_list(type, date, id, code)\nTask: Select code from personnel_registry that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(value, id, name, code)\n journal_entries(name, status, type, value)\nTask: Find code from activity_log where value exceeds the average value from journal_entries for the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE value > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(name, type, id, salary)\n receivables_log(status, name, date, value)\nTask: Find salary from personnel_registry where salary exceeds the count of amount from receivables_log for the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(amount, level, name, date)\n sales_queue(value, date, type, name)\nTask: Find value from workforce_data where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(date, code, id, level)\n engagement_log(date, value, name, salary)\nTask: Retrieve value from acquisition_log with value above the SUM(amount) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS empl\nWHERE value > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(amount, code, value, status)\n stock_catalog(name, amount, level, id)\nTask: Select value from personnel_registry where type exists in stock_catalog for the same status.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(value, date, status, code)\n stock_catalog(id, date, amount, status)\nTask: Find value from acquisition_log where status appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(salary, value, code, date)\n cost_centers(level, date, salary, id)\nTask: Retrieve id from engagement_log whose level is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS dept\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(value, name, date, code)\n area_registry(amount, date, value, level)\nTask: Select name from facility_registry where code exists in area_registry for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS ord\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(amount, code, id, status)\n sales_registry(amount, level, code, name)\nTask: Find code from sourcing_list where salary exceeds the average amount from sales_registry for the same code.\nSQL:", "sql": "SELECT code FROM sourcing_list AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(date, amount, name, level)\n workforce_data(code, status, value, id)\nTask: Select name from sales_queue where status exists in workforce_data for the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(amount, id, value, date)\n stock_catalog(value, amount, code, salary)\nTask: Select id from area_registry that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(code, value, amount, id)\n dispatch_queue(code, salary, level, status)\nTask: Retrieve id from attribute_groups with value above the MAX(amount) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS empl\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(name, code, level, value)\n journal_entries(amount, value, salary, code)\nTask: Select salary from area_registry that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(value, id, salary, code)\n attribute_groups(amount, salary, date, status)\nTask: Retrieve id from engagement_log whose status is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(amount, date, level, type)\n facility_registry(level, salary, code, value)\nTask: Retrieve id from sales_queue with salary above the SUM(salary) of facility_registry rows sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, salary, date, name)\n acquisition_log(date, id, code, value)\nTask: Retrieve name from dispatch_queue whose status is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(type, level, status, value)\n stocking_sites(status, salary, type, level)\nTask: Retrieve name from sourcing_list that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(type, level, value, name)\n sales_queue(date, amount, value, id)\nTask: Retrieve salary from stock_catalog that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(name, value, amount, id)\n dispatch_queue(salary, status, name, level)\nTask: Find amount from journal_entries where amount exceeds the count of value from dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE amount > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.level = dept.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(level, salary, value, status)\n sales_registry(salary, name, type, date)\nTask: Find id from area_registry where id appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, type, value, id)\n receivables_log(value, type, status, amount)\nTask: Retrieve code from dispatch_queue with value above the MIN(salary) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS ord\nWHERE value > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(name, level, salary, type)\n portfolio_index(value, amount, salary, date)\nTask: Retrieve amount from area_registry whose code is found in portfolio_index rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS inv\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(type, value, level, date)\n workforce_data(type, level, date, id)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(type, value, name, status)\n receivables_log(code, salary, amount, level)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in receivables_log sharing the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(type, date, id, amount)\n dispatch_queue(salary, level, name, type)\nTask: Select name from area_registry where type exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS ord\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(code, name, type, amount)\n facility_registry(status, type, value, code)\nTask: Select amount from receivables_log that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(type, salary, level, value)\n engagement_log(name, amount, date, level)\nTask: Select value from facility_registry that have at least one matching row in engagement_log for the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "value", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, amount, level, name)\n personnel_registry(code, id, name, level)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: usr)(value, level, id, name)\n engagement_log(status, type, id, value)\nTask: Find code from workforce_data where salary exceeds the maximum value from engagement_log for the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE salary > (\n SELECT MAX(value) FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(name, value, type, id)\n portfolio_index(salary, name, level, value)\nTask: Select value from facility_registry where salary is greater than the count of of amount in portfolio_index for matching type.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(value, amount, date, type)\n cost_centers(type, value, salary, status)\nTask: Find amount from activity_log where salary exceeds the total salary from cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, name, level, salary)\n acquisition_log(name, id, status, salary)\nTask: Find value from sourcing_list where status appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, value, date, salary)\n portfolio_index(id, level, date, name)\nTask: Find value from activity_log where salary exceeds the minimum value from portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS prod\nWHERE salary > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, type, status, code)\n acquisition_log(id, level, salary, status)\nTask: Retrieve name from stock_catalog whose id is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(level, amount, code, type)\n engagement_log(status, salary, id, level)\nTask: Select amount from cost_centers where code exists in engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(status, name, level, salary)\n dispatch_queue(date, code, id, value)\nTask: Retrieve id from portfolio_index that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(value, date, code, id)\n personnel_registry(amount, name, level, id)\nTask: Select id from stock_catalog where id exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(type, name, salary, value)\n sourcing_list(salary, value, level, date)\nTask: Retrieve id from facility_registry with value above the MAX(salary) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS ord\nWHERE value > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(salary, amount, value, level)\n dispatch_queue(type, level, code, date)\nTask: Select code from engagement_log where value is greater than the average of amount in dispatch_queue for matching type.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE value > (\n SELECT AVG(amount) FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(level, id, type, amount)\n journal_entries(date, level, name, type)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in journal_entries sharing the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, name, id, status)\n engagement_log(type, level, date, salary)\nTask: Retrieve code from sourcing_list that have at least one corresponding entry in engagement_log sharing the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(date, code, salary, name)\n area_registry(code, level, date, name)\nTask: Find amount from workforce_data where value exceeds the maximum value from area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE value > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(amount, name, value, status)\n attribute_groups(type, date, amount, status)\nTask: Find name from sourcing_list where status appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, amount, date, name)\n stock_catalog(name, date, level, type)\nTask: Select salary from dispatch_queue that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: empl)(name, value, salary, id)\n personnel_registry(code, status, id, type)\nTask: Retrieve code from engagement_log with amount above the AVG(amount) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS empl\nWHERE amount > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(type, salary, value, level)\n receivables_log(date, name, value, level)\nTask: Retrieve amount from dispatch_queue with amount above the AVG(value) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(status, date, id, value)\n activity_log(salary, status, date, value)\nTask: Retrieve amount from acquisition_log that have at least one corresponding entry in activity_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(amount, status, code, level)\n sourcing_list(status, amount, type, salary)\nTask: Find id from workforce_data where code appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(date, status, salary, type)\n activity_log(code, value, level, amount)\nTask: Find value from receivables_log where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(type, date, code, value)\n receivables_log(name, code, status, type)\nTask: Retrieve name from sales_queue that have at least one corresponding entry in receivables_log sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(amount, level, status, name)\n workforce_data(level, type, name, value)\nTask: Retrieve value from journal_entries with salary above the SUM(value) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS dept\nWHERE salary > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, type, code, status)\n sales_registry(status, name, level, salary)\nTask: Retrieve amount from stock_catalog with value above the AVG(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS prod\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(amount, date, status, code)\n sourcing_list(status, id, salary, amount)\nTask: Select name from area_registry where type exists in sourcing_list for the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(amount, id, value, type)\n facility_registry(salary, level, date, status)\nTask: Find name from sales_queue where value exceeds the maximum salary from facility_registry for the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS prod\nWHERE value > (\n SELECT MAX(salary) FROM facility_registry AS brc\n WHERE brc.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(status, code, date, value)\n stock_catalog(amount, date, name, value)\nTask: Find salary from journal_entries where salary exceeds the minimum amount from stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(name, status, type, level)\n receivables_log(level, salary, id, value)\nTask: Select name from stocking_sites where amount is greater than the average of salary in receivables_log for matching id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(type, id, code, amount)\n journal_entries(id, level, code, status)\nTask: Find name from facility_registry where salary exceeds the total amount from journal_entries for the same level.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE salary > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: usr)(status, value, amount, id)\n acquisition_log(name, date, type, code)\nTask: Select value from sourcing_list where type exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(date, level, value, code)\n acquisition_log(value, name, level, date)\nTask: Retrieve code from stock_catalog whose code is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(code, value, id, level)\n personnel_registry(salary, amount, date, value)\nTask: Select name from stock_catalog that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(salary, amount, code, value)\n journal_entries(code, level, amount, id)\nTask: Retrieve amount from sales_registry with amount above the MIN(salary) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE amount > (\n SELECT MIN(salary) FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(type, value, salary, id)\n acquisition_log(salary, name, value, amount)\nTask: Find name from stock_catalog where amount exceeds the maximum value from acquisition_log for the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE amount > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(code, date, amount, level)\n facility_registry(status, code, name, level)\nTask: Find name from receivables_log where level appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(code, date, salary, status)\n area_registry(id, name, date, level)\nTask: Select value from personnel_registry that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, code, status, value)\n stock_catalog(name, salary, type, date)\nTask: Find name from attribute_groups where type appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(id, date, type, name)\n attribute_groups(date, id, type, status)\nTask: Find value from activity_log where id appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(type, date, value, name)\n acquisition_log(id, date, code, amount)\nTask: Select value from sourcing_list that have at least one matching row in acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: mgr)(type, date, salary, value)\n personnel_registry(status, id, name, value)\nTask: Retrieve id from attribute_groups with amount above the MIN(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS mgr\nWHERE amount > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(id, value, salary, level)\n attribute_groups(value, salary, status, code)\nTask: Select amount from area_registry where level exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(level, value, date, status)\n stocking_sites(code, level, date, type)\nTask: Select code from sales_queue where value is greater than the minimum of amount in stocking_sites for matching status.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE value > (\n SELECT MIN(amount) FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(id, name, code, type)\n cost_centers(status, name, amount, value)\nTask: Select value from acquisition_log where level exists in cost_centers for the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(level, name, date, salary)\n workforce_data(amount, status, name, value)\nTask: Retrieve id from engagement_log whose id is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(id, code, level, salary)\n facility_registry(salary, type, amount, id)\nTask: Select salary from personnel_registry where level exists in facility_registry for the same code.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(level, salary, amount, date)\n stocking_sites(salary, level, value, status)\nTask: Retrieve amount from journal_entries with value above the MAX(value) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(type, amount, salary, code)\n facility_registry(amount, type, date, name)\nTask: Retrieve name from activity_log with amount above the SUM(amount) of facility_registry rows sharing the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE amount > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(value, status, code, type)\n personnel_registry(amount, salary, id, value)\nTask: Retrieve id from journal_entries with amount above the COUNT(salary) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(name, status, code, date)\n sales_queue(type, date, value, code)\nTask: Select name from attribute_groups that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(status, level, id, salary)\n attribute_groups(type, date, value, name)\nTask: Retrieve value from stocking_sites with salary above the SUM(salary) of attribute_groups rows sharing the same level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(amount, code, value, level)\n dispatch_queue(id, salary, amount, code)\nTask: Retrieve salary from facility_registry with amount above the MAX(salary) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE amount > (\n SELECT MAX(salary) FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, status, type, code)\n journal_entries(code, amount, salary, type)\nTask: Find salary from portfolio_index where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(name, type, level, salary)\n personnel_registry(date, salary, level, name)\nTask: Select value from cost_centers that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(level, code, value, id)\n portfolio_index(type, name, amount, code)\nTask: Find name from attribute_groups where code appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE code IN (\n SELECT code FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(status, code, level, type)\n dispatch_queue(code, id, type, salary)\nTask: Select id from activity_log where type exists in dispatch_queue for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(code, date, amount, status)\n area_registry(status, name, value, salary)\nTask: Select value from cost_centers where type exists in area_registry for the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(level, type, salary, id)\n sales_registry(status, type, code, value)\nTask: Select name from cost_centers where amount is greater than the maximum of salary in sales_registry for matching type.\nSQL:", "sql": "SELECT name FROM cost_centers AS emp\nWHERE amount > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(amount, name, value, level)\n personnel_registry(status, level, type, code)\nTask: Find value from facility_registry where salary exceeds the total amount from personnel_registry for the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "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}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(level, type, name, salary)\n personnel_registry(level, id, code, amount)\nTask: Retrieve amount from activity_log with value above the MIN(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE value > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, salary, type, status)\n personnel_registry(level, amount, date, id)\nTask: Select amount from dispatch_queue that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(amount, status, value, level)\n attribute_groups(id, status, date, type)\nTask: Select code from stocking_sites where amount is greater than the average of amount in attribute_groups for matching id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(value, type, code, id)\n journal_entries(id, date, code, type)\nTask: Find amount from receivables_log where value exceeds the count of salary from journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(amount, value, code, level)\n sourcing_list(status, amount, type, salary)\nTask: Find code from sales_registry where level appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(name, amount, date, id)\n sourcing_list(level, name, status, amount)\nTask: Select name from stock_catalog where code exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS inv\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(code, salary, name, date)\n activity_log(status, type, name, amount)\nTask: Select id from attribute_groups where status exists in activity_log for the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(status, amount, value, level)\n dispatch_queue(amount, value, status, name)\nTask: Select name from stocking_sites that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(value, code, salary, status)\n sourcing_list(type, salary, name, level)\nTask: Select id from activity_log where level exists in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(name, level, id, type)\n sales_queue(name, level, value, date)\nTask: Find amount from sales_registry where a matching record exists in sales_queue with the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(amount, id, code, type)\n area_registry(value, amount, name, salary)\nTask: Find code from sales_queue where a matching record exists in area_registry with the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(id, code, date, salary)\n receivables_log(code, id, salary, status)\nTask: Find value from engagement_log where status appears in receivables_log entries with matching id.\nSQL:", "sql": "SELECT value FROM engagement_log AS empl\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.id = empl.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(type, level, name, amount)\n facility_registry(id, value, date, status)\nTask: Select salary from receivables_log where type exists in facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS usr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(date, status, amount, type)\n cost_centers(level, type, value, code)\nTask: Retrieve value from receivables_log whose code is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.id = emp.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, status, level, type)\n stocking_sites(name, salary, code, date)\nTask: Find name from sales_queue where status appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "name", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: inv)(salary, type, level, id)\n dispatch_queue(salary, amount, date, name)\nTask: Retrieve salary from stock_catalog whose type is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(type, date, status, salary)\n personnel_registry(code, status, amount, salary)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(salary, code, status, type)\n workforce_data(type, id, value, level)\nTask: Find amount from personnel_registry where amount exceeds the count of amount from workforce_data for the same code.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(status, type, name, salary)\n engagement_log(date, id, level, type)\nTask: Retrieve value from sourcing_list with amount above the SUM(value) of engagement_log rows sharing the same status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS inv\nWHERE amount > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(id, name, value, status)\n journal_entries(level, amount, type, date)\nTask: Retrieve value from facility_registry whose type is found in journal_entries rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS ord\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(level, date, value, type)\n workforce_data(salary, value, code, amount)\nTask: Find code from portfolio_index where level appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(level, id, date, status)\n cost_centers(code, type, salary, level)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(name, salary, amount, code)\n sales_registry(id, amount, level, name)\nTask: Retrieve salary from personnel_registry whose level is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS empl\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(date, salary, status, value)\n sales_queue(code, id, level, name)\nTask: Find code from area_registry where value exceeds the total value from sales_queue for the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE value > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(name, salary, type, date)\n portfolio_index(type, level, id, name)\nTask: Select code from facility_registry that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(salary, level, type, status)\n stock_catalog(type, name, value, level)\nTask: Find code from workforce_data where value exceeds the count of value from stock_catalog for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE value > (\n SELECT COUNT(value) FROM stock_catalog AS prd\n WHERE prd.code = ord.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(id, value, type, code)\n personnel_registry(amount, status, id, salary)\nTask: Retrieve salary from sales_registry whose code is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(value, salary, type, status)\n personnel_registry(code, value, status, level)\nTask: Find name from engagement_log where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(value, salary, status, id)\n receivables_log(id, status, code, salary)\nTask: Find amount from attribute_groups where type appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(type, id, status, value)\n engagement_log(id, date, level, name)\nTask: Select code from acquisition_log where amount is greater than the count of of amount in engagement_log for matching id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE amount > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(id, value, code, salary)\n acquisition_log(code, amount, level, type)\nTask: Find salary from portfolio_index where status appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(salary, type, status, level)\n stock_catalog(type, id, level, salary)\nTask: Select value from journal_entries that have at least one matching row in stock_catalog for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(code, type, date, name)\n activity_log(salary, date, status, code)\nTask: Find salary from dispatch_queue where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(value, id, code, status)\n cost_centers(code, status, id, name)\nTask: Find salary from facility_registry where id appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(name, date, amount, salary)\n receivables_log(name, status, amount, value)\nTask: Select code from facility_registry where type exists in receivables_log for the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, name, status, level)\n stock_catalog(level, date, salary, value)\nTask: Retrieve name from dispatch_queue with salary above the SUM(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(status, date, level, type)\n activity_log(name, status, salary, amount)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in activity_log sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = dept.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(name, id, status, level)\n workforce_data(date, type, id, code)\nTask: Find id from receivables_log where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(name, code, amount, type)\n receivables_log(level, salary, name, code)\nTask: Find value from stock_catalog where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(id, value, status, salary)\n attribute_groups(salary, code, id, type)\nTask: Select value from acquisition_log where salary is greater than the maximum of salary in attribute_groups for matching type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(code, type, name, level)\n workforce_data(status, salary, amount, id)\nTask: Select name from sourcing_list where value is greater than the minimum of salary in workforce_data for matching status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(type, amount, date, status)\n receivables_log(code, salary, type, id)\nTask: Select salary from workforce_data where value is greater than the average of salary in receivables_log for matching level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE value > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(id, amount, date, level)\n receivables_log(status, id, salary, value)\nTask: Retrieve code from sales_registry that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(code, amount, type, salary)\n acquisition_log(code, type, name, salary)\nTask: Find value from portfolio_index where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(status, type, name, code)\n sourcing_list(level, status, amount, salary)\nTask: Retrieve code from personnel_registry whose id is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM personnel_registry AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(date, salary, code, id)\n activity_log(code, id, type, status)\nTask: Retrieve salary from stock_catalog that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(type, name, code, id)\n portfolio_index(salary, value, level, amount)\nTask: Find code from personnel_registry where salary exceeds the maximum value from portfolio_index for the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE salary > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(amount, salary, name, type)\n attribute_groups(type, level, salary, date)\nTask: Select amount from sales_registry that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(code, salary, amount, date)\n engagement_log(code, status, name, date)\nTask: Find code from sales_queue where id appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, name, salary, value)\n workforce_data(status, code, level, salary)\nTask: Find name from portfolio_index where type appears in workforce_data entries with matching code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS mgr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, level, id, status)\n personnel_registry(level, value, salary, date)\nTask: Retrieve id from acquisition_log whose code is found in personnel_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, code, value, id)\n engagement_log(salary, value, code, date)\nTask: Select value from stocking_sites that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = mgr.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(type, amount, name, id)\n sourcing_list(level, type, date, id)\nTask: Find id from attribute_groups where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(salary, value, type, amount)\n personnel_registry(level, type, status, amount)\nTask: Select code from sourcing_list that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(type, amount, level, name)\n sourcing_list(level, amount, type, value)\nTask: Retrieve amount from attribute_groups whose code is found in sourcing_list rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS prod\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(salary, status, code, name)\n cost_centers(name, code, date, amount)\nTask: Find amount from sales_registry where salary exceeds the maximum salary from cost_centers for the same status.\nSQL:", "sql": "SELECT amount FROM sales_registry AS emp\nWHERE salary > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.status = emp.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(status, type, code, id)\n area_registry(id, status, value, level)\nTask: Find value from portfolio_index where salary exceeds the maximum amount from area_registry for the same level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE salary > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(name, amount, date, code)\n journal_entries(type, name, amount, level)\nTask: Find id from receivables_log where a matching record exists in journal_entries with the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(status, code, type, id)\n receivables_log(value, status, name, date)\nTask: Select salary from journal_entries where salary is greater than the average of salary in receivables_log for matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(date, amount, status, name)\n dispatch_queue(level, code, status, type)\nTask: Retrieve code from cost_centers with amount above the MIN(amount) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(type, code, level, amount)\n stock_catalog(salary, name, status, code)\nTask: Find code from dispatch_queue where a matching record exists in stock_catalog with the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = emp.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(date, level, name, salary)\n acquisition_log(date, id, status, amount)\nTask: Find name from stocking_sites where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(amount, status, name, level)\n attribute_groups(type, salary, level, id)\nTask: Retrieve id from area_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(amount, type, value, name)\n stock_catalog(level, value, salary, id)\nTask: Find name from cost_centers where amount exceeds the total salary from stock_catalog for the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: dept)(name, level, code, amount)\n area_registry(id, amount, type, code)\nTask: Select amount from dispatch_queue that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(date, salary, status, type)\n attribute_groups(salary, type, level, code)\nTask: Select code from cost_centers where type exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(code, type, level, status)\n sales_registry(salary, code, type, amount)\nTask: Select id from acquisition_log that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(level, code, value, salary)\n facility_registry(amount, status, level, id)\nTask: Select id from attribute_groups that have at least one matching row in facility_registry for the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(date, name, type, value)\n stock_catalog(status, level, date, id)\nTask: Retrieve value from cost_centers whose type is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS mgr\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(status, type, level, date)\n workforce_data(id, status, value, salary)\nTask: Find value from acquisition_log where code appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS prod\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(amount, value, name, level)\n sourcing_list(id, amount, value, name)\nTask: Find amount from sales_queue where code appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(value, type, amount, level)\n activity_log(status, code, amount, date)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT name FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(name, amount, type, status)\n dispatch_queue(status, salary, amount, type)\nTask: Select amount from facility_registry where code exists in dispatch_queue for the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(salary, id, type, status)\n activity_log(value, salary, level, id)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in activity_log sharing the same level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(value, level, status, amount)\n portfolio_index(id, type, code, date)\nTask: Find value from area_registry where level appears in portfolio_index entries with matching status.\nSQL:", "sql": "SELECT value FROM area_registry AS prod\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(status, date, salary, value)\n engagement_log(status, name, salary, value)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(value, date, status, amount)\n stocking_sites(type, status, code, id)\nTask: Find salary from sourcing_list where amount exceeds the total salary from stocking_sites for the same level.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS emp\nWHERE amount > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(type, status, name, salary)\n sales_registry(code, value, salary, name)\nTask: Retrieve salary from receivables_log whose id is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, name, value, status)\n acquisition_log(amount, date, type, name)\nTask: Find amount from stock_catalog where type appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(status, type, salary, value)\n sourcing_list(level, code, type, amount)\nTask: Select name from attribute_groups that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(code, name, amount, status)\n sourcing_list(name, code, date, value)\nTask: Select amount from workforce_data where salary is greater than the maximum of salary in sourcing_list for matching code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: dept)(type, level, date, amount)\n cost_centers(salary, date, status, amount)\nTask: Find salary from personnel_registry where salary exceeds the average salary from cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS dept\nWHERE salary > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(amount, value, type, id)\n cost_centers(amount, date, value, salary)\nTask: Find salary from area_registry where status appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(value, code, type, date)\n facility_registry(value, salary, level, date)\nTask: Retrieve name from journal_entries with amount above the SUM(salary) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE amount > (\n SELECT SUM(salary) FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(level, value, id, code)\n acquisition_log(level, type, code, salary)\nTask: Select id from sales_queue that have at least one matching row in acquisition_log for the same id.\nSQL:", "sql": "SELECT id FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(value, salary, code, name)\n attribute_groups(date, code, name, salary)\nTask: Find code from portfolio_index where amount exceeds the average amount from attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(amount, name, status, date)\n attribute_groups(id, code, type, level)\nTask: Retrieve id from stocking_sites that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT id FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(date, value, code, type)\n facility_registry(id, level, value, date)\nTask: Retrieve salary from dispatch_queue that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, type, date, level)\n area_registry(code, name, date, value)\nTask: Retrieve amount from dispatch_queue with amount above the AVG(salary) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(code, level, id, salary)\n acquisition_log(code, status, id, name)\nTask: Find name from receivables_log where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(date, status, id, value)\n dispatch_queue(date, type, code, id)\nTask: Find salary from acquisition_log where code appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS dept\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(name, date, level, id)\n cost_centers(status, salary, name, amount)\nTask: Retrieve code from attribute_groups whose code is found in cost_centers rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(code, amount, type, level)\n workforce_data(status, amount, type, code)\nTask: Retrieve salary from area_registry whose status is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(value, date, salary, status)\n engagement_log(type, value, date, id)\nTask: Select name from cost_centers that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = ord.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(amount, type, id, code)\n receivables_log(amount, type, name, status)\nTask: Select salary from facility_registry where amount is greater than the total of salary in receivables_log for matching type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(id, value, salary, name)\n sales_registry(value, code, type, salary)\nTask: Retrieve value from facility_registry with amount above the COUNT(amount) of sales_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS ord\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(id, code, value, status)\n area_registry(salary, date, id, value)\nTask: Retrieve id from portfolio_index with value above the AVG(salary) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS usr\nWHERE value > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(name, type, id, status)\n personnel_registry(code, level, date, id)\nTask: Find value from sourcing_list where a matching record exists in personnel_registry with the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "value", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(status, value, date, type)\n portfolio_index(value, code, level, type)\nTask: Retrieve amount from cost_centers whose status is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM cost_centers AS dept\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(type, value, date, status)\n area_registry(code, type, salary, name)\nTask: Select amount from attribute_groups that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(salary, level, code, status)\n journal_entries(value, salary, type, status)\nTask: Find salary from area_registry where status appears in journal_entries entries with matching code.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, date, amount, name)\n personnel_registry(level, amount, name, status)\nTask: Find salary from portfolio_index where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(value, code, type, id)\n area_registry(value, name, salary, amount)\nTask: Select amount from workforce_data where level exists in area_registry for the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS mgr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(level, date, salary, value)\n receivables_log(name, value, salary, status)\nTask: Find value from engagement_log where value exceeds the average salary from receivables_log for the same code.\nSQL:", "sql": "SELECT value FROM engagement_log AS emp\nWHERE value > (\n SELECT AVG(salary) FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, salary, value, date)\n personnel_registry(status, amount, level, id)\nTask: Retrieve amount from activity_log with salary above the MIN(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE salary > (\n SELECT MIN(value) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(amount, salary, id, level)\n facility_registry(level, date, id, salary)\nTask: Find salary from dispatch_queue where value exceeds the minimum amount from facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(code, value, amount, date)\n dispatch_queue(value, date, name, level)\nTask: Find salary from portfolio_index where id appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS dept\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(salary, level, date, id)\n facility_registry(salary, type, name, date)\nTask: Retrieve amount from engagement_log that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(date, salary, code, type)\n sourcing_list(date, amount, salary, status)\nTask: Find value from stocking_sites where type appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(name, code, level, type)\n portfolio_index(name, value, amount, status)\nTask: Retrieve code from cost_centers with value above the AVG(salary) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE value > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(name, salary, code, date)\n workforce_data(status, type, amount, name)\nTask: Find salary from area_registry where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(salary, type, value, name)\n portfolio_index(name, status, level, type)\nTask: Select salary from stock_catalog that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(salary, type, status, level)\n personnel_registry(code, name, amount, value)\nTask: Find code from sales_registry where value exceeds the average value from personnel_registry for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS prod\nWHERE value > (\n SELECT AVG(value) FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(code, status, name, id)\n area_registry(level, amount, name, status)\nTask: Find amount from attribute_groups where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, type, status, id)\n receivables_log(salary, name, code, level)\nTask: Find name from stocking_sites where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT name FROM stocking_sites AS ord\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(name, code, salary, date)\n cost_centers(date, level, id, status)\nTask: Retrieve name from facility_registry with amount above the MAX(amount) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(type, level, amount, id)\n engagement_log(type, code, value, level)\nTask: Retrieve value from sales_registry whose level is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS ord\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.level = ord.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(status, salary, amount, type)\n stock_catalog(level, status, code, salary)\nTask: Find name from engagement_log where status appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT name FROM engagement_log AS prod\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(amount, id, code, name)\n sales_queue(id, value, level, status)\nTask: Find code from attribute_groups where code appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(level, date, value, salary)\n facility_registry(date, amount, id, code)\nTask: Find salary from area_registry where amount exceeds the total amount from facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE amount > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(code, date, value, status)\n receivables_log(id, amount, type, status)\nTask: Retrieve name from stock_catalog with salary above the SUM(salary) of receivables_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE salary > (\n SELECT SUM(salary) FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(status, value, id, code)\n sales_registry(level, date, amount, status)\nTask: Find amount from receivables_log where amount exceeds the average value from sales_registry for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE amount > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.type = usr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(status, id, type, code)\n sales_registry(status, salary, name, code)\nTask: Find code from cost_centers where a matching record exists in sales_registry with the same type.\nSQL:", "sql": "SELECT code FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(type, status, code, level)\n journal_entries(amount, level, name, salary)\nTask: Retrieve name from cost_centers whose level is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS emp\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(type, date, id, value)\n stocking_sites(code, type, date, level)\nTask: Retrieve value from attribute_groups whose code is found in stocking_sites rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS ord\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(status, level, name, code)\n area_registry(level, amount, value, name)\nTask: Select amount from stock_catalog where level exists in area_registry for the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(type, amount, code, status)\n activity_log(value, level, amount, type)\nTask: Retrieve value from stocking_sites with amount above the SUM(value) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE amount > (\n SELECT SUM(value) FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(value, name, amount, code)\n receivables_log(status, value, salary, name)\nTask: Retrieve amount from area_registry whose type is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(name, salary, type, code)\n activity_log(salary, value, status, date)\nTask: Select name from cost_centers where amount is greater than the count of of value in activity_log for matching status.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE amount > (\n SELECT COUNT(value) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(value, level, id, date)\n sales_registry(date, status, type, name)\nTask: Select id from facility_registry where id exists in sales_registry for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(code, value, type, date)\n sourcing_list(level, name, value, amount)\nTask: Select salary from portfolio_index that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(status, date, code, salary)\n activity_log(value, salary, type, level)\nTask: Retrieve name from acquisition_log that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, name, amount, status)\n sales_queue(status, salary, type, value)\nTask: Retrieve amount from sales_registry with salary above the SUM(amount) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(amount, value, salary, date)\n receivables_log(name, status, level, date)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(date, code, amount, salary)\n stocking_sites(date, value, type, amount)\nTask: Find code from sales_queue where id appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(status, code, type, value)\n area_registry(amount, id, name, code)\nTask: Select name from engagement_log that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = ord.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(amount, code, status, salary)\n attribute_groups(date, code, type, level)\nTask: Select name from activity_log that have at least one matching row in attribute_groups for the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(id, status, code, level)\n stocking_sites(date, salary, value, status)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in stocking_sites sharing the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(type, date, amount, level)\n dispatch_queue(salary, code, level, name)\nTask: Find code from cost_centers where a matching record exists in dispatch_queue with the same id.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(code, status, value, type)\n journal_entries(name, amount, salary, status)\nTask: Retrieve id from sourcing_list with amount above the AVG(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE amount > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: empl)(type, date, id, amount)\n facility_registry(status, salary, id, value)\nTask: Retrieve salary from workforce_data with salary above the MAX(amount) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(code, level, value, name)\n cost_centers(salary, name, id, date)\nTask: Find amount from engagement_log where value exceeds the average amount from cost_centers for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE value > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(code, salary, value, type)\n stock_catalog(date, value, amount, status)\nTask: Find code from portfolio_index where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(code, date, value, name)\n personnel_registry(id, date, value, level)\nTask: Find id from journal_entries where status appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT id FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(type, level, name, value)\n facility_registry(amount, id, value, status)\nTask: Find id from journal_entries where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT id FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(amount, date, level, code)\n stock_catalog(code, date, level, type)\nTask: Retrieve id from journal_entries that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(level, date, value, name)\n journal_entries(level, status, amount, type)\nTask: Find salary from sourcing_list where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(value, amount, type, salary)\n portfolio_index(status, code, date, level)\nTask: Select code from engagement_log that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(status, name, code, id)\n receivables_log(level, date, value, id)\nTask: Select id from personnel_registry that have at least one matching row in receivables_log for the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(salary, value, name, code)\n journal_entries(status, date, level, name)\nTask: Select id from receivables_log that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(id, amount, name, status)\n engagement_log(amount, name, date, id)\nTask: Select value from cost_centers where status exists in engagement_log for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(type, salary, status, level)\n acquisition_log(amount, name, status, level)\nTask: Find name from sourcing_list where value exceeds the total amount from acquisition_log for the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS usr\nWHERE value > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(type, name, status, salary)\n stock_catalog(salary, value, level, code)\nTask: Retrieve amount from journal_entries whose id is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(level, type, code, name)\n dispatch_queue(id, name, value, code)\nTask: Find id from activity_log where amount exceeds the average salary from dispatch_queue for the same id.\nSQL:", "sql": "SELECT id FROM activity_log AS inv\nWHERE amount > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(level, date, status, code)\n area_registry(type, value, level, amount)\nTask: Retrieve amount from facility_registry whose code is found in area_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, code, level, date)\n stocking_sites(amount, code, value, id)\nTask: Find id from dispatch_queue where amount exceeds the total salary from stocking_sites for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(code, date, level, amount)\n portfolio_index(id, code, type, amount)\nTask: Find name from sales_registry where status appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT name FROM sales_registry AS dept\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: inv)(status, code, name, value)\n sourcing_list(value, salary, code, amount)\nTask: Select id from cost_centers where amount is greater than the minimum of value in sourcing_list for matching type.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE amount > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(type, code, id, date)\n facility_registry(date, salary, id, level)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in facility_registry sharing the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(level, value, type, status)\n sales_registry(name, level, salary, value)\nTask: Select salary from journal_entries where id exists in sales_registry for the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, amount, id, type)\n acquisition_log(name, id, code, level)\nTask: Retrieve name from dispatch_queue whose status is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(salary, name, level, date)\n journal_entries(date, value, name, level)\nTask: Select amount from dispatch_queue where code exists in journal_entries for the same level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(status, value, amount, salary)\n activity_log(status, name, salary, value)\nTask: Find code from stock_catalog where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(date, type, status, value)\n sales_registry(type, amount, salary, level)\nTask: Find amount from attribute_groups where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(salary, date, amount, value)\n workforce_data(status, id, amount, value)\nTask: Retrieve value from sales_registry whose status is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(status, value, name, type)\n receivables_log(value, id, type, name)\nTask: Find value from area_registry where status appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = ord.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "value", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(value, name, status, code)\n workforce_data(type, code, id, name)\nTask: Select value from stock_catalog where type exists in workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS emp\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(name, level, id, salary)\n sourcing_list(name, level, type, status)\nTask: Retrieve id from receivables_log whose type is found in sourcing_list rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(name, level, value, salary)\n sales_queue(status, value, type, level)\nTask: Find amount from workforce_data where status appears in sales_queue entries with matching type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: emp)(amount, type, salary, date)\n journal_entries(code, date, value, salary)\nTask: Retrieve id from sourcing_list whose status is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM sourcing_list AS emp\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(amount, value, type, id)\n activity_log(date, value, level, code)\nTask: Retrieve amount from stocking_sites whose type is found in activity_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS mgr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = mgr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(name, date, value, status)\n acquisition_log(status, salary, code, value)\nTask: Find value from workforce_data where salary exceeds the total salary from acquisition_log for the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE salary > (\n SELECT SUM(salary) FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: usr)(status, salary, level, type)\n area_registry(code, amount, level, status)\nTask: Select salary from portfolio_index that have at least one matching row in area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(amount, name, status, date)\n dispatch_queue(type, date, value, salary)\nTask: Retrieve name from sales_queue with value above the SUM(salary) of dispatch_queue rows sharing the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE value > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, value, date, salary)\n area_registry(amount, level, name, status)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in area_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(date, level, name, value)\n workforce_data(type, salary, status, name)\nTask: Find name from engagement_log where amount exceeds the average amount from workforce_data for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE amount > (\n SELECT AVG(amount) FROM workforce_data AS empl\n WHERE empl.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(level, value, name, type)\n sales_queue(status, amount, code, name)\nTask: Find name from journal_entries where type appears in sales_queue entries with matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(value, date, code, status)\n stock_catalog(name, status, date, type)\nTask: Find salary from workforce_data where a matching record exists in stock_catalog with the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = empl.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(level, code, value, salary)\n activity_log(id, name, value, date)\nTask: Find value from cost_centers where amount exceeds the minimum value from activity_log for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE amount > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: inv)(type, id, name, code)\n personnel_registry(type, value, level, name)\nTask: Find amount from sales_queue where status appears in personnel_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: usr)(date, name, level, amount)\n sales_registry(salary, date, id, amount)\nTask: Retrieve name from acquisition_log with salary above the SUM(salary) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS usr\nWHERE salary > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: ord)(id, value, status, level)\n dispatch_queue(date, amount, salary, value)\nTask: Find name from portfolio_index where level appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS ord\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(name, date, status, code)\n attribute_groups(id, salary, date, level)\nTask: Select salary from portfolio_index where id exists in attribute_groups for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, date, value, amount)\n activity_log(date, name, status, amount)\nTask: Find id from sourcing_list where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = mgr.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: empl)(code, level, date, name)\n journal_entries(name, level, type, id)\nTask: Select salary from attribute_groups where salary is greater than the count of of amount in journal_entries for matching type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE salary > (\n SELECT COUNT(amount) FROM journal_entries AS txn\n WHERE txn.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(status, name, date, level)\n portfolio_index(amount, name, value, level)\nTask: Find amount from cost_centers where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(status, amount, level, type)\n workforce_data(salary, date, level, amount)\nTask: Select amount from journal_entries that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(type, code, value, date)\n stock_catalog(value, amount, code, level)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(value, name, amount, status)\n area_registry(value, code, name, id)\nTask: Select salary from stocking_sites where salary is greater than the minimum of value in area_registry for matching status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE salary > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(value, date, name, type)\n sales_registry(amount, id, value, status)\nTask: Select salary from acquisition_log that have at least one matching row in sales_registry for the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(id, name, amount, salary)\n sourcing_list(id, name, level, salary)\nTask: Find amount from attribute_groups where value exceeds the maximum amount from sourcing_list for the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE value > (\n SELECT MAX(amount) FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(date, id, level, code)\n sales_queue(date, name, code, status)\nTask: Find amount from sales_registry where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(salary, value, code, status)\n sales_queue(date, type, amount, code)\nTask: Select id from cost_centers where salary is greater than the total of amount in sales_queue for matching type.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM sales_queue AS ord\n WHERE ord.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(status, salary, name, type)\n attribute_groups(status, type, salary, name)\nTask: Find value from sales_queue where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(amount, type, level, value)\n personnel_registry(value, date, salary, id)\nTask: Select amount from cost_centers that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = ord.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(code, status, amount, name)\n sales_registry(amount, date, code, salary)\nTask: Retrieve value from attribute_groups whose id is found in sales_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, amount, name, status)\n sourcing_list(status, code, date, name)\nTask: Select amount from portfolio_index where value is greater than the total of amount in sourcing_list for matching id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS dept\nWHERE value > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, value, code, name)\n facility_registry(code, status, salary, id)\nTask: Retrieve amount from sourcing_list whose level is found in facility_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(salary, amount, code, id)\n acquisition_log(level, code, value, id)\nTask: Find code from facility_registry where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(date, level, salary, code)\n sales_registry(salary, type, id, date)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(date, type, code, value)\n attribute_groups(name, code, id, status)\nTask: Retrieve name from sales_queue with salary above the AVG(amount) of attribute_groups rows sharing the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE salary > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(salary, type, value, name)\n cost_centers(value, name, amount, code)\nTask: Find amount from area_registry where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: ord)(salary, code, date, id)\n dispatch_queue(type, value, name, code)\nTask: Retrieve code from workforce_data that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, date, salary, id)\n attribute_groups(id, date, status, value)\nTask: Retrieve code from stock_catalog whose level is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "level", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(salary, code, type, value)\n dispatch_queue(status, amount, date, name)\nTask: Select salary from stocking_sites where level exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS ord\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(status, level, amount, salary)\n engagement_log(level, code, type, status)\nTask: Select id from area_registry where status exists in engagement_log for the same code.\nSQL:", "sql": "SELECT id FROM area_registry AS ord\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(salary, date, id, value)\n portfolio_index(code, name, level, id)\nTask: Retrieve id from attribute_groups with salary above the SUM(amount) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(id, name, date, salary)\n personnel_registry(id, type, status, level)\nTask: Find id from acquisition_log where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(value, status, code, type)\n area_registry(level, code, amount, status)\nTask: Find value from cost_centers where amount exceeds the average salary from area_registry for the same code.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(status, level, amount, date)\n sales_queue(level, salary, value, status)\nTask: Find value from workforce_data where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT value FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(name, type, level, salary)\n journal_entries(name, salary, amount, status)\nTask: Select code from area_registry where salary is greater than the count of of value in journal_entries for matching code.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(id, type, value, code)\n personnel_registry(level, status, salary, code)\nTask: Retrieve name from sales_registry with salary above the COUNT(salary) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE salary > (\n SELECT COUNT(salary) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(type, value, id, code)\n dispatch_queue(name, type, level, date)\nTask: Retrieve value from facility_registry whose type is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM facility_registry AS inv\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(date, name, type, salary)\n portfolio_index(level, date, name, code)\nTask: Retrieve amount from receivables_log whose level is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(id, level, value, date)\n workforce_data(salary, status, code, amount)\nTask: Retrieve salary from area_registry with amount above the AVG(salary) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE amount > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(amount, status, name, level)\n stock_catalog(id, value, code, type)\nTask: Select salary from acquisition_log that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "salary", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: prod)(status, id, date, amount)\n dispatch_queue(type, id, amount, level)\nTask: Find value from attribute_groups where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: emp)(type, amount, code, value)\n sales_queue(level, code, date, salary)\nTask: Find value from sales_registry where amount exceeds the average value from sales_queue for the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE amount > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(value, salary, type, name)\n stock_catalog(code, date, salary, id)\nTask: Retrieve amount from dispatch_queue with value above the MAX(salary) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE value > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(status, id, value, name)\n facility_registry(code, level, value, type)\nTask: Select id from cost_centers where code exists in facility_registry for the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(level, status, id, amount)\n sourcing_list(salary, code, id, level)\nTask: Retrieve id from acquisition_log whose type is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(type, code, id, level)\n personnel_registry(status, type, date, code)\nTask: Find amount from portfolio_index where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(salary, code, id, status)\n stock_catalog(value, id, name, type)\nTask: Find value from sales_registry where status appears in stock_catalog entries with matching code.\nSQL:", "sql": "SELECT value FROM sales_registry AS emp\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(amount, value, type, level)\n activity_log(amount, salary, id, type)\nTask: Find value from stocking_sites where value exceeds the average salary from activity_log for the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE value > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(salary, id, amount, level)\n area_registry(type, status, salary, amount)\nTask: Find name from sales_queue where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "name", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(type, level, amount, salary)\n dispatch_queue(type, date, id, value)\nTask: Select id from sales_registry that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(salary, date, code, amount)\n activity_log(date, level, id, code)\nTask: Find salary from sales_registry where code appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(value, level, status, date)\n cost_centers(salary, amount, value, name)\nTask: Find id from engagement_log where level appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(level, value, status, amount)\n workforce_data(date, value, type, id)\nTask: Find amount from receivables_log where salary exceeds the count of amount from workforce_data for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(value, level, name, status)\n acquisition_log(id, type, date, level)\nTask: Find value from attribute_groups where type appears in acquisition_log entries with matching type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(name, type, id, status)\n sourcing_list(date, value, salary, amount)\nTask: Select amount from cost_centers that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(date, salary, amount, code)\n dispatch_queue(amount, status, type, code)\nTask: Retrieve salary from stock_catalog that have at least one corresponding entry in dispatch_queue sharing the same code.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(date, type, level, salary)\n journal_entries(level, date, amount, code)\nTask: Retrieve amount from area_registry with amount above the MAX(salary) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM area_registry AS empl\nWHERE amount > (\n SELECT MAX(salary) FROM journal_entries AS txn\n WHERE txn.level = empl.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(name, amount, salary, id)\n activity_log(amount, code, salary, level)\nTask: Retrieve salary from sales_registry whose level is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(salary, name, value, date)\n engagement_log(value, salary, type, id)\nTask: Retrieve value from facility_registry that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(code, value, name, status)\n receivables_log(date, salary, level, amount)\nTask: Find value from stocking_sites where level appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(name, code, level, date)\n workforce_data(date, value, type, amount)\nTask: Select id from cost_centers that have at least one matching row in workforce_data for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(id, value, salary, name)\n receivables_log(id, type, status, level)\nTask: Find code from personnel_registry where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: emp)(value, id, amount, status)\n engagement_log(salary, level, amount, id)\nTask: Find name from sales_registry where type appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT name FROM sales_registry AS emp\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = emp.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: ord)(date, type, code, name)\n workforce_data(amount, code, status, name)\nTask: Find id from personnel_registry where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT id FROM personnel_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(name, type, code, amount)\n dispatch_queue(type, status, level, date)\nTask: Retrieve salary from stocking_sites with amount above the MIN(amount) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(level, salary, type, code)\n sales_queue(level, date, id, type)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in sales_queue sharing the same code.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(level, type, code, date)\n personnel_registry(code, id, salary, name)\nTask: Select code from sales_queue where type exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(value, name, amount, type)\n sourcing_list(id, status, name, salary)\nTask: Retrieve code from acquisition_log with amount above the MIN(value) of sourcing_list rows sharing the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE amount > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(value, name, salary, amount)\n sourcing_list(date, value, salary, name)\nTask: Find id from workforce_data where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(id, level, value, name)\n workforce_data(name, amount, value, id)\nTask: Retrieve name from acquisition_log that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(id, name, type, status)\n acquisition_log(code, level, value, date)\nTask: Select amount from journal_entries where type exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: inv)(id, name, amount, code)\n cost_centers(value, date, status, type)\nTask: Find id from stocking_sites where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, amount, date, status)\n attribute_groups(code, value, id, status)\nTask: Retrieve id from stocking_sites whose status is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(value, salary, status, amount)\n stock_catalog(name, date, id, salary)\nTask: Retrieve amount from workforce_data with salary above the COUNT(amount) of stock_catalog rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(name, amount, id, value)\n personnel_registry(salary, date, id, level)\nTask: Find salary from cost_centers where value exceeds the maximum value from personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE value > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: prod)(status, code, value, date)\n sales_queue(date, level, value, id)\nTask: Select amount from sourcing_list that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(type, level, amount, code)\n sales_registry(code, status, type, salary)\nTask: Retrieve id from activity_log with amount above the AVG(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE amount > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(code, id, date, amount)\n attribute_groups(type, status, date, amount)\nTask: Find value from journal_entries where a matching record exists in attribute_groups with the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(type, level, status, salary)\n sales_queue(type, status, salary, id)\nTask: Select name from cost_centers that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(status, date, amount, level)\n stocking_sites(level, name, code, salary)\nTask: Select amount from engagement_log that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(date, code, value, status)\n personnel_registry(salary, id, code, type)\nTask: Find id from engagement_log where amount exceeds the maximum salary from personnel_registry for the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE amount > (\n SELECT MAX(salary) FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(code, id, level, status)\n acquisition_log(amount, name, salary, code)\nTask: Select amount from workforce_data where code exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS dept\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(date, level, id, amount)\n portfolio_index(code, id, amount, salary)\nTask: Find salary from engagement_log where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "salary", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(value, amount, level, status)\n stock_catalog(value, salary, id, status)\nTask: Retrieve amount from engagement_log with salary above the SUM(amount) of stock_catalog rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(name, id, type, amount)\n stock_catalog(type, name, status, amount)\nTask: Find amount from facility_registry where code appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS prod\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(type, level, salary, name)\n portfolio_index(code, type, id, date)\nTask: Retrieve name from sales_registry whose type is found in portfolio_index rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(amount, id, level, type)\n attribute_groups(status, amount, value, id)\nTask: Retrieve value from sales_queue whose level is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(code, amount, salary, id)\n receivables_log(type, id, salary, code)\nTask: Select id from engagement_log where amount is greater than the maximum of amount in receivables_log for matching level.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(name, type, salary, amount)\n journal_entries(code, id, value, date)\nTask: Find id from facility_registry where salary exceeds the average value from journal_entries for the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE salary > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, code, date, value)\n facility_registry(code, type, date, name)\nTask: Retrieve salary from dispatch_queue whose type is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: dept)(name, code, id, status)\n cost_centers(name, date, value, type)\nTask: Select name from stocking_sites where salary is greater than the maximum of value in cost_centers for matching level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE salary > (\n SELECT MAX(value) FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, type, name, amount)\n cost_centers(value, type, level, date)\nTask: Retrieve name from dispatch_queue whose id is found in cost_centers rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS mgr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(date, level, id, status)\n workforce_data(amount, id, salary, date)\nTask: Select amount from facility_registry where code exists in workforce_data for the same type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS inv\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(amount, value, level, status)\n dispatch_queue(amount, value, code, type)\nTask: Retrieve amount from workforce_data that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT amount FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(level, name, date, amount)\n acquisition_log(value, name, code, amount)\nTask: Find value from sourcing_list where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(level, salary, type, id)\n personnel_registry(amount, status, salary, id)\nTask: Select amount from journal_entries where id exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS empl\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, level, value, status)\n workforce_data(salary, level, id, name)\nTask: Select name from stock_catalog that have at least one matching row in workforce_data for the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(status, name, type, code)\n attribute_groups(value, name, id, date)\nTask: Retrieve salary from portfolio_index that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(name, status, salary, id)\n workforce_data(level, id, name, salary)\nTask: Find amount from receivables_log where id appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(code, name, level, id)\n attribute_groups(status, code, date, name)\nTask: Retrieve name from engagement_log with salary above the COUNT(amount) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(salary, name, date, id)\n receivables_log(code, level, id, salary)\nTask: Select value from sales_queue where amount is greater than the total of value in receivables_log for matching status.\nSQL:", "sql": "SELECT value FROM sales_queue AS prod\nWHERE amount > (\n SELECT SUM(value) FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(level, code, value, name)\n stock_catalog(level, type, value, name)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(type, id, value, level)\n acquisition_log(id, code, value, level)\nTask: Find amount from sales_registry where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(id, amount, salary, value)\n sourcing_list(id, amount, status, date)\nTask: Select name from workforce_data where code exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(value, date, name, type)\n activity_log(value, level, code, name)\nTask: Retrieve value from cost_centers whose status is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(salary, amount, type, name)\n dispatch_queue(status, salary, code, name)\nTask: Find amount from acquisition_log where type appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS dept\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: emp)(name, status, amount, value)\n workforce_data(id, code, date, amount)\nTask: Find id from activity_log where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(salary, level, name, amount)\n dispatch_queue(id, code, level, date)\nTask: Retrieve value from activity_log whose level is found in dispatch_queue rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(code, type, id, status)\n dispatch_queue(status, code, level, id)\nTask: Find salary from sales_registry where id appears in dispatch_queue entries with matching level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS mgr\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(date, name, status, level)\n activity_log(date, status, value, salary)\nTask: Retrieve code from sales_registry whose code is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(status, amount, name, type)\n cost_centers(level, date, amount, value)\nTask: Find amount from journal_entries where amount exceeds the total value from cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS usr\nWHERE amount > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(id, amount, salary, type)\n sales_queue(name, id, value, salary)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(code, name, status, type)\n portfolio_index(name, level, value, code)\nTask: Select salary from dispatch_queue that have at least one matching row in portfolio_index for the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(type, status, level, date)\n dispatch_queue(code, status, id, value)\nTask: Select name from workforce_data where type exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, code, amount, type)\n stocking_sites(amount, salary, value, type)\nTask: Find id from portfolio_index where value exceeds the average amount from stocking_sites for the same level.\nSQL:", "sql": "SELECT id FROM portfolio_index AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM stocking_sites AS whs\n WHERE whs.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(code, type, id, level)\n stock_catalog(name, id, level, amount)\nTask: Select salary from journal_entries where code exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(id, date, type, amount)\n activity_log(value, code, level, amount)\nTask: Find id from attribute_groups where type appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(type, level, salary, date)\n stock_catalog(status, id, value, amount)\nTask: Select amount from area_registry where value is greater than the count of of amount in stock_catalog for matching id.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(date, name, value, status)\n portfolio_index(status, value, code, name)\nTask: Retrieve name from engagement_log with amount above the SUM(amount) of portfolio_index rows sharing the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(type, code, name, id)\n acquisition_log(type, id, status, level)\nTask: Select id from activity_log where value is greater than the average of amount in acquisition_log for matching code.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE value > (\n SELECT AVG(amount) FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(value, level, amount, salary)\n sourcing_list(name, salary, date, value)\nTask: Find value from workforce_data where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(name, amount, salary, id)\n portfolio_index(code, date, level, value)\nTask: Retrieve amount from sales_registry with salary above the AVG(salary) of portfolio_index rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(name, type, date, salary)\n journal_entries(status, name, value, level)\nTask: Find code from acquisition_log where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: ord)(level, id, name, code)\n workforce_data(salary, level, id, code)\nTask: Find amount from stock_catalog where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(id, level, amount, name)\n area_registry(value, date, level, code)\nTask: Retrieve code from personnel_registry with value above the AVG(value) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS prod\nWHERE value > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(name, code, type, salary)\n sales_registry(level, code, amount, id)\nTask: Find code from acquisition_log where amount exceeds the average salary from sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE amount > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: mgr)(code, date, type, salary)\n acquisition_log(status, amount, value, type)\nTask: Find salary from cost_centers where type appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS mgr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(salary, value, level, date)\n sales_registry(code, value, name, id)\nTask: Find id from sourcing_list where salary exceeds the count of value from sales_registry for the same level.\nSQL:", "sql": "SELECT id FROM sourcing_list AS dept\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, id, status, code)\n sales_registry(type, amount, level, date)\nTask: Find value from dispatch_queue where id appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(name, code, date, value)\n activity_log(salary, amount, level, type)\nTask: Select code from portfolio_index that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = dept.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(status, salary, code, id)\n acquisition_log(name, value, status, date)\nTask: Retrieve salary from stock_catalog with salary above the SUM(amount) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(level, status, value, type)\n sales_queue(date, status, id, salary)\nTask: Retrieve id from stock_catalog that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(id, amount, name, salary)\n workforce_data(salary, name, level, date)\nTask: Select amount from sales_registry where value is greater than the count of of amount in workforce_data for matching code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS usr\nWHERE value > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(code, level, status, id)\n sales_registry(amount, id, status, level)\nTask: Find amount from portfolio_index where level appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(value, code, amount, salary)\n workforce_data(level, id, name, salary)\nTask: Retrieve code from area_registry with amount above the COUNT(value) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE amount > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: emp)(id, name, date, code)\n receivables_log(amount, code, name, status)\nTask: Retrieve amount from cost_centers that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT amount FROM cost_centers AS emp\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(type, amount, level, status)\n stock_catalog(type, date, level, amount)\nTask: Find name from attribute_groups where type appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT name FROM attribute_groups AS emp\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(status, level, date, salary)\n area_registry(value, id, code, type)\nTask: Find amount from facility_registry where a matching record exists in area_registry with the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = emp.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(code, id, type, value)\n personnel_registry(level, name, date, status)\nTask: Find amount from activity_log where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: mgr)(id, value, code, amount)\n receivables_log(status, name, salary, id)\nTask: Find code from sales_registry where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(salary, type, level, status)\n personnel_registry(name, status, type, code)\nTask: Select name from dispatch_queue that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(type, value, level, code)\n engagement_log(value, date, amount, status)\nTask: Find salary from workforce_data where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(amount, type, status, level)\n acquisition_log(name, amount, salary, date)\nTask: Find salary from engagement_log where value exceeds the maximum value from acquisition_log for the same level.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE value > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, type, code, date)\n sourcing_list(level, name, date, amount)\nTask: Find value from stock_catalog where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(date, code, status, amount)\n workforce_data(salary, code, date, value)\nTask: Retrieve id from engagement_log whose type is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM engagement_log AS inv\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(code, date, name, level)\n journal_entries(value, type, level, code)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in journal_entries sharing the same code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(status, level, value, code)\n engagement_log(value, code, amount, salary)\nTask: Retrieve salary from cost_centers with salary above the AVG(amount) of engagement_log rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(type, id, status, level)\n engagement_log(level, date, salary, name)\nTask: Retrieve name from personnel_registry that have at least one corresponding entry in engagement_log sharing the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(type, name, salary, value)\n portfolio_index(amount, type, value, date)\nTask: Select id from activity_log that have at least one matching row in portfolio_index for the same level.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(status, code, id, date)\n sourcing_list(value, salary, amount, code)\nTask: Find code from portfolio_index where status appears in sourcing_list entries with matching id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "code", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(code, date, id, name)\n dispatch_queue(type, value, level, status)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(name, code, amount, level)\n dispatch_queue(level, name, id, value)\nTask: Find code from receivables_log where type appears in dispatch_queue entries with matching id.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, date, value, name)\n engagement_log(id, type, amount, date)\nTask: Retrieve value from sourcing_list whose id is found in engagement_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS empl\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(id, code, amount, value)\n personnel_registry(date, amount, value, type)\nTask: Find salary from journal_entries where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: dept)(name, status, level, amount)\n cost_centers(salary, value, date, type)\nTask: Find salary from sourcing_list where level appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS dept\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(amount, id, date, level)\n facility_registry(amount, value, status, name)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in facility_registry sharing the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(id, date, code, status)\n workforce_data(date, value, type, amount)\nTask: Find code from sales_queue where value exceeds the count of value from workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE value > (\n SELECT COUNT(value) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, id, salary, date)\n dispatch_queue(salary, amount, date, type)\nTask: Find id from sourcing_list where amount exceeds the total value from dispatch_queue for the same code.\nSQL:", "sql": "SELECT id FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(value, amount, level, status)\n engagement_log(amount, code, salary, value)\nTask: Retrieve code from journal_entries with amount above the MAX(amount) of engagement_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(type, status, id, level)\n activity_log(level, type, code, date)\nTask: Find code from attribute_groups where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT code FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(value, salary, code, type)\n facility_registry(id, name, type, value)\nTask: Retrieve value from sales_queue with amount above the MIN(amount) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(date, code, value, name)\n cost_centers(id, name, date, value)\nTask: Select code from sales_queue where salary is greater than the total of value in cost_centers for matching type.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE salary > (\n SELECT SUM(value) FROM cost_centers AS dpt\n WHERE dpt.type = mgr.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(value, date, status, code)\n facility_registry(type, code, salary, name)\nTask: Select value from acquisition_log where salary is greater than the total of amount in facility_registry for matching type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(id, date, amount, salary)\n area_registry(type, amount, salary, level)\nTask: Retrieve name from activity_log whose code is found in area_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM activity_log AS inv\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(code, type, date, salary)\n cost_centers(id, status, amount, type)\nTask: Find name from sales_queue where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(value, name, level, type)\n sourcing_list(code, salary, amount, type)\nTask: Find value from personnel_registry where code appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT value FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(type, id, date, amount)\n cost_centers(id, name, value, amount)\nTask: Select value from journal_entries where value is greater than the average of salary in cost_centers for matching type.\nSQL:", "sql": "SELECT value FROM journal_entries AS inv\nWHERE value > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(salary, date, name, amount)\n area_registry(id, type, code, status)\nTask: Select amount from sales_registry that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT amount FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(status, date, name, type)\n stocking_sites(type, code, amount, salary)\nTask: Select salary from engagement_log that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = inv.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, date, id, value)\n personnel_registry(id, salary, level, amount)\nTask: Retrieve salary from stock_catalog with amount above the MAX(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(date, code, status, value)\n personnel_registry(status, code, type, amount)\nTask: Select value from portfolio_index that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(date, value, type, id)\n area_registry(amount, id, date, salary)\nTask: Find id from cost_centers where a matching record exists in area_registry with the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(status, type, id, date)\n personnel_registry(date, name, id, code)\nTask: Select value from stocking_sites where salary is greater than the average of amount in personnel_registry for matching level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE salary > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(type, amount, id, salary)\n receivables_log(code, salary, date, level)\nTask: Select amount from sales_queue where amount is greater than the average of amount in receivables_log for matching level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE amount > (\n SELECT AVG(amount) FROM receivables_log AS inv\n WHERE inv.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(id, name, type, value)\n sales_queue(id, level, status, amount)\nTask: Find name from stock_catalog where amount exceeds the average salary from sales_queue for the same status.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(level, code, status, type)\n engagement_log(code, name, id, level)\nTask: Retrieve name from area_registry whose type is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(name, amount, code, date)\n sales_queue(status, date, value, level)\nTask: Find salary from journal_entries where code appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: empl)(amount, status, salary, id)\n personnel_registry(salary, level, value, code)\nTask: Select value from facility_registry that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT value FROM facility_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(date, id, status, level)\n facility_registry(type, value, name, code)\nTask: Select name from engagement_log where code exists in facility_registry for the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(amount, type, salary, status)\n workforce_data(amount, code, name, status)\nTask: Select code from sales_queue where value is greater than the total of value in workforce_data for matching code.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE value > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.code = dept.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(status, date, amount, type)\n sales_queue(amount, level, value, salary)\nTask: Find name from area_registry where value exceeds the count of salary from sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(status, value, code, name)\n journal_entries(date, amount, status, name)\nTask: Retrieve value from cost_centers whose code is found in journal_entries rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM cost_centers AS dept\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(id, name, amount, date)\n personnel_registry(code, value, salary, id)\nTask: Find name from dispatch_queue where a matching record exists in personnel_registry with the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "name", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(name, value, amount, date)\n activity_log(value, salary, level, id)\nTask: Select id from stock_catalog where level exists in activity_log for the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(amount, type, date, name)\n facility_registry(name, code, status, salary)\nTask: Retrieve salary from personnel_registry with value above the MAX(amount) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM facility_registry AS brc\n WHERE brc.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(name, code, level, salary)\n portfolio_index(date, value, level, name)\nTask: Find salary from engagement_log where value exceeds the average amount from portfolio_index for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE value > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(amount, id, type, level)\n area_registry(date, salary, level, name)\nTask: Find amount from journal_entries where value exceeds the count of amount from area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(level, id, date, name)\n acquisition_log(id, code, amount, name)\nTask: Retrieve value from sales_registry whose code is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_registry AS prod\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(level, type, value, code)\n engagement_log(status, amount, date, id)\nTask: Retrieve value from attribute_groups with value above the AVG(value) of engagement_log rows sharing the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE value > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(amount, code, id, type)\n acquisition_log(name, code, salary, type)\nTask: Retrieve salary from portfolio_index whose type is found in acquisition_log rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(salary, id, name, date)\n journal_entries(level, value, id, amount)\nTask: Retrieve code from receivables_log whose type is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(date, level, name, salary)\n sales_registry(name, amount, salary, level)\nTask: Find code from cost_centers where amount exceeds the count of salary from sales_registry for the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS emp\nWHERE amount > (\n SELECT COUNT(salary) FROM sales_registry AS cst\n WHERE cst.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(salary, type, id, code)\n receivables_log(value, level, date, name)\nTask: Retrieve amount from stock_catalog whose level is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM receivables_log AS inv\n WHERE inv.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(level, date, type, amount)\n acquisition_log(id, status, type, amount)\nTask: Find salary from area_registry where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(value, code, name, type)\n activity_log(value, level, name, salary)\nTask: Select id from cost_centers where salary is greater than the count of of amount in activity_log for matching code.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: dept)(value, level, name, date)\n sales_queue(salary, amount, code, value)\nTask: Find code from sales_registry where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(level, type, code, status)\n portfolio_index(code, level, status, type)\nTask: Find name from attribute_groups where id appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(date, value, name, type)\n acquisition_log(amount, name, id, value)\nTask: Find name from portfolio_index where type appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS emp\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: prod)(status, type, amount, value)\n area_registry(type, salary, id, amount)\nTask: Find value from stocking_sites where type appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS prod\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(status, value, date, name)\n journal_entries(status, date, name, amount)\nTask: Retrieve salary from personnel_registry that have at least one corresponding entry in journal_entries sharing the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(id, value, salary, name)\n attribute_groups(id, type, code, status)\nTask: Select amount from receivables_log where salary is greater than the maximum of salary in attribute_groups for matching id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE salary > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(status, salary, level, amount)\n sales_registry(date, amount, type, id)\nTask: Find code from activity_log where a matching record exists in sales_registry with the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(code, date, status, amount)\n activity_log(amount, name, level, id)\nTask: Find id from engagement_log where salary exceeds the minimum value from activity_log for the same status.\nSQL:", "sql": "SELECT id FROM engagement_log AS usr\nWHERE salary > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(code, type, date, name)\n workforce_data(type, code, salary, status)\nTask: Find salary from attribute_groups where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(value, status, amount, code)\n sales_registry(id, status, level, date)\nTask: Find code from stock_catalog where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(code, level, status, date)\n activity_log(name, type, status, value)\nTask: Retrieve name from acquisition_log with salary above the MAX(value) of activity_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE salary > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: dept)(level, name, salary, type)\n personnel_registry(date, status, salary, code)\nTask: Find name from portfolio_index where id appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT name FROM portfolio_index AS dept\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(status, amount, date, salary)\n cost_centers(code, type, amount, status)\nTask: Retrieve id from facility_registry whose status is found in cost_centers rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM facility_registry AS dept\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(code, type, status, date)\n activity_log(salary, value, name, code)\nTask: Select id from attribute_groups that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "id", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, status, value, id)\n receivables_log(salary, value, type, level)\nTask: Select amount from acquisition_log that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(date, name, code, salary)\n area_registry(id, type, name, status)\nTask: Find name from activity_log where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT name FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = prod.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(id, salary, name, code)\n activity_log(id, status, value, salary)\nTask: Find amount from engagement_log where value exceeds the maximum value from activity_log for the same code.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE value > (\n SELECT MAX(value) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: ord)(value, level, code, date)\n attribute_groups(status, amount, code, type)\nTask: Retrieve salary from cost_centers whose status is found in attribute_groups rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM cost_centers AS ord\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: ord)(value, name, id, status)\n personnel_registry(type, value, name, amount)\nTask: Select amount from portfolio_index that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = ord.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(status, salary, code, value)\n sales_registry(value, date, amount, id)\nTask: Retrieve id from cost_centers that have at least one corresponding entry in sales_registry sharing the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(name, code, type, amount)\n acquisition_log(value, type, salary, status)\nTask: Retrieve name from dispatch_queue with salary above the COUNT(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS emp\nWHERE salary > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(date, salary, id, amount)\n sales_queue(date, salary, amount, code)\nTask: Retrieve id from attribute_groups with salary above the MAX(amount) of sales_queue rows sharing the same status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS emp\nWHERE salary > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(salary, name, level, code)\n sales_registry(id, value, code, level)\nTask: Retrieve value from sourcing_list with amount above the MIN(salary) of sales_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(value, code, date, status)\n area_registry(value, status, salary, level)\nTask: Select id from engagement_log where amount is greater than the maximum of amount in area_registry for matching type.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: usr)(code, status, amount, type)\n personnel_registry(status, amount, name, level)\nTask: Retrieve value from sales_queue whose type is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "value", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(name, status, salary, id)\n workforce_data(level, amount, date, type)\nTask: Retrieve name from sales_queue with amount above the MIN(salary) of workforce_data rows sharing the same status.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE amount > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(amount, date, code, type)\n sales_queue(salary, id, date, amount)\nTask: Select salary from activity_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: inv)(type, salary, date, status)\n cost_centers(date, value, salary, type)\nTask: Select amount from activity_log where value is greater than the minimum of amount in cost_centers for matching code.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE value > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(value, date, status, code)\n workforce_data(level, type, salary, name)\nTask: Find value from stocking_sites where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT value FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: dept)(status, type, value, amount)\n personnel_registry(amount, value, status, level)\nTask: Select name from sales_queue where value is greater than the total of salary in personnel_registry for matching level.\nSQL:", "sql": "SELECT name FROM sales_queue AS dept\nWHERE value > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.level = dept.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(id, value, type, date)\n acquisition_log(value, type, name, amount)\nTask: Select code from facility_registry where status exists in acquisition_log for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS empl\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(salary, code, name, status)\n personnel_registry(level, salary, code, date)\nTask: Find salary from dispatch_queue where salary exceeds the minimum salary from personnel_registry for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT MIN(salary) FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(type, amount, name, code)\n engagement_log(amount, salary, id, name)\nTask: Retrieve value from cost_centers that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(salary, code, value, id)\n sales_registry(level, salary, name, status)\nTask: Find code from personnel_registry where code appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "dept", "inner_alias": "cst", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(date, code, type, level)\n portfolio_index(code, amount, level, salary)\nTask: Select code from journal_entries where status exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT code FROM journal_entries AS dept\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(id, level, name, value)\n workforce_data(amount, id, salary, status)\nTask: Retrieve value from journal_entries whose type is found in workforce_data rows where id matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(name, status, amount, value)\n journal_entries(status, name, code, value)\nTask: Find name from area_registry where level appears in journal_entries entries with matching type.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.type = dept.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(type, level, value, code)\n portfolio_index(level, name, date, code)\nTask: Select amount from attribute_groups where value is greater than the count of of amount in portfolio_index for matching type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE value > (\n SELECT COUNT(amount) FROM portfolio_index AS act\n WHERE act.type = ord.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "portfolio_index", "outer_alias": "ord", "inner_alias": "act", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(date, salary, name, code)\n area_registry(amount, salary, type, value)\nTask: Select amount from sourcing_list that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = dept.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, name, id, type)\n journal_entries(status, type, date, id)\nTask: Select id from stock_catalog where value is greater than the count of of salary in journal_entries for matching type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS usr\nWHERE value > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(salary, amount, value, name)\n cost_centers(id, level, salary, value)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(id, date, level, type)\n journal_entries(code, name, id, value)\nTask: Retrieve value from attribute_groups that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: emp)(amount, date, salary, code)\n facility_registry(value, id, amount, status)\nTask: Retrieve name from acquisition_log with value above the AVG(salary) of facility_registry rows sharing the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS emp\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.id = emp.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, date, amount, name)\n area_registry(type, date, id, level)\nTask: Select name from portfolio_index that have at least one matching row in area_registry for the same status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "name", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(amount, level, salary, code)\n stock_catalog(level, name, status, type)\nTask: Select salary from attribute_groups where status exists in stock_catalog for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(name, salary, code, level)\n cost_centers(id, salary, type, amount)\nTask: Find id from attribute_groups where level appears in cost_centers entries with matching status.\nSQL:", "sql": "SELECT id FROM attribute_groups AS ord\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: dept)(name, type, date, salary)\n cost_centers(type, level, value, date)\nTask: Retrieve id from acquisition_log with salary above the MIN(amount) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS dept\nWHERE salary > (\n SELECT MIN(amount) FROM cost_centers AS dpt\n WHERE dpt.status = dept.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(status, amount, level, code)\n sourcing_list(date, type, salary, value)\nTask: Retrieve salary from area_registry whose id is found in sourcing_list rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, id, type, date)\n personnel_registry(id, value, status, type)\nTask: Select value from acquisition_log that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(code, value, name, level)\n sourcing_list(code, value, name, type)\nTask: Retrieve salary from area_registry with value above the MIN(value) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE value > (\n SELECT MIN(value) FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: ord)(name, salary, status, level)\n activity_log(id, type, name, salary)\nTask: Retrieve code from facility_registry with salary above the SUM(salary) of activity_log rows sharing the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE salary > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(id, amount, date, type)\n acquisition_log(salary, status, name, id)\nTask: Select salary from portfolio_index where amount is greater than the maximum of salary in acquisition_log for matching level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(id, type, amount, salary)\n sales_queue(salary, status, amount, id)\nTask: Find id from journal_entries where salary exceeds the minimum salary from sales_queue for the same id.\nSQL:", "sql": "SELECT id FROM journal_entries AS empl\nWHERE salary > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(amount, status, code, date)\n acquisition_log(date, status, name, code)\nTask: Find id from workforce_data where amount exceeds the maximum salary from acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(code, name, id, salary)\n engagement_log(name, amount, type, salary)\nTask: Find id from workforce_data where a matching record exists in engagement_log with the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(status, salary, id, date)\n acquisition_log(code, amount, date, salary)\nTask: Retrieve amount from stocking_sites whose type is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(date, code, name, value)\n portfolio_index(salary, name, value, code)\nTask: Retrieve amount from receivables_log with amount above the SUM(value) of portfolio_index rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE amount > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: emp)(code, salary, type, id)\n sales_queue(level, status, value, amount)\nTask: Select name from journal_entries that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(salary, code, date, name)\n acquisition_log(value, level, status, id)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in acquisition_log sharing the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = mgr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(level, date, value, salary)\n cost_centers(amount, type, name, id)\nTask: Find salary from stock_catalog where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: mgr)(salary, name, amount, value)\n engagement_log(date, status, type, level)\nTask: Select id from dispatch_queue where value is greater than the count of of amount in engagement_log for matching id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE value > (\n SELECT COUNT(amount) FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(name, level, date, type)\n facility_registry(salary, type, value, code)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(amount, id, level, value)\n receivables_log(salary, type, amount, date)\nTask: Select salary from portfolio_index where value is greater than the count of of salary in receivables_log for matching level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.level = empl.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(code, value, id, name)\n cost_centers(status, value, name, code)\nTask: Find salary from sourcing_list where amount exceeds the average amount from cost_centers for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS inv\nWHERE amount > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(value, id, date, code)\n workforce_data(code, amount, name, date)\nTask: Find value from stocking_sites where salary exceeds the count of amount from workforce_data for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.id = ord.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(date, name, code, status)\n dispatch_queue(id, date, name, code)\nTask: Select id from cost_centers where amount is greater than the minimum of value in dispatch_queue for matching id.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE amount > (\n SELECT MIN(value) FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(status, type, name, id)\n sales_registry(name, date, salary, value)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(status, code, salary, amount)\n stocking_sites(level, name, value, salary)\nTask: Find name from activity_log where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(status, code, name, salary)\n cost_centers(type, level, name, amount)\nTask: Find value from activity_log where value exceeds the count of salary from cost_centers for the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE value > (\n SELECT COUNT(salary) FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: inv)(id, type, name, status)\n cost_centers(id, salary, value, level)\nTask: Find code from engagement_log where a matching record exists in cost_centers with the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(date, status, amount, value)\n receivables_log(status, value, date, salary)\nTask: Find code from sales_queue where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = prod.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(amount, value, name, level)\n dispatch_queue(salary, code, value, name)\nTask: Find id from receivables_log where amount exceeds the maximum amount from dispatch_queue for the same status.\nSQL:", "sql": "SELECT id FROM receivables_log AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(salary, id, date, name)\n attribute_groups(amount, status, salary, value)\nTask: Find amount from stock_catalog where type appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: inv)(type, salary, name, code)\n stock_catalog(value, code, salary, amount)\nTask: Find id from journal_entries where a matching record exists in stock_catalog with the same code.\nSQL:", "sql": "SELECT id FROM journal_entries AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, status, level, date)\n dispatch_queue(amount, value, id, date)\nTask: Select id from stock_catalog that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = dept.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(code, status, name, id)\n activity_log(date, name, status, code)\nTask: Select id from acquisition_log where salary is greater than the minimum of amount in activity_log for matching code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE salary > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(type, id, name, date)\n sourcing_list(name, amount, level, id)\nTask: Select id from cost_centers where value is greater than the maximum of salary in sourcing_list for matching type.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE value > (\n SELECT MAX(salary) FROM sourcing_list AS spl\n WHERE spl.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(level, amount, status, id)\n sales_queue(code, amount, id, name)\nTask: Find id from attribute_groups where amount exceeds the minimum amount from sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE amount > (\n SELECT MIN(amount) FROM sales_queue AS ord\n WHERE ord.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(id, status, value, code)\n journal_entries(salary, date, type, value)\nTask: Select salary from sales_registry where value is greater than the count of of salary in journal_entries for matching status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, date, type, name)\n attribute_groups(status, name, code, salary)\nTask: Select value from dispatch_queue where level exists in attribute_groups for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "value", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(id, date, type, name)\n area_registry(type, level, id, value)\nTask: Retrieve code from stock_catalog with value above the COUNT(amount) of area_registry rows sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE value > (\n SELECT COUNT(amount) FROM area_registry AS rgn\n WHERE rgn.code = inv.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(value, id, level, code)\n stocking_sites(name, status, salary, value)\nTask: Retrieve name from workforce_data that have at least one corresponding entry in stocking_sites sharing the same status.\nSQL:", "sql": "SELECT name FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(salary, amount, status, type)\n attribute_groups(type, salary, name, value)\nTask: Select id from acquisition_log where status exists in attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS inv\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(code, id, name, type)\n sales_queue(id, value, name, code)\nTask: Retrieve amount from stocking_sites whose type is found in sales_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: mgr)(amount, type, code, status)\n acquisition_log(amount, date, id, type)\nTask: Find code from sales_registry where salary exceeds the minimum salary from acquisition_log for the same code.\nSQL:", "sql": "SELECT code FROM sales_registry AS mgr\nWHERE salary > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, name, id, status)\n facility_registry(date, status, id, amount)\nTask: Select value from workforce_data that have at least one matching row in facility_registry for the same status.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: mgr)(name, value, date, code)\n journal_entries(value, type, status, name)\nTask: Retrieve code from activity_log whose status is found in journal_entries rows where type matches the outer record.\nSQL:", "sql": "SELECT code FROM activity_log AS mgr\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(level, id, name, code)\n sales_queue(id, type, date, level)\nTask: Select name from stocking_sites where code exists in sales_queue for the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE code IN (\n SELECT code FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(name, level, code, type)\n acquisition_log(date, id, code, status)\nTask: Retrieve amount from stocking_sites whose code is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "amount", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(name, code, level, amount)\n facility_registry(type, code, date, salary)\nTask: Find id from stock_catalog where level appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS ord\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = ord.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(level, id, code, amount)\n stock_catalog(date, value, code, amount)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in stock_catalog sharing the same level.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "salary", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(code, date, status, salary)\n sales_registry(salary, type, id, name)\nTask: Retrieve salary from sales_queue with amount above the SUM(amount) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS usr\nWHERE amount > (\n SELECT SUM(amount) FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(id, value, date, amount)\n receivables_log(level, id, status, name)\nTask: Find salary from sourcing_list where amount exceeds the count of salary from receivables_log for the same id.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE amount > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(name, status, type, date)\n portfolio_index(code, status, value, id)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in portfolio_index sharing the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: dept)(salary, amount, code, type)\n dispatch_queue(status, code, value, amount)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = dept.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(amount, date, type, status)\n facility_registry(type, date, name, level)\nTask: Select name from stock_catalog where amount is greater than the minimum of amount in facility_registry for matching type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS prod\nWHERE amount > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(level, id, type, value)\n cost_centers(level, status, salary, name)\nTask: Find amount from sales_queue where salary exceeds the total amount from cost_centers for the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE salary > (\n SELECT SUM(amount) FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: empl)(amount, name, value, status)\n facility_registry(value, code, status, date)\nTask: Select name from sourcing_list that have at least one matching row in facility_registry for the same type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(type, value, level, id)\n dispatch_queue(salary, code, status, amount)\nTask: Select name from engagement_log where amount is greater than the total of value in dispatch_queue for matching type.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE amount > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(code, type, salary, id)\n sales_registry(code, name, value, salary)\nTask: Retrieve code from dispatch_queue whose level is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(status, date, level, value)\n area_registry(type, value, status, id)\nTask: Select value from receivables_log that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(code, level, name, date)\n cost_centers(code, level, value, salary)\nTask: Retrieve name from stock_catalog that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, name, type, level)\n portfolio_index(name, level, type, value)\nTask: Select name from engagement_log that have at least one matching row in portfolio_index for the same code.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(id, name, amount, status)\n personnel_registry(date, name, status, type)\nTask: Find id from attribute_groups where id appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT id FROM attribute_groups AS inv\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "id", "filter_col": "id", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(value, status, type, salary)\n sales_queue(name, status, level, amount)\nTask: Select id from facility_registry that have at least one matching row in sales_queue for the same status.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(id, name, status, value)\n acquisition_log(status, value, id, level)\nTask: Retrieve salary from cost_centers that have at least one corresponding entry in acquisition_log sharing the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: inv)(date, id, type, amount)\n personnel_registry(date, id, status, code)\nTask: Find code from cost_centers where code appears in personnel_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM cost_centers AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "code", "filter_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: inv)(type, name, status, salary)\n engagement_log(salary, type, status, amount)\nTask: Select amount from journal_entries where value is greater than the count of of salary in engagement_log for matching id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(name, date, salary, type)\n facility_registry(amount, date, name, type)\nTask: Retrieve value from activity_log whose code is found in facility_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE code IN (\n SELECT code FROM facility_registry AS brc\n WHERE brc.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(salary, id, name, value)\n attribute_groups(name, value, amount, level)\nTask: Select value from dispatch_queue where type exists in attribute_groups for the same id.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(name, salary, date, id)\n area_registry(amount, status, salary, value)\nTask: Retrieve code from facility_registry that have at least one corresponding entry in area_registry sharing the same id.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(date, value, status, name)\n receivables_log(name, code, amount, level)\nTask: Find code from dispatch_queue where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(status, type, id, level)\n stocking_sites(status, name, value, id)\nTask: Select id from cost_centers that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "id", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: inv)(value, amount, name, level)\n workforce_data(type, code, date, level)\nTask: Select code from journal_entries where id exists in workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS inv\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.level = inv.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: inv)(date, id, value, status)\n stocking_sites(status, amount, value, salary)\nTask: Find id from portfolio_index where value exceeds the total value from stocking_sites for the same code.\nSQL:", "sql": "SELECT id FROM portfolio_index AS inv\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(date, value, status, code)\n workforce_data(amount, type, code, name)\nTask: Retrieve salary from attribute_groups with salary above the MIN(amount) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(name, level, amount, type)\n workforce_data(name, date, type, code)\nTask: Select id from area_registry where salary is greater than the average of salary in workforce_data for matching level.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(level, date, amount, salary)\n facility_registry(amount, status, date, level)\nTask: Retrieve code from sales_registry with value above the SUM(value) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_registry AS usr\nWHERE value > (\n SELECT SUM(value) FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: ord)(code, status, name, value)\n acquisition_log(name, salary, code, value)\nTask: Retrieve id from sales_queue with salary above the SUM(value) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT id FROM sales_queue AS ord\nWHERE salary > (\n SELECT SUM(value) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(value, level, id, status)\n stock_catalog(amount, level, salary, date)\nTask: Find salary from area_registry where salary exceeds the maximum salary from stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS prod\nWHERE salary > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, level, amount, salary)\n attribute_groups(type, value, date, status)\nTask: Find id from stock_catalog where type appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(amount, status, name, salary)\n sales_queue(amount, id, status, salary)\nTask: Find id from stocking_sites where value exceeds the count of salary from sales_queue for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS empl\nWHERE value > (\n SELECT COUNT(salary) FROM sales_queue AS ord\n WHERE ord.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(level, code, status, type)\n sourcing_list(level, value, status, amount)\nTask: Find name from attribute_groups where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT name FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(code, date, id, value)\n engagement_log(name, amount, date, level)\nTask: Retrieve salary from sourcing_list with salary above the AVG(amount) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(salary, type, status, name)\n journal_entries(status, amount, salary, date)\nTask: Find name from area_registry where salary exceeds the count of value from journal_entries for the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS usr\nWHERE salary > (\n SELECT COUNT(value) FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(type, date, id, salary)\n stock_catalog(level, status, name, value)\nTask: Find name from receivables_log where a matching record exists in stock_catalog with the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, date, salary, type)\n attribute_groups(amount, level, salary, type)\nTask: Retrieve amount from dispatch_queue with value above the SUM(amount) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS emp\nWHERE value > (\n SELECT SUM(amount) FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(amount, id, salary, date)\n engagement_log(date, name, type, value)\nTask: Retrieve code from area_registry that have at least one corresponding entry in engagement_log sharing the same level.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(code, type, status, id)\n stock_catalog(status, name, code, value)\nTask: Find code from activity_log where level appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT code FROM activity_log AS inv\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(date, code, name, amount)\n facility_registry(id, value, type, name)\nTask: Retrieve salary from workforce_data whose level is found in facility_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.id = inv.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(code, value, type, salary)\n area_registry(code, date, status, value)\nTask: Find name from workforce_data where a matching record exists in area_registry with the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(id, name, type, status)\n sales_queue(id, date, value, type)\nTask: Select salary from sales_registry where type exists in sales_queue for the same code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: dept)(date, type, amount, status)\n engagement_log(salary, amount, name, date)\nTask: Find value from portfolio_index where salary exceeds the minimum salary from engagement_log for the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS dept\nWHERE salary > (\n SELECT MIN(salary) FROM engagement_log AS prj\n WHERE prj.id = dept.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(level, status, name, id)\n cost_centers(date, id, value, level)\nTask: Find code from receivables_log where salary exceeds the average amount from cost_centers for the same id.\nSQL:", "sql": "SELECT code FROM receivables_log AS empl\nWHERE salary > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.id = empl.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(id, value, status, level)\n acquisition_log(code, status, type, level)\nTask: Find id from area_registry where level appears in acquisition_log entries with matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS usr\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(id, level, code, name)\n receivables_log(status, name, value, salary)\nTask: Find code from personnel_registry where code appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(salary, id, date, code)\n facility_registry(name, level, code, id)\nTask: Find code from journal_entries where type appears in facility_registry entries with matching status.\nSQL:", "sql": "SELECT code FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "code", "filter_col": "type", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, salary, type, value)\n dispatch_queue(name, type, date, value)\nTask: Retrieve amount from acquisition_log that have at least one corresponding entry in dispatch_queue sharing the same code.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(type, salary, value, status)\n sales_registry(value, status, date, amount)\nTask: Retrieve value from stocking_sites whose status is found in sales_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS mgr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(amount, name, value, salary)\n activity_log(amount, type, level, name)\nTask: Find amount from receivables_log where id appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT amount FROM receivables_log AS ord\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(level, date, value, type)\n journal_entries(status, amount, id, salary)\nTask: Find amount from personnel_registry where a matching record exists in journal_entries with the same status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: empl)(name, amount, date, salary)\n stock_catalog(status, amount, level, id)\nTask: Select name from facility_registry where type exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT name FROM facility_registry AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = empl.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(type, code, name, value)\n attribute_groups(type, code, id, name)\nTask: Select name from personnel_registry where salary is greater than the count of of amount in attribute_groups for matching status.\nSQL:", "sql": "SELECT name FROM personnel_registry AS emp\nWHERE salary > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(value, salary, level, date)\n acquisition_log(status, id, salary, amount)\nTask: Retrieve value from workforce_data with value above the MAX(amount) of acquisition_log rows sharing the same level.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(value, date, amount, level)\n journal_entries(status, level, value, code)\nTask: Retrieve amount from personnel_registry whose status is found in journal_entries rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE status IN (\n SELECT status FROM journal_entries AS txn\n WHERE txn.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(value, salary, type, status)\n cost_centers(id, type, status, level)\nTask: Select salary from activity_log where code exists in cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(salary, type, name, code)\n sales_queue(type, date, amount, code)\nTask: Retrieve salary from stocking_sites that have at least one corresponding entry in sales_queue sharing the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: inv)(level, code, amount, type)\n stock_catalog(id, code, date, salary)\nTask: Select value from acquisition_log that have at least one matching row in stock_catalog for the same code.\nSQL:", "sql": "SELECT value FROM acquisition_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(amount, date, code, level)\n workforce_data(name, level, code, value)\nTask: Find code from engagement_log where amount exceeds the average salary from workforce_data for the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: ord)(date, salary, status, name)\n journal_entries(value, name, salary, code)\nTask: Retrieve amount from sourcing_list with salary above the AVG(amount) of journal_entries rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS ord\nWHERE salary > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.level = ord.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(type, date, value, id)\n portfolio_index(amount, salary, status, name)\nTask: Select id from personnel_registry where amount is greater than the average of salary in portfolio_index for matching level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE amount > (\n SELECT AVG(salary) FROM portfolio_index AS act\n WHERE act.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(value, status, type, level)\n sales_registry(amount, code, date, type)\nTask: Select salary from receivables_log where level exists in sales_registry for the same code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS inv\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.code = inv.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: emp)(name, value, code, salary)\n engagement_log(status, code, amount, id)\nTask: Select salary from activity_log where code exists in engagement_log for the same code.\nSQL:", "sql": "SELECT salary FROM activity_log AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.code = emp.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: usr)(type, date, status, salary)\n activity_log(type, id, code, salary)\nTask: Retrieve id from acquisition_log that have at least one corresponding entry in activity_log sharing the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(name, date, amount, status)\n sales_queue(type, salary, id, name)\nTask: Select code from acquisition_log where id exists in sales_queue for the same code.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE id IN (\n SELECT id FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(id, code, type, level)\n receivables_log(type, status, code, amount)\nTask: Select id from personnel_registry that have at least one matching row in receivables_log for the same code.\nSQL:", "sql": "SELECT id FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(date, id, amount, code)\n dispatch_queue(status, id, code, name)\nTask: Find value from facility_registry where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT value FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(level, date, amount, value)\n facility_registry(level, value, name, id)\nTask: Retrieve value from sourcing_list that have at least one corresponding entry in facility_registry sharing the same id.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = dept.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, status, value, type)\n portfolio_index(code, date, amount, salary)\nTask: Find value from dispatch_queue where amount exceeds the maximum value from portfolio_index for the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT MAX(value) FROM portfolio_index AS act\n WHERE act.status = dept.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: mgr)(salary, code, value, name)\n receivables_log(date, level, status, value)\nTask: Find amount from sales_queue where value exceeds the average value from receivables_log for the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE value > (\n SELECT AVG(value) FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(salary, id, value, type)\n receivables_log(level, salary, code, amount)\nTask: Retrieve value from cost_centers with salary above the SUM(amount) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE salary > (\n SELECT SUM(amount) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: empl)(date, code, amount, type)\n stocking_sites(amount, level, id, date)\nTask: Select amount from sales_queue that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = empl.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "amount", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(id, status, type, date)\n journal_entries(level, salary, name, status)\nTask: Find name from sales_queue where code appears in journal_entries entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: emp)(code, value, date, level)\n journal_entries(status, name, salary, level)\nTask: Select id from dispatch_queue where type exists in journal_entries for the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE type IN (\n SELECT type FROM journal_entries AS txn\n WHERE txn.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(value, amount, status, type)\n activity_log(code, type, date, value)\nTask: Retrieve value from cost_centers with value above the MAX(amount) of activity_log rows sharing the same id.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE value > (\n SELECT MAX(amount) FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(value, name, id, amount)\n stocking_sites(code, status, name, amount)\nTask: Select amount from stock_catalog where code exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS dept\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: mgr)(status, code, id, salary)\n stocking_sites(status, type, value, level)\nTask: Find code from activity_log where a matching record exists in stocking_sites with the same status.\nSQL:", "sql": "SELECT code FROM activity_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = mgr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, level, date, salary)\n workforce_data(name, id, date, type)\nTask: Retrieve name from stock_catalog whose level is found in workforce_data rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.type = mgr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(value, status, amount, code)\n stocking_sites(date, type, amount, salary)\nTask: Find name from attribute_groups where code appears in stocking_sites entries with matching type.\nSQL:", "sql": "SELECT name FROM attribute_groups AS dept\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(type, status, salary, amount)\n workforce_data(code, type, date, id)\nTask: Retrieve code from acquisition_log with value above the MIN(value) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE value > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(name, type, code, value)\n sourcing_list(level, amount, code, type)\nTask: Retrieve code from attribute_groups with amount above the AVG(amount) of sourcing_list rows sharing the same status.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM sourcing_list AS spl\n WHERE spl.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: ord)(type, id, name, value)\n sourcing_list(value, date, amount, type)\nTask: Select name from sales_registry that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "name", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(date, level, amount, type)\n sourcing_list(id, amount, value, status)\nTask: Retrieve amount from journal_entries with value above the MAX(value) of sourcing_list rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.id = dept.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: empl)(salary, type, amount, status)\n stock_catalog(status, date, code, type)\nTask: Find code from portfolio_index where amount exceeds the minimum value from stock_catalog for the same status.\nSQL:", "sql": "SELECT code FROM portfolio_index AS empl\nWHERE amount > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.status = empl.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: usr)(id, level, value, name)\n personnel_registry(type, salary, date, status)\nTask: Find amount from facility_registry where type appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(type, date, amount, id)\n cost_centers(status, amount, date, name)\nTask: Retrieve id from area_registry that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(date, value, salary, type)\n sales_queue(id, level, type, amount)\nTask: Find salary from personnel_registry where status appears in sales_queue entries with matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(id, name, amount, type)\n sales_queue(type, level, name, id)\nTask: Select amount from receivables_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(level, id, status, date)\n engagement_log(value, id, type, code)\nTask: Find value from cost_centers where salary exceeds the maximum amount from engagement_log for the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS ord\nWHERE salary > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(amount, date, salary, name)\n stocking_sites(type, salary, date, amount)\nTask: Select name from receivables_log that have at least one matching row in stocking_sites for the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(code, level, amount, name)\n cost_centers(level, value, status, amount)\nTask: Find name from receivables_log where salary exceeds the count of value from cost_centers for the same status.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.status = ord.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(status, code, salary, type)\n stocking_sites(status, type, level, date)\nTask: Retrieve name from attribute_groups whose status is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT name FROM attribute_groups AS inv\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "name", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(status, salary, level, date)\n sales_registry(value, code, date, level)\nTask: Select value from activity_log where salary is greater than the minimum of amount in sales_registry for matching id.\nSQL:", "sql": "SELECT value FROM activity_log AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(level, salary, value, name)\n portfolio_index(id, value, salary, status)\nTask: Select salary from area_registry where value is greater than the minimum of value in portfolio_index for matching type.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE value > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(status, id, date, level)\n stocking_sites(level, date, type, value)\nTask: Select salary from facility_registry that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(level, date, id, amount)\n attribute_groups(level, value, salary, id)\nTask: Find name from stock_catalog where value exceeds the total salary from attribute_groups for the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE value > (\n SELECT SUM(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: prod)(salary, value, status, name)\n sales_queue(name, type, id, date)\nTask: Select code from acquisition_log where level exists in sales_queue for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(salary, id, value, status)\n receivables_log(salary, type, name, date)\nTask: Find name from sourcing_list where salary exceeds the maximum amount from receivables_log for the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE salary > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: usr)(amount, name, id, value)\n stocking_sites(amount, value, level, code)\nTask: Select code from engagement_log where type exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(id, date, type, status)\n cost_centers(type, id, name, code)\nTask: Select id from facility_registry where amount is greater than the count of of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(code, salary, level, status)\n facility_registry(amount, date, salary, status)\nTask: Find name from dispatch_queue where value exceeds the maximum value from facility_registry for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE value > (\n SELECT MAX(value) FROM facility_registry AS brc\n WHERE brc.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(code, date, type, status)\n sales_registry(code, date, type, amount)\nTask: Retrieve salary from sales_queue with salary above the COUNT(value) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(date, salary, amount, level)\n acquisition_log(name, id, level, salary)\nTask: Select value from stock_catalog that have at least one matching row in acquisition_log for the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(salary, value, status, type)\n dispatch_queue(value, amount, date, code)\nTask: Find value from portfolio_index where a matching record exists in dispatch_queue with the same code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: emp)(code, level, type, name)\n workforce_data(level, id, type, date)\nTask: Select name from sales_queue where id exists in workforce_data for the same code.\nSQL:", "sql": "SELECT name FROM sales_queue AS emp\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(status, salary, level, date)\n engagement_log(salary, status, code, level)\nTask: Find code from facility_registry where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, level, id, date)\n stock_catalog(code, salary, date, status)\nTask: Find name from dispatch_queue where a matching record exists in stock_catalog with the same type.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "name", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(level, code, amount, type)\n sales_queue(id, value, level, code)\nTask: Find amount from receivables_log where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: inv)(status, type, salary, id)\n personnel_registry(name, amount, value, type)\nTask: Select salary from portfolio_index that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: inv)(level, id, value, date)\n stock_catalog(salary, level, date, value)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT value FROM receivables_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(name, date, id, code)\n receivables_log(date, level, value, id)\nTask: Retrieve amount from engagement_log with value above the MAX(value) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE value > (\n SELECT MAX(value) FROM receivables_log AS inv\n WHERE inv.status = usr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: empl)(value, level, salary, id)\n portfolio_index(code, type, date, level)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: usr)(id, amount, date, status)\n cost_centers(level, status, id, value)\nTask: Select amount from receivables_log where value is greater than the maximum of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE value > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(code, amount, id, level)\n cost_centers(id, level, name, value)\nTask: Select amount from engagement_log where amount is greater than the maximum of salary in cost_centers for matching type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.type = inv.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(level, status, value, salary)\n portfolio_index(id, amount, code, salary)\nTask: Find value from sales_registry where amount exceeds the total value from portfolio_index for the same type.\nSQL:", "sql": "SELECT value FROM sales_registry AS usr\nWHERE amount > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(salary, level, amount, name)\n stocking_sites(id, name, amount, code)\nTask: Retrieve salary from workforce_data with salary above the SUM(amount) of stocking_sites rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE salary > (\n SELECT SUM(amount) FROM stocking_sites AS whs\n WHERE whs.id = dept.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: empl)(amount, salary, id, name)\n attribute_groups(date, value, status, id)\nTask: Select code from area_registry that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = empl.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(status, type, level, amount)\n portfolio_index(name, code, amount, date)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in portfolio_index sharing the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "code", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(value, name, id, code)\n area_registry(value, id, status, salary)\nTask: Find value from stock_catalog where id appears in area_registry entries with matching status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(level, type, salary, id)\n dispatch_queue(id, salary, type, code)\nTask: Retrieve salary from stock_catalog that have at least one corresponding entry in dispatch_queue sharing the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = emp.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(status, value, type, id)\n workforce_data(type, code, amount, value)\nTask: Select value from journal_entries that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT value FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "value", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, type, name, salary)\n workforce_data(value, name, id, code)\nTask: Find value from dispatch_queue where salary exceeds the total value from workforce_data for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: inv)(code, amount, id, salary)\n personnel_registry(date, id, level, value)\nTask: Find salary from facility_registry where status appears in personnel_registry entries with matching status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(level, code, type, id)\n workforce_data(id, name, salary, type)\nTask: Find name from sales_queue where type appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT name FROM sales_queue AS mgr\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(level, name, code, status)\n stock_catalog(id, type, status, value)\nTask: Find salary from engagement_log where status appears in stock_catalog entries with matching status.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(name, type, level, id)\n acquisition_log(level, code, amount, value)\nTask: Retrieve id from stock_catalog with value above the MAX(salary) of acquisition_log rows sharing the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE value > (\n SELECT MAX(salary) FROM acquisition_log AS ordr\n WHERE ordr.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(salary, type, value, status)\n area_registry(value, name, id, amount)\nTask: Retrieve salary from engagement_log with value above the MIN(value) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS mgr\nWHERE value > (\n SELECT MIN(value) FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(name, amount, salary, code)\n sales_registry(type, code, value, salary)\nTask: Find id from facility_registry where salary exceeds the total salary from sales_registry for the same level.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(date, salary, status, amount)\n area_registry(value, code, id, name)\nTask: Select amount from activity_log where type exists in area_registry for the same level.\nSQL:", "sql": "SELECT amount FROM activity_log AS inv\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: empl)(id, status, amount, code)\n sales_registry(id, name, value, type)\nTask: Find value from dispatch_queue where salary exceeds the count of value from sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(amount, level, value, status)\n facility_registry(type, amount, id, date)\nTask: Find amount from portfolio_index where level appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "level", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: ord)(id, amount, level, code)\n cost_centers(value, type, code, date)\nTask: Select name from receivables_log that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = ord.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "name", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(type, name, level, value)\n facility_registry(status, name, code, value)\nTask: Select value from workforce_data where level exists in facility_registry for the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS prod\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "value", "filter_col": "level", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(name, status, value, amount)\n attribute_groups(type, date, status, level)\nTask: Retrieve name from sales_queue whose type is found in attribute_groups rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sales_queue AS empl\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: emp)(id, level, type, status)\n portfolio_index(date, status, id, name)\nTask: Retrieve id from cost_centers with value above the MAX(amount) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE value > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "id", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: mgr)(code, id, value, status)\n portfolio_index(value, code, type, amount)\nTask: Find value from engagement_log where status appears in portfolio_index entries with matching code.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "value", "filter_col": "status", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: prod)(name, status, id, level)\n sales_registry(status, id, amount, date)\nTask: Retrieve code from engagement_log whose level is found in sales_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(id, code, amount, status)\n dispatch_queue(id, code, amount, status)\nTask: Find salary from activity_log where id appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM activity_log AS prod\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(name, status, code, level)\n facility_registry(date, value, level, id)\nTask: Select amount from activity_log where type exists in facility_registry for the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "type", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: dept)(name, salary, id, date)\n receivables_log(salary, value, level, type)\nTask: Find value from acquisition_log where a matching record exists in receivables_log with the same type.\nSQL:", "sql": "SELECT value FROM acquisition_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(status, id, type, value)\n acquisition_log(id, code, salary, value)\nTask: Retrieve value from receivables_log with value above the MAX(value) of acquisition_log rows sharing the same status.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE value > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(code, level, value, type)\n attribute_groups(value, level, type, code)\nTask: Select name from area_registry where value is greater than the maximum of salary in attribute_groups for matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS emp\nWHERE value > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(status, code, amount, type)\n cost_centers(type, status, value, level)\nTask: Find salary from stock_catalog where a matching record exists in cost_centers with the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(level, name, amount, status)\n activity_log(date, code, id, level)\nTask: Find name from acquisition_log where type appears in activity_log entries with matching type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(date, type, id, code)\n personnel_registry(code, value, status, amount)\nTask: Retrieve salary from area_registry with amount above the MAX(value) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE amount > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(code, date, name, status)\n journal_entries(status, value, level, code)\nTask: Find name from workforce_data where id appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT name FROM workforce_data AS inv\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(amount, value, level, salary)\n facility_registry(type, status, level, amount)\nTask: Find name from activity_log where a matching record exists in facility_registry with the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: prod)(type, status, amount, name)\n personnel_registry(salary, date, code, id)\nTask: Find amount from area_registry where id appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM area_registry AS prod\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = prod.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: usr)(value, status, amount, id)\n engagement_log(amount, date, value, name)\nTask: Select id from cost_centers where code exists in engagement_log for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(status, date, amount, salary)\n dispatch_queue(value, amount, status, name)\nTask: Find salary from receivables_log where amount exceeds the total salary from dispatch_queue for the same type.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE amount > (\n SELECT SUM(salary) FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(code, status, id, salary)\n portfolio_index(value, level, code, id)\nTask: Find value from dispatch_queue where value exceeds the minimum value from portfolio_index for the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE value > (\n SELECT MIN(value) FROM portfolio_index AS act\n WHERE act.code = inv.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(value, amount, level, id)\n area_registry(type, status, value, code)\nTask: Retrieve code from acquisition_log with amount above the AVG(value) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE amount > (\n SELECT AVG(value) FROM area_registry AS rgn\n WHERE rgn.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(salary, id, date, status)\n stock_catalog(value, salary, date, name)\nTask: Find amount from activity_log where level appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(value, salary, name, level)\n dispatch_queue(value, name, status, date)\nTask: Find value from journal_entries where value exceeds the count of value from dispatch_queue for the same id.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE value > (\n SELECT COUNT(value) FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: ord)(name, date, amount, id)\n stocking_sites(id, code, date, type)\nTask: Retrieve amount from sales_queue whose type is found in stocking_sites rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(date, name, status, amount)\n stocking_sites(date, code, name, type)\nTask: Retrieve id from journal_entries whose code is found in stocking_sites rows where status matches the outer record.\nSQL:", "sql": "SELECT id FROM journal_entries AS dept\nWHERE code IN (\n SELECT code FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(level, name, id, type)\n dispatch_queue(type, salary, id, level)\nTask: Find value from stock_catalog where amount exceeds the average salary from dispatch_queue for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS emp\nWHERE amount > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(amount, date, level, id)\n sourcing_list(amount, salary, date, level)\nTask: Select id from journal_entries where salary is greater than the average of salary in sourcing_list for matching id.\nSQL:", "sql": "SELECT id FROM journal_entries AS empl\nWHERE salary > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, level, status, salary)\n area_registry(level, date, salary, code)\nTask: Select amount from receivables_log that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "amount", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: dept)(type, date, level, code)\n attribute_groups(date, type, name, id)\nTask: Find code from facility_registry where a matching record exists in attribute_groups with the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(type, status, amount, id)\n portfolio_index(value, level, type, id)\nTask: Find value from workforce_data where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT value FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "value", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(value, status, id, amount)\n stock_catalog(value, name, status, level)\nTask: Find salary from stocking_sites where salary exceeds the count of amount from stock_catalog for the same level.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS prod\nWHERE salary > (\n SELECT COUNT(amount) FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(code, value, status, date)\n activity_log(name, amount, type, status)\nTask: Retrieve value from stocking_sites whose level is found in activity_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE level IN (\n SELECT level FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(date, status, code, type)\n attribute_groups(id, name, salary, value)\nTask: Find amount from facility_registry where a matching record exists in attribute_groups with the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = emp.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(name, id, status, salary)\n workforce_data(status, amount, value, date)\nTask: Find name from area_registry where a matching record exists in workforce_data with the same status.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(code, date, amount, id)\n receivables_log(type, value, salary, status)\nTask: Retrieve id from engagement_log that have at least one corresponding entry in receivables_log sharing the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(code, name, value, type)\n journal_entries(value, salary, amount, id)\nTask: Select name from stock_catalog that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: ord)(id, status, salary, name)\n stocking_sites(date, amount, type, salary)\nTask: Retrieve salary from activity_log with amount above the MIN(value) of stocking_sites rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS ord\nWHERE amount > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.level = ord.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(status, code, level, amount)\n facility_registry(value, level, name, code)\nTask: Retrieve amount from stock_catalog that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "amount", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(code, id, value, level)\n activity_log(level, id, name, code)\nTask: Find name from sales_registry where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(level, id, type, value)\n activity_log(date, code, value, level)\nTask: Find salary from stocking_sites where id appears in activity_log entries with matching code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(id, code, amount, name)\n personnel_registry(amount, salary, level, name)\nTask: Select value from attribute_groups that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: emp)(code, id, date, amount)\n journal_entries(code, amount, id, level)\nTask: Select amount from stock_catalog where amount is greater than the total of amount in journal_entries for matching level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS emp\nWHERE amount > (\n SELECT SUM(amount) FROM journal_entries AS txn\n WHERE txn.level = emp.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(value, code, type, date)\n journal_entries(salary, type, amount, date)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in journal_entries sharing the same status.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = ord.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(salary, name, status, amount)\n facility_registry(id, salary, name, level)\nTask: Find id from dispatch_queue where value exceeds the average salary from facility_registry for the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS emp\nWHERE value > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.type = emp.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(status, salary, name, type)\n engagement_log(value, id, type, amount)\nTask: Retrieve salary from cost_centers with salary above the COUNT(salary) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE salary > (\n SELECT COUNT(salary) FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(value, amount, code, level)\n journal_entries(name, level, date, type)\nTask: Find code from sales_registry where value exceeds the average amount from journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS ord\nWHERE value > (\n SELECT AVG(amount) FROM journal_entries AS txn\n WHERE txn.type = ord.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "ord", "inner_alias": "txn", "proj_col": "code", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(value, amount, code, id)\n acquisition_log(value, name, salary, amount)\nTask: Find name from stock_catalog where a matching record exists in acquisition_log with the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: usr)(status, name, id, code)\n stock_catalog(level, value, date, id)\nTask: Select code from cost_centers that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT code FROM cost_centers AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(type, date, id, amount)\n activity_log(salary, name, id, status)\nTask: Find value from facility_registry where amount exceeds the maximum salary from activity_log for the same status.\nSQL:", "sql": "SELECT value FROM facility_registry AS dept\nWHERE amount > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.status = dept.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(amount, id, date, type)\n sourcing_list(name, type, value, level)\nTask: Retrieve id from facility_registry with value above the MAX(value) of sourcing_list rows sharing the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS empl\nWHERE value > (\n SELECT MAX(value) FROM sourcing_list AS spl\n WHERE spl.type = empl.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(status, value, id, amount)\n sourcing_list(amount, salary, date, value)\nTask: Select code from dispatch_queue where level exists in sourcing_list for the same level.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(type, amount, status, value)\n attribute_groups(date, salary, level, type)\nTask: Find value from receivables_log where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT value FROM receivables_log AS usr\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(status, type, amount, value)\n portfolio_index(level, date, amount, name)\nTask: Retrieve value from stock_catalog with amount above the SUM(value) of portfolio_index rows sharing the same type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS dept\nWHERE amount > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "dept", "inner_alias": "act", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: dept)(name, status, id, code)\n cost_centers(value, amount, salary, type)\nTask: Find value from receivables_log where type appears in cost_centers entries with matching code.\nSQL:", "sql": "SELECT value FROM receivables_log AS dept\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, amount, id, status)\n sourcing_list(value, id, status, date)\nTask: Retrieve name from dispatch_queue whose id is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(date, level, code, salary)\n journal_entries(type, value, level, date)\nTask: Select code from facility_registry where amount is greater than the count of of salary in journal_entries for matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(amount, value, code, name)\n attribute_groups(name, status, value, amount)\nTask: Find name from journal_entries where type appears in attribute_groups entries with matching level.\nSQL:", "sql": "SELECT name FROM journal_entries AS usr\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(amount, name, level, code)\n attribute_groups(date, level, code, type)\nTask: Select code from engagement_log that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(code, status, amount, id)\n workforce_data(code, salary, status, amount)\nTask: Find name from portfolio_index where amount exceeds the total value from workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE amount > (\n SELECT SUM(value) FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(value, amount, id, type)\n portfolio_index(level, id, status, value)\nTask: Find amount from engagement_log where type appears in portfolio_index entries with matching id.\nSQL:", "sql": "SELECT amount FROM engagement_log AS inv\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(status, value, amount, name)\n activity_log(name, salary, id, level)\nTask: Select salary from journal_entries that have at least one matching row in activity_log for the same id.\nSQL:", "sql": "SELECT salary FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: usr)(id, date, salary, amount)\n sales_registry(level, status, amount, id)\nTask: Select value from activity_log where id exists in sales_registry for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS usr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: ord)(id, value, status, name)\n stock_catalog(date, amount, code, name)\nTask: Find amount from engagement_log where type appears in stock_catalog entries with matching level.\nSQL:", "sql": "SELECT amount FROM engagement_log AS ord\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.level = ord.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stock_catalog", "outer_alias": "ord", "inner_alias": "prd", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(date, status, level, type)\n engagement_log(date, code, type, amount)\nTask: Find name from portfolio_index where type appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.status = usr.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "name", "filter_col": "type", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(value, level, name, amount)\n area_registry(type, status, salary, date)\nTask: Retrieve salary from dispatch_queue whose code is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "code", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(amount, name, id, type)\n attribute_groups(type, salary, amount, date)\nTask: Select code from area_registry where salary is greater than the count of of value in attribute_groups for matching level.\nSQL:", "sql": "SELECT code FROM area_registry AS ord\nWHERE salary > (\n SELECT COUNT(value) FROM attribute_groups AS ctg\n WHERE ctg.level = ord.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: emp)(name, code, type, level)\n portfolio_index(code, name, value, status)\nTask: Find amount from stocking_sites where type appears in portfolio_index entries with matching level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS emp\nWHERE type IN (\n SELECT type FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: emp)(name, status, id, salary)\n cost_centers(salary, status, name, value)\nTask: Retrieve value from stocking_sites that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT value FROM stocking_sites AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(status, name, id, code)\n stock_catalog(status, type, level, name)\nTask: Select code from workforce_data that have at least one matching row in stock_catalog for the same level.\nSQL:", "sql": "SELECT code FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.level = mgr.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(code, level, date, amount)\n journal_entries(salary, level, value, type)\nTask: Find code from stock_catalog where amount exceeds the average value from journal_entries for the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE amount > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: ord)(status, salary, name, date)\n dispatch_queue(amount, type, name, status)\nTask: Find id from cost_centers where a matching record exists in dispatch_queue with the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(id, amount, value, type)\n acquisition_log(value, code, id, type)\nTask: Retrieve code from area_registry whose type is found in acquisition_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.id = usr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(amount, status, code, salary)\n acquisition_log(status, name, level, id)\nTask: Find name from engagement_log where id appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(name, type, date, code)\n stock_catalog(level, value, salary, status)\nTask: Retrieve amount from dispatch_queue whose status is found in stock_catalog rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS prod\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(status, amount, date, level)\n journal_entries(value, level, date, code)\nTask: Retrieve amount from activity_log with amount above the SUM(salary) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM activity_log AS usr\nWHERE amount > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.status = usr.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: inv)(level, value, code, status)\n activity_log(id, amount, status, type)\nTask: Find code from portfolio_index where status appears in activity_log entries with matching level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS inv\nWHERE status IN (\n SELECT status FROM activity_log AS tsk\n WHERE tsk.level = inv.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(level, id, amount, status)\n facility_registry(value, level, status, salary)\nTask: Retrieve id from dispatch_queue that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: usr)(amount, code, value, id)\n engagement_log(type, value, code, date)\nTask: Retrieve code from acquisition_log whose status is found in engagement_log rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM acquisition_log AS usr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = usr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: inv)(amount, salary, type, value)\n dispatch_queue(id, type, amount, date)\nTask: Find amount from stock_catalog where amount exceeds the average value from dispatch_queue for the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS inv\nWHERE amount > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.level = inv.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: empl)(id, code, date, name)\n dispatch_queue(amount, id, date, salary)\nTask: Retrieve id from cost_centers whose status is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE status IN (\n SELECT status FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(level, date, id, name)\n cost_centers(name, salary, date, id)\nTask: Find name from workforce_data where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(amount, value, name, code)\n portfolio_index(value, code, status, id)\nTask: Select amount from acquisition_log where salary is greater than the total of value in portfolio_index for matching type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS prod\nWHERE salary > (\n SELECT SUM(value) FROM portfolio_index AS act\n WHERE act.type = prod.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: dept)(level, name, status, date)\n journal_entries(status, date, name, level)\nTask: Find name from facility_registry where level appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: ord)(status, level, id, salary)\n personnel_registry(amount, type, level, code)\nTask: Find name from activity_log where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT name FROM activity_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "name", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(level, salary, name, code)\n workforce_data(name, type, amount, value)\nTask: Retrieve code from journal_entries whose level is found in workforce_data rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE level IN (\n SELECT level FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: usr)(id, status, salary, level)\n facility_registry(salary, date, code, id)\nTask: Retrieve amount from stocking_sites whose id is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: mgr)(id, value, status, salary)\n attribute_groups(level, type, id, amount)\nTask: Retrieve amount from journal_entries that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: dept)(value, amount, date, code)\n cost_centers(value, date, amount, level)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(value, amount, status, id)\n facility_registry(level, value, name, type)\nTask: Retrieve name from stocking_sites with value above the COUNT(amount) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT name FROM stocking_sites AS prod\nWHERE value > (\n SELECT COUNT(amount) FROM facility_registry AS brc\n WHERE brc.level = prod.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: prod)(code, value, type, amount)\n activity_log(name, level, amount, id)\nTask: Select id from workforce_data where type exists in activity_log for the same level.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(value, name, code, type)\n sales_queue(name, date, salary, type)\nTask: Select value from portfolio_index where amount is greater than the count of of amount in sales_queue for matching code.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(name, code, status, date)\n sourcing_list(salary, type, value, level)\nTask: Select amount from facility_registry where value is greater than the minimum of salary in sourcing_list for matching type.\nSQL:", "sql": "SELECT amount FROM facility_registry AS dept\nWHERE value > (\n SELECT MIN(salary) FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(value, code, level, salary)\n sourcing_list(status, level, amount, code)\nTask: Retrieve code from workforce_data whose type is found in sourcing_list rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM workforce_data AS empl\nWHERE type IN (\n SELECT type FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(id, salary, name, amount)\n area_registry(salary, amount, code, date)\nTask: Select value from stock_catalog that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(code, level, status, date)\n stock_catalog(amount, name, level, code)\nTask: Select salary from stocking_sites where code exists in stock_catalog for the same code.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS inv\nWHERE code IN (\n SELECT code FROM stock_catalog AS prd\n WHERE prd.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(value, id, name, status)\n receivables_log(level, code, status, name)\nTask: Find name from area_registry where a matching record exists in receivables_log with the same id.\nSQL:", "sql": "SELECT name FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = dept.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: usr)(type, level, amount, id)\n cost_centers(name, code, status, level)\nTask: Retrieve id from activity_log with amount above the AVG(amount) of cost_centers rows sharing the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS usr\nWHERE amount > (\n SELECT AVG(amount) FROM cost_centers AS dpt\n WHERE dpt.type = usr.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(date, salary, type, id)\n personnel_registry(id, type, value, name)\nTask: Retrieve value from stock_catalog whose id is found in personnel_registry rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(name, level, date, salary)\n facility_registry(id, salary, value, type)\nTask: Select amount from personnel_registry where id exists in facility_registry for the same status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS prod\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.status = prod.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: emp)(salary, status, type, amount)\n attribute_groups(value, salary, date, level)\nTask: Select id from sales_queue that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(date, level, salary, type)\n attribute_groups(salary, id, status, amount)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(id, level, value, amount)\n dispatch_queue(level, code, salary, id)\nTask: Select salary from sales_registry that have at least one matching row in dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(name, salary, level, type)\n engagement_log(status, level, type, amount)\nTask: Retrieve code from sales_queue with salary above the MAX(amount) of engagement_log rows sharing the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS inv\nWHERE salary > (\n SELECT MAX(amount) FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(amount, name, status, level)\n stocking_sites(value, status, amount, date)\nTask: Find salary from attribute_groups where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(level, type, status, name)\n engagement_log(value, name, salary, amount)\nTask: Select id from dispatch_queue where level exists in engagement_log for the same id.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS mgr\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, level, type, status)\n area_registry(level, type, salary, value)\nTask: Select value from personnel_registry where value is greater than the count of of value in area_registry for matching type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS prod\nWHERE value > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.type = prod.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: ord)(name, date, amount, status)\n dispatch_queue(type, status, salary, code)\nTask: Retrieve id from cost_centers with amount above the SUM(value) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT id FROM cost_centers AS ord\nWHERE amount > (\n SELECT SUM(value) FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: prod)(amount, id, salary, date)\n acquisition_log(name, amount, value, salary)\nTask: Find id from sales_queue where status appears in acquisition_log entries with matching level.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(salary, type, id, status)\n stock_catalog(date, value, type, status)\nTask: Retrieve id from sales_registry whose status is found in stock_catalog rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(name, date, level, type)\n engagement_log(id, amount, date, value)\nTask: Select amount from sourcing_list where value is greater than the total of value in engagement_log for matching level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE value > (\n SELECT SUM(value) FROM engagement_log AS prj\n WHERE prj.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(name, salary, type, amount)\n cost_centers(status, level, amount, value)\nTask: Retrieve code from attribute_groups whose level is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE level IN (\n SELECT level FROM cost_centers AS dpt\n WHERE dpt.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "level", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(id, value, amount, type)\n dispatch_queue(code, name, type, level)\nTask: Find amount from sales_queue where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: inv)(name, salary, amount, id)\n stocking_sites(level, code, value, amount)\nTask: Retrieve code from workforce_data with amount above the COUNT(salary) of stocking_sites rows sharing the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(type, amount, salary, code)\n sales_registry(status, amount, id, salary)\nTask: Select name from stock_catalog that have at least one matching row in sales_registry for the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(id, amount, date, status)\n cost_centers(code, level, type, id)\nTask: Select salary from sales_queue that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT salary FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = inv.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: mgr)(date, level, id, value)\n receivables_log(id, date, status, code)\nTask: Retrieve value from personnel_registry whose id is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(level, amount, date, value)\n engagement_log(type, name, level, status)\nTask: Find amount from stocking_sites where salary exceeds the minimum amount from engagement_log for the same id.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(amount, code, status, type)\n dispatch_queue(status, salary, amount, level)\nTask: Retrieve amount from sales_registry with value above the MAX(value) of dispatch_queue rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE value > (\n SELECT MAX(value) FROM dispatch_queue AS shp\n WHERE shp.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: usr)(type, salary, code, value)\n facility_registry(level, salary, type, amount)\nTask: Select value from sourcing_list where amount is greater than the average of salary in facility_registry for matching status.\nSQL:", "sql": "SELECT value FROM sourcing_list AS usr\nWHERE amount > (\n SELECT AVG(salary) FROM facility_registry AS brc\n WHERE brc.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(code, level, date, value)\n activity_log(id, value, salary, level)\nTask: Find amount from sales_queue where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT amount FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "amount", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: emp)(type, amount, code, level)\n area_registry(type, amount, status, id)\nTask: Select name from stocking_sites where salary is greater than the count of of salary in area_registry for matching id.\nSQL:", "sql": "SELECT name FROM stocking_sites AS emp\nWHERE salary > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(date, name, id, value)\n dispatch_queue(date, code, id, status)\nTask: Find id from cost_centers where type appears in dispatch_queue entries with matching status.\nSQL:", "sql": "SELECT id FROM cost_centers AS emp\nWHERE type IN (\n SELECT type FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "id", "filter_col": "type", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(level, name, type, value)\n stock_catalog(value, amount, id, code)\nTask: Find amount from attribute_groups where status appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS inv\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "amount", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(name, value, status, amount)\n dispatch_queue(value, id, amount, date)\nTask: Select value from engagement_log where value is greater than the maximum of amount in dispatch_queue for matching status.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE value > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(status, level, code, salary)\n sales_queue(type, value, id, salary)\nTask: Find id from activity_log where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT id FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: ord)(name, code, amount, type)\n acquisition_log(code, amount, level, id)\nTask: Select salary from personnel_registry where code exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS ord\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.status = ord.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(status, name, code, date)\n sourcing_list(code, status, date, amount)\nTask: Find value from portfolio_index where status appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT value FROM portfolio_index AS prod\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.level = prod.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: dept)(type, date, id, status)\n cost_centers(level, salary, value, amount)\nTask: Find code from personnel_registry where id appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(date, level, code, value)\n activity_log(salary, level, status, id)\nTask: Retrieve salary from workforce_data that have at least one corresponding entry in activity_log sharing the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: dept)(value, code, date, amount)\n cost_centers(type, value, name, id)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in cost_centers sharing the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: empl)(salary, value, name, amount)\n cost_centers(id, name, salary, value)\nTask: Retrieve value from activity_log with value above the AVG(salary) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT value FROM activity_log AS empl\nWHERE value > (\n SELECT AVG(salary) FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: usr)(level, id, date, name)\n receivables_log(date, amount, status, id)\nTask: Select amount from dispatch_queue where amount is greater than the maximum of salary in receivables_log for matching level.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS usr\nWHERE amount > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.level = usr.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: ord)(type, value, level, id)\n facility_registry(amount, id, status, name)\nTask: Find id from receivables_log where value exceeds the average value from facility_registry for the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS ord\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.id = ord.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(name, level, value, date)\n workforce_data(amount, value, salary, name)\nTask: Find code from portfolio_index where value exceeds the minimum salary from workforce_data for the same level.\nSQL:", "sql": "SELECT code FROM portfolio_index AS ord\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(value, id, date, code)\n sales_queue(code, value, salary, type)\nTask: Select code from engagement_log where amount is greater than the average of value in sales_queue for matching level.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE amount > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.level = usr.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(type, name, amount, salary)\n receivables_log(value, salary, code, id)\nTask: Retrieve amount from journal_entries whose type is found in receivables_log rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS mgr\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "type", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(code, type, level, status)\n sourcing_list(id, status, level, salary)\nTask: Find salary from dispatch_queue where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "salary", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: mgr)(status, value, type, id)\n portfolio_index(level, date, id, salary)\nTask: Select code from dispatch_queue where status exists in portfolio_index for the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE status IN (\n SELECT status FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(type, salary, value, id)\n engagement_log(type, code, name, id)\nTask: Find salary from personnel_registry where value exceeds the average salary from engagement_log for the same level.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM engagement_log AS prj\n WHERE prj.level = mgr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(status, code, value, date)\n engagement_log(id, value, amount, name)\nTask: Select salary from stock_catalog where status exists in engagement_log for the same status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: dept)(level, date, amount, code)\n receivables_log(type, status, value, level)\nTask: Retrieve name from journal_entries with amount above the MIN(salary) of receivables_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM journal_entries AS dept\nWHERE amount > (\n SELECT MIN(salary) FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(type, date, level, salary)\n facility_registry(id, status, name, value)\nTask: Find salary from attribute_groups where status appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(status, level, name, salary)\n stock_catalog(salary, status, type, id)\nTask: Retrieve amount from sales_queue whose type is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT amount FROM sales_queue AS empl\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = empl.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(level, date, id, name)\n area_registry(id, date, type, level)\nTask: Retrieve value from personnel_registry with salary above the MAX(salary) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS mgr\nWHERE salary > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(id, code, name, value)\n attribute_groups(level, amount, value, type)\nTask: Find name from engagement_log where status appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT name FROM engagement_log AS inv\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.id = inv.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: inv)(code, level, date, type)\n workforce_data(status, name, salary, id)\nTask: Retrieve code from acquisition_log with value above the COUNT(salary) of workforce_data rows sharing the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS inv\nWHERE value > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(amount, date, level, salary)\n receivables_log(type, salary, level, name)\nTask: Find name from stock_catalog where code appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.type = dept.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: prod)(amount, status, salary, id)\n cost_centers(salary, code, level, id)\nTask: Retrieve name from attribute_groups with amount above the MAX(salary) of cost_centers rows sharing the same level.\nSQL:", "sql": "SELECT name FROM attribute_groups AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM cost_centers AS dpt\n WHERE dpt.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(status, level, id, amount)\n sales_queue(date, status, level, value)\nTask: Select amount from personnel_registry that have at least one matching row in sales_queue for the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(level, code, type, amount)\n cost_centers(type, amount, date, salary)\nTask: Retrieve value from attribute_groups whose status is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = empl.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: prod)(id, code, level, value)\n sales_registry(level, name, value, code)\nTask: Retrieve amount from stocking_sites with amount above the MAX(salary) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(level, salary, id, name)\n stocking_sites(type, value, name, salary)\nTask: Select salary from acquisition_log where status exists in stocking_sites for the same id.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(id, date, status, name)\n attribute_groups(value, status, salary, type)\nTask: Retrieve id from dispatch_queue with value above the MAX(value) of attribute_groups rows sharing the same type.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS inv\nWHERE value > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(code, amount, level, type)\n attribute_groups(id, code, date, status)\nTask: Find id from cost_centers where amount exceeds the maximum salary from attribute_groups for the same level.\nSQL:", "sql": "SELECT id FROM cost_centers AS usr\nWHERE amount > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(value, date, name, id)\n sourcing_list(salary, status, code, type)\nTask: Find value from sales_queue where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT value FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = usr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "usr", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(date, salary, type, value)\n attribute_groups(date, value, id, code)\nTask: Select code from facility_registry that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: mgr)(amount, date, level, name)\n receivables_log(level, status, name, date)\nTask: Retrieve value from acquisition_log that have at least one corresponding entry in receivables_log sharing the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, type, date, level)\n acquisition_log(amount, type, date, name)\nTask: Select id from attribute_groups where type exists in acquisition_log for the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(date, name, amount, level)\n personnel_registry(code, status, salary, value)\nTask: Retrieve amount from journal_entries with salary above the MAX(value) of personnel_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM journal_entries AS prod\nWHERE salary > (\n SELECT MAX(value) FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: emp)(level, code, id, type)\n attribute_groups(code, status, type, id)\nTask: Retrieve value from receivables_log with amount above the MAX(salary) of attribute_groups rows sharing the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE amount > (\n SELECT MAX(salary) FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(code, type, name, id)\n portfolio_index(level, date, type, name)\nTask: Find id from cost_centers where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT id FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = empl.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: empl)(date, code, salary, id)\n activity_log(code, value, id, salary)\nTask: Find id from workforce_data where a matching record exists in activity_log with the same id.\nSQL:", "sql": "SELECT id FROM workforce_data AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(date, amount, value, level)\n stock_catalog(name, id, amount, date)\nTask: Retrieve code from facility_registry that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "code", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(date, status, name, type)\n stocking_sites(code, type, status, name)\nTask: Select salary from acquisition_log where amount is greater than the count of of salary in stocking_sites for matching level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS empl\nWHERE amount > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: mgr)(code, name, id, level)\n attribute_groups(type, name, amount, value)\nTask: Select salary from personnel_registry where value is greater than the maximum of value in attribute_groups for matching type.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE value > (\n SELECT MAX(value) FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(name, value, type, code)\n acquisition_log(name, date, level, amount)\nTask: Select salary from stock_catalog that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(salary, name, value, type)\n receivables_log(code, date, amount, status)\nTask: Select salary from workforce_data where code exists in receivables_log for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(value, id, code, status)\n attribute_groups(id, name, level, status)\nTask: Retrieve salary from facility_registry whose id is found in attribute_groups rows where type matches the outer record.\nSQL:", "sql": "SELECT salary FROM facility_registry AS mgr\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "id", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(level, salary, name, date)\n sales_registry(date, type, status, level)\nTask: Find amount from activity_log where code appears in sales_registry entries with matching status.\nSQL:", "sql": "SELECT amount FROM activity_log AS ord\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(name, code, id, date)\n facility_registry(date, status, type, id)\nTask: Find name from acquisition_log where type appears in facility_registry entries with matching type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS inv\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: ord)(value, name, level, salary)\n activity_log(date, name, level, type)\nTask: Retrieve salary from dispatch_queue whose id is found in activity_log rows where code matches the outer record.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(salary, level, id, type)\n journal_entries(type, name, date, amount)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT salary FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(id, code, status, value)\n stocking_sites(level, value, code, status)\nTask: Find name from activity_log where type appears in stocking_sites entries with matching id.\nSQL:", "sql": "SELECT name FROM activity_log AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: empl)(level, date, amount, value)\n acquisition_log(id, date, level, type)\nTask: Retrieve salary from activity_log that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT salary FROM activity_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = empl.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: usr)(salary, id, level, date)\n portfolio_index(type, level, value, amount)\nTask: Find amount from stocking_sites where a matching record exists in portfolio_index with the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: prod)(date, level, type, value)\n stock_catalog(amount, id, status, salary)\nTask: Find code from journal_entries where type appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT code FROM journal_entries AS prod\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(status, salary, date, level)\n sales_queue(value, status, id, type)\nTask: Select salary from engagement_log where value is greater than the total of salary in sales_queue for matching type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS emp\nWHERE value > (\n SELECT SUM(salary) FROM sales_queue AS ord\n WHERE ord.type = emp.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(salary, date, name, amount)\n cost_centers(level, code, name, id)\nTask: Select code from dispatch_queue where status exists in cost_centers for the same status.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS empl\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: empl)(type, name, id, code)\n sourcing_list(value, type, name, level)\nTask: Retrieve id from sales_registry whose code is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS empl\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = empl.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: empl)(salary, amount, id, name)\n sales_registry(id, date, status, value)\nTask: Find salary from receivables_log where code appears in sales_registry entries with matching code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.code = empl.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "salary", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: ord)(id, name, level, type)\n cost_centers(type, date, id, amount)\nTask: Find value from area_registry where value exceeds the count of value from cost_centers for the same code.\nSQL:", "sql": "SELECT value FROM area_registry AS ord\nWHERE value > (\n SELECT COUNT(value) FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(date, amount, type, name)\n attribute_groups(id, level, name, amount)\nTask: Select id from workforce_data where id exists in attribute_groups for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS ord\nWHERE id IN (\n SELECT id FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(name, type, level, salary)\n acquisition_log(name, level, id, type)\nTask: Find code from area_registry where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT code FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: ord)(level, code, status, salary)\n facility_registry(status, code, salary, type)\nTask: Select salary from workforce_data where type exists in facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS ord\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, code, id, level)\n journal_entries(name, value, date, level)\nTask: Find amount from stock_catalog where code appears in journal_entries entries with matching level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = usr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, value, name, type)\n workforce_data(date, code, name, amount)\nTask: Select salary from portfolio_index where amount is greater than the count of of salary in workforce_data for matching level.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS mgr\nWHERE amount > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(level, code, type, status)\n sales_registry(type, id, amount, date)\nTask: Select value from stock_catalog where id exists in sales_registry for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "id", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(value, salary, status, amount)\n workforce_data(salary, type, date, amount)\nTask: Find salary from sales_registry where a matching record exists in workforce_data with the same type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(date, status, salary, amount)\n attribute_groups(level, status, type, salary)\nTask: Retrieve amount from sales_queue with amount above the AVG(amount) of attribute_groups rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE amount > (\n SELECT AVG(amount) FROM attribute_groups AS ctg\n WHERE ctg.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(status, salary, amount, type)\n activity_log(code, type, salary, amount)\nTask: Select salary from dispatch_queue where amount is greater than the minimum of amount in activity_log for matching code.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(level, salary, amount, status)\n stocking_sites(value, amount, date, level)\nTask: Select amount from receivables_log where level exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS emp\nWHERE level IN (\n SELECT level FROM stocking_sites AS whs\n WHERE whs.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(type, id, value, level)\n dispatch_queue(status, amount, value, name)\nTask: Select salary from engagement_log where salary is greater than the minimum of salary in dispatch_queue for matching code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE salary > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(date, amount, code, name)\n sourcing_list(status, salary, value, amount)\nTask: Find code from sales_queue where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT code FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(salary, amount, type, code)\n engagement_log(id, salary, status, amount)\nTask: Find value from personnel_registry where a matching record exists in engagement_log with the same type.\nSQL:", "sql": "SELECT value FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "value", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: prod)(id, type, date, value)\n activity_log(type, status, amount, date)\nTask: Select id from journal_entries where salary is greater than the average of salary in activity_log for matching type.\nSQL:", "sql": "SELECT id FROM journal_entries AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: empl)(value, type, name, level)\n facility_registry(code, date, id, salary)\nTask: Retrieve amount from acquisition_log with value above the AVG(value) of facility_registry rows sharing the same level.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE value > (\n SELECT AVG(value) FROM facility_registry AS brc\n WHERE brc.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: emp)(code, level, salary, value)\n receivables_log(id, name, status, type)\nTask: Select code from engagement_log where amount is greater than the maximum of amount in receivables_log for matching status.\nSQL:", "sql": "SELECT code FROM engagement_log AS emp\nWHERE amount > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.status = emp.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(date, id, value, name)\n sourcing_list(salary, id, level, type)\nTask: Find amount from acquisition_log where a matching record exists in sourcing_list with the same status.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "amount", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: ord)(type, name, id, code)\n facility_registry(type, date, salary, code)\nTask: Find salary from receivables_log where level appears in facility_registry entries with matching code.\nSQL:", "sql": "SELECT salary FROM receivables_log AS ord\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(id, level, value, amount)\n engagement_log(salary, name, status, code)\nTask: Select code from receivables_log that have at least one matching row in engagement_log for the same code.\nSQL:", "sql": "SELECT code FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = usr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(salary, value, status, level)\n engagement_log(value, code, date, status)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in engagement_log sharing the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = emp.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "salary", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: inv)(name, code, status, level)\n personnel_registry(salary, amount, name, value)\nTask: Find value from workforce_data where code appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE code IN (\n SELECT code FROM personnel_registry AS emp\n WHERE emp.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: usr)(level, status, code, name)\n area_registry(level, salary, status, value)\nTask: Find code from engagement_log where salary exceeds the minimum amount from area_registry for the same type.\nSQL:", "sql": "SELECT code FROM engagement_log AS usr\nWHERE salary > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: dept)(id, value, name, level)\n activity_log(name, level, code, salary)\nTask: Select salary from attribute_groups where amount is greater than the average of amount in activity_log for matching code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE amount > (\n SELECT AVG(amount) FROM activity_log AS tsk\n WHERE tsk.code = dept.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "activity_log", "outer_alias": "dept", "inner_alias": "tsk", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: emp)(id, level, value, date)\n sales_registry(type, status, id, name)\nTask: Find id from area_registry where salary exceeds the total value from sales_registry for the same level.\nSQL:", "sql": "SELECT id FROM area_registry AS emp\nWHERE salary > (\n SELECT SUM(value) FROM sales_registry AS cst\n WHERE cst.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "id", "filter_col": "salary", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(amount, type, code, value)\n facility_registry(salary, date, code, level)\nTask: Select name from stock_catalog that have at least one matching row in facility_registry for the same level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.level = emp.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(amount, date, value, name)\n receivables_log(value, level, name, type)\nTask: Retrieve code from portfolio_index whose id is found in receivables_log rows where id matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: empl)(date, type, status, amount)\n stocking_sites(type, name, date, value)\nTask: Select code from personnel_registry where type exists in stocking_sites for the same type.\nSQL:", "sql": "SELECT code FROM personnel_registry AS empl\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.type = empl.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: ord)(code, status, salary, id)\n facility_registry(value, name, code, type)\nTask: Retrieve value from sourcing_list whose id is found in facility_registry rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS ord\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.type = ord.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: mgr)(status, salary, value, code)\n sales_registry(code, type, name, date)\nTask: Find salary from workforce_data where value exceeds the average salary from sales_registry for the same type.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE value > (\n SELECT AVG(salary) FROM sales_registry AS cst\n WHERE cst.type = mgr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(name, type, status, date)\n cost_centers(date, name, salary, status)\nTask: Find name from portfolio_index where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "prod", "inner_alias": "dpt", "proj_col": "name", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: emp)(status, name, code, amount)\n sales_queue(level, type, value, amount)\nTask: Retrieve amount from workforce_data that have at least one corresponding entry in sales_queue sharing the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(status, date, name, code)\n receivables_log(id, salary, code, date)\nTask: Find code from stock_catalog where id appears in receivables_log entries with matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS dept\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(value, amount, salary, date)\n acquisition_log(salary, value, id, status)\nTask: Find id from stocking_sites where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = dept.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(name, type, status, code)\n area_registry(salary, type, amount, code)\nTask: Select code from acquisition_log where type exists in area_registry for the same id.\nSQL:", "sql": "SELECT code FROM acquisition_log AS mgr\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "code", "filter_col": "type", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(amount, name, status, level)\n sales_queue(value, code, amount, type)\nTask: Retrieve salary from cost_centers with salary above the AVG(value) of sales_queue rows sharing the same level.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE salary > (\n SELECT AVG(value) FROM sales_queue AS ord\n WHERE ord.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "value", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: emp)(status, type, date, salary)\n journal_entries(amount, name, id, level)\nTask: Find value from portfolio_index where a matching record exists in journal_entries with the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "value", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: dept)(code, value, amount, id)\n receivables_log(status, name, level, code)\nTask: Select code from area_registry where status exists in receivables_log for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS dept\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: inv)(code, amount, value, salary)\n sales_registry(amount, value, name, salary)\nTask: Retrieve amount from sales_queue with amount above the MAX(salary) of sales_registry rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM sales_registry AS cst\n WHERE cst.status = inv.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(level, amount, value, code)\n attribute_groups(type, amount, date, level)\nTask: Select name from sourcing_list where amount is greater than the count of of amount in attribute_groups for matching type.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE amount > (\n SELECT COUNT(amount) FROM attribute_groups AS ctg\n WHERE ctg.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(id, code, type, name)\n workforce_data(level, code, amount, value)\nTask: Retrieve id from facility_registry with value above the MAX(salary) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE value > (\n SELECT MAX(salary) FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: emp)(code, level, id, date)\n cost_centers(code, salary, name, amount)\nTask: Select id from acquisition_log that have at least one matching row in cost_centers for the same level.\nSQL:", "sql": "SELECT id FROM acquisition_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "cost_centers", "outer_alias": "emp", "inner_alias": "dpt", "proj_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(id, date, level, value)\n receivables_log(type, amount, id, date)\nTask: Retrieve salary from cost_centers that have at least one corresponding entry in receivables_log sharing the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.id = prod.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: ord)(amount, date, name, id)\n cost_centers(id, amount, name, type)\nTask: Retrieve value from engagement_log that have at least one corresponding entry in cost_centers sharing the same type.\nSQL:", "sql": "SELECT value FROM engagement_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.type = ord.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "value", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(value, code, level, salary)\n area_registry(status, id, name, amount)\nTask: Find salary from dispatch_queue where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(name, amount, value, level)\n cost_centers(value, salary, date, status)\nTask: Select id from stocking_sites where code exists in cost_centers for the same code.\nSQL:", "sql": "SELECT id FROM stocking_sites AS inv\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.code = inv.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "id", "filter_col": "code", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: ord)(salary, amount, status, date)\n personnel_registry(status, id, code, value)\nTask: Find amount from area_registry where level appears in personnel_registry entries with matching code.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.code = ord.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "filter_col": "level", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(id, code, type, date)\n dispatch_queue(date, status, value, type)\nTask: Retrieve value from acquisition_log whose code is found in dispatch_queue rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.code = emp.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(name, date, id, status)\n sales_queue(level, id, salary, date)\nTask: Select name from receivables_log where type exists in sales_queue for the same type.\nSQL:", "sql": "SELECT name FROM receivables_log AS inv\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(code, value, status, id)\n journal_entries(type, id, name, level)\nTask: Select salary from receivables_log where code exists in journal_entries for the same status.\nSQL:", "sql": "SELECT salary FROM receivables_log AS prod\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: emp)(level, name, code, salary)\n attribute_groups(date, type, salary, code)\nTask: Retrieve id from sales_registry that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = emp.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: dept)(id, value, name, amount)\n workforce_data(status, id, salary, code)\nTask: Select salary from engagement_log where salary is greater than the count of of salary in workforce_data for matching id.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE salary > (\n SELECT COUNT(salary) FROM workforce_data AS empl\n WHERE empl.id = dept.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "salary", "filter_col": "salary", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: inv)(status, name, type, value)\n dispatch_queue(salary, level, date, amount)\nTask: Find salary from engagement_log where salary exceeds the total amount from dispatch_queue for the same code.\nSQL:", "sql": "SELECT salary FROM engagement_log AS inv\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.code = inv.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: emp)(status, amount, code, salary)\n sourcing_list(level, type, code, salary)\nTask: Select code from personnel_registry that have at least one matching row in sourcing_list for the same status.\nSQL:", "sql": "SELECT code FROM personnel_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = emp.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: emp)(level, name, salary, amount)\n attribute_groups(amount, salary, status, value)\nTask: Select id from facility_registry that have at least one matching row in attribute_groups for the same type.\nSQL:", "sql": "SELECT id FROM facility_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = emp.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: prod)(code, amount, type, id)\n portfolio_index(type, salary, amount, level)\nTask: Select value from sales_registry that have at least one matching row in portfolio_index for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "portfolio_index", "outer_alias": "prod", "inner_alias": "act", "proj_col": "value", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(id, amount, name, code)\n activity_log(salary, status, type, level)\nTask: Select id from engagement_log that have at least one matching row in activity_log for the same type.\nSQL:", "sql": "SELECT id FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(code, salary, amount, level)\n acquisition_log(date, value, type, level)\nTask: Retrieve code from stocking_sites that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT code FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(type, salary, id, status)\n dispatch_queue(salary, type, value, id)\nTask: Select id from facility_registry where value is greater than the average of salary in dispatch_queue for matching code.\nSQL:", "sql": "SELECT id FROM facility_registry AS usr\nWHERE value > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: dept)(name, date, id, value)\n sourcing_list(status, salary, date, value)\nTask: Find name from facility_registry where value exceeds the minimum amount from sourcing_list for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS dept\nWHERE value > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.type = dept.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(id, value, type, date)\n area_registry(type, level, status, name)\nTask: Find id from portfolio_index where id appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT id FROM portfolio_index AS emp\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(status, code, level, date)\n activity_log(code, salary, id, date)\nTask: Find id from stock_catalog where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: inv)(amount, date, type, salary)\n journal_entries(name, code, type, status)\nTask: Select id from receivables_log where value is greater than the average of salary in journal_entries for matching type.\nSQL:", "sql": "SELECT id FROM receivables_log AS inv\nWHERE value > (\n SELECT AVG(salary) FROM journal_entries AS txn\n WHERE txn.type = inv.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: ord)(status, salary, id, amount)\n dispatch_queue(amount, date, name, id)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in dispatch_queue sharing the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: inv)(name, code, status, type)\n stock_catalog(level, status, name, salary)\nTask: Select value from attribute_groups where value is greater than the maximum of value in stock_catalog for matching status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE value > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: ord)(value, type, amount, date)\n receivables_log(status, amount, salary, code)\nTask: Find code from activity_log where id appears in receivables_log entries with matching status.\nSQL:", "sql": "SELECT code FROM activity_log AS ord\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.status = ord.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(id, amount, salary, name)\n journal_entries(value, id, name, amount)\nTask: Find code from workforce_data where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: inv)(date, id, type, salary)\n sourcing_list(salary, amount, code, id)\nTask: Find salary from activity_log where a matching record exists in sourcing_list with the same type.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = inv.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(id, type, salary, code)\n workforce_data(amount, name, id, code)\nTask: Select value from journal_entries where status exists in workforce_data for the same level.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(name, date, status, id)\n cost_centers(value, amount, type, status)\nTask: Retrieve value from attribute_groups whose status is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM attribute_groups AS dept\nWHERE status IN (\n SELECT status FROM cost_centers AS dpt\n WHERE dpt.level = dept.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(status, code, type, id)\n sourcing_list(type, date, status, name)\nTask: Retrieve salary from acquisition_log whose level is found in sourcing_list rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS dept\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.level = dept.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: dept)(level, value, code, type)\n journal_entries(name, level, id, date)\nTask: Find name from workforce_data where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT name FROM workforce_data AS dept\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: empl)(salary, id, name, type)\n sales_queue(date, name, amount, id)\nTask: Find code from area_registry where salary exceeds the maximum amount from sales_queue for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: dept)(type, status, level, name)\n receivables_log(level, name, amount, value)\nTask: Select id from stock_catalog where salary is greater than the count of of amount in receivables_log for matching code.\nSQL:", "sql": "SELECT id FROM stock_catalog AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.code = dept.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: mgr)(amount, value, status, type)\n personnel_registry(code, level, value, name)\nTask: Select value from workforce_data that have at least one matching row in personnel_registry for the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: prod)(amount, status, id, code)\n sales_registry(date, amount, type, code)\nTask: Find id from personnel_registry where code appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT id FROM personnel_registry AS prod\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.level = prod.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "filter_col": "code", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(status, value, type, level)\n journal_entries(salary, type, level, status)\nTask: Find name from area_registry where a matching record exists in journal_entries with the same level.\nSQL:", "sql": "SELECT name FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.level = mgr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(type, value, id, code)\n workforce_data(level, name, id, value)\nTask: Find name from facility_registry where value exceeds the average salary from workforce_data for the same type.\nSQL:", "sql": "SELECT name FROM facility_registry AS inv\nWHERE value > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: prod)(code, status, name, salary)\n dispatch_queue(type, date, salary, level)\nTask: Select name from acquisition_log where value is greater than the average of salary in dispatch_queue for matching code.\nSQL:", "sql": "SELECT name FROM acquisition_log AS prod\nWHERE value > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.code = prod.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(amount, level, status, id)\n acquisition_log(salary, value, level, type)\nTask: Retrieve salary from sales_registry with amount above the COUNT(amount) of acquisition_log rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM sales_registry AS empl\nWHERE amount > (\n SELECT COUNT(amount) FROM acquisition_log AS ordr\n WHERE ordr.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(type, value, amount, level)\n attribute_groups(value, name, type, salary)\nTask: Retrieve id from facility_registry that have at least one corresponding entry in attribute_groups sharing the same id.\nSQL:", "sql": "SELECT id FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(value, code, level, name)\n sourcing_list(type, level, date, name)\nTask: Select amount from acquisition_log where value is greater than the total of amount in sourcing_list for matching type.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE value > (\n SELECT SUM(amount) FROM sourcing_list AS spl\n WHERE spl.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(id, salary, type, amount)\n engagement_log(status, amount, id, code)\nTask: Find name from stock_catalog where code appears in engagement_log entries with matching id.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE code IN (\n SELECT code FROM engagement_log AS prj\n WHERE prj.id = emp.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: empl)(date, id, salary, type)\n attribute_groups(code, id, salary, level)\nTask: Find code from sourcing_list where salary exceeds the maximum amount from attribute_groups for the same id.\nSQL:", "sql": "SELECT code FROM sourcing_list AS empl\nWHERE salary > (\n SELECT MAX(amount) FROM attribute_groups AS ctg\n WHERE ctg.id = empl.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(type, id, amount, code)\n sales_registry(id, status, value, code)\nTask: Find amount from receivables_log where value exceeds the average value from sales_registry for the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE value > (\n SELECT AVG(value) FROM sales_registry AS cst\n WHERE cst.id = prod.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: dept)(value, salary, status, id)\n personnel_registry(status, id, value, amount)\nTask: Select id from cost_centers that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT id FROM cost_centers AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(value, type, name, id)\n journal_entries(level, salary, name, value)\nTask: Find name from cost_centers where a matching record exists in journal_entries with the same type.\nSQL:", "sql": "SELECT name FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = mgr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "mgr", "inner_alias": "txn", "proj_col": "name", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(code, id, level, salary)\n engagement_log(value, id, date, status)\nTask: Select salary from sales_registry that have at least one matching row in engagement_log for the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(code, amount, type, status)\n stock_catalog(value, id, amount, code)\nTask: Retrieve amount from personnel_registry that have at least one corresponding entry in stock_catalog sharing the same status.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = dept.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(name, date, type, id)\n stocking_sites(value, date, type, level)\nTask: Select code from area_registry that have at least one matching row in stocking_sites for the same status.\nSQL:", "sql": "SELECT code FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.status = emp.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(name, type, salary, value)\n personnel_registry(salary, date, level, code)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in personnel_registry sharing the same status.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "amount", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(value, type, amount, id)\n personnel_registry(type, amount, salary, level)\nTask: Retrieve code from portfolio_index that have at least one corresponding entry in personnel_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.code = mgr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: usr)(level, amount, name, value)\n facility_registry(level, type, amount, date)\nTask: Select code from stock_catalog that have at least one matching row in facility_registry for the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(level, type, salary, amount)\n receivables_log(code, status, date, id)\nTask: Retrieve code from portfolio_index with amount above the COUNT(amount) of receivables_log rows sharing the same id.\nSQL:", "sql": "SELECT code FROM portfolio_index AS usr\nWHERE amount > (\n SELECT COUNT(amount) FROM receivables_log AS inv\n WHERE inv.id = usr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(amount, code, name, value)\n attribute_groups(name, code, amount, id)\nTask: Find id from engagement_log where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: usr)(level, type, name, date)\n attribute_groups(status, amount, name, type)\nTask: Retrieve name from sales_queue that have at least one corresponding entry in attribute_groups sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.level = usr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "name", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(value, id, name, level)\n attribute_groups(code, name, value, type)\nTask: Find id from journal_entries where level appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT id FROM journal_entries AS emp\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "emp", "inner_alias": "ctg", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: emp)(type, salary, value, name)\n workforce_data(amount, code, date, value)\nTask: Retrieve name from receivables_log that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(amount, status, type, date)\n workforce_data(type, name, id, level)\nTask: Retrieve name from dispatch_queue with salary above the COUNT(amount) of workforce_data rows sharing the same level.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS dept\nWHERE salary > (\n SELECT COUNT(amount) FROM workforce_data AS empl\n WHERE empl.level = dept.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: mgr)(status, code, salary, name)\n cost_centers(date, id, type, code)\nTask: Select salary from workforce_data where code exists in cost_centers for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: ord)(amount, name, code, type)\n activity_log(level, date, type, name)\nTask: Find code from journal_entries where a matching record exists in activity_log with the same level.\nSQL:", "sql": "SELECT code FROM journal_entries AS ord\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = ord.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "code", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(level, name, id, value)\n area_registry(name, status, date, amount)\nTask: Find salary from acquisition_log where id appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS emp\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(level, status, type, amount)\n facility_registry(status, id, level, name)\nTask: Find id from sales_queue where a matching record exists in facility_registry with the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: ord)(id, date, status, value)\n dispatch_queue(name, type, level, status)\nTask: Retrieve amount from portfolio_index with amount above the MIN(salary) of dispatch_queue rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS ord\nWHERE amount > (\n SELECT MIN(salary) FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(amount, value, type, code)\n engagement_log(name, level, type, salary)\nTask: Find amount from workforce_data where value exceeds the total amount from engagement_log for the same level.\nSQL:", "sql": "SELECT amount FROM workforce_data AS prod\nWHERE value > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: prod)(amount, status, code, type)\n receivables_log(type, name, value, code)\nTask: Retrieve name from sales_registry with amount above the MAX(salary) of receivables_log rows sharing the same level.\nSQL:", "sql": "SELECT name FROM sales_registry AS prod\nWHERE amount > (\n SELECT MAX(salary) FROM receivables_log AS inv\n WHERE inv.level = prod.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(level, salary, name, id)\n engagement_log(code, amount, value, type)\nTask: Retrieve id from workforce_data whose type is found in engagement_log rows where code matches the outer record.\nSQL:", "sql": "SELECT id FROM workforce_data AS dept\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.code = dept.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "id", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(level, id, name, date)\n facility_registry(status, level, salary, id)\nTask: Retrieve amount from stocking_sites with value above the MIN(value) of facility_registry rows sharing the same status.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS empl\nWHERE value > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "amount", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(type, level, status, salary)\n facility_registry(type, level, code, date)\nTask: Find salary from stocking_sites where amount exceeds the minimum value from facility_registry for the same status.\nSQL:", "sql": "SELECT salary FROM stocking_sites AS empl\nWHERE amount > (\n SELECT MIN(value) FROM facility_registry AS brc\n WHERE brc.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: inv)(type, value, amount, level)\n engagement_log(date, type, id, level)\nTask: Select salary from acquisition_log where status exists in engagement_log for the same level.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS inv\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.level = inv.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "salary", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: ord)(salary, level, amount, type)\n activity_log(name, id, value, date)\nTask: Retrieve name from acquisition_log with amount above the SUM(salary) of activity_log rows sharing the same status.\nSQL:", "sql": "SELECT name FROM acquisition_log AS ord\nWHERE amount > (\n SELECT SUM(salary) FROM activity_log AS tsk\n WHERE tsk.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: usr)(type, amount, status, id)\n workforce_data(type, id, name, value)\nTask: Retrieve salary from sales_registry that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(value, type, salary, amount)\n activity_log(amount, status, salary, date)\nTask: Find id from engagement_log where a matching record exists in activity_log with the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.code = empl.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "activity_log", "outer_alias": "empl", "inner_alias": "tsk", "proj_col": "id", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(level, value, type, code)\n attribute_groups(code, salary, level, value)\nTask: Find value from workforce_data where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT value FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "attribute_groups", "outer_alias": "inv", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: inv)(type, value, status, code)\n personnel_registry(salary, level, date, status)\nTask: Select salary from activity_log where id exists in personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM activity_log AS inv\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(type, date, value, level)\n dispatch_queue(id, salary, status, code)\nTask: Retrieve code from attribute_groups whose id is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS usr\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(type, date, id, name)\n activity_log(amount, code, value, status)\nTask: Retrieve amount from acquisition_log whose id is found in activity_log rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS emp\nWHERE id IN (\n SELECT id FROM activity_log AS tsk\n WHERE tsk.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: prod)(salary, amount, type, name)\n engagement_log(value, id, date, status)\nTask: Retrieve code from activity_log that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT code FROM activity_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(code, date, level, id)\n stocking_sites(id, level, status, type)\nTask: Select name from portfolio_index where type exists in stocking_sites for the same code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: empl)(code, date, type, value)\n engagement_log(date, level, name, id)\nTask: Find id from sales_queue where id appears in engagement_log entries with matching level.\nSQL:", "sql": "SELECT id FROM sales_queue AS empl\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: ord)(type, level, name, date)\n activity_log(date, amount, status, id)\nTask: Select name from sales_registry where type exists in activity_log for the same code.\nSQL:", "sql": "SELECT name FROM sales_registry AS ord\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.code = ord.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "ord", "inner_alias": "tsk", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: usr)(id, status, date, salary)\n activity_log(name, type, date, salary)\nTask: Find code from facility_registry where salary exceeds the average salary from activity_log for the same status.\nSQL:", "sql": "SELECT code FROM facility_registry AS usr\nWHERE salary > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "usr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(name, value, level, status)\n workforce_data(amount, level, id, code)\nTask: Retrieve name from engagement_log that have at least one corresponding entry in workforce_data sharing the same type.\nSQL:", "sql": "SELECT name FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "name", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: emp)(name, date, type, salary)\n workforce_data(id, code, type, value)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS emp\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(date, level, id, code)\n sourcing_list(name, value, amount, id)\nTask: Find id from acquisition_log where status appears in sourcing_list entries with matching code.\nSQL:", "sql": "SELECT id FROM acquisition_log AS empl\nWHERE status IN (\n SELECT status FROM sourcing_list AS spl\n WHERE spl.code = empl.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "id", "filter_col": "status", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: empl)(type, code, id, name)\n portfolio_index(value, code, id, date)\nTask: Find salary from receivables_log where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = empl.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "empl", "inner_alias": "act", "proj_col": "salary", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(status, code, level, amount)\n engagement_log(salary, amount, type, status)\nTask: Select salary from workforce_data where status exists in engagement_log for the same id.\nSQL:", "sql": "SELECT salary FROM workforce_data AS usr\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "salary", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(name, salary, amount, status)\n workforce_data(status, date, code, id)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = inv.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "inv", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(id, code, amount, status)\n stocking_sites(level, type, name, status)\nTask: Retrieve salary from engagement_log whose type is found in stocking_sites rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: empl)(type, value, level, status)\n attribute_groups(level, id, value, status)\nTask: Find code from acquisition_log where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = empl.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "attribute_groups", "outer_alias": "empl", "inner_alias": "ctg", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: mgr)(id, level, date, value)\n portfolio_index(name, level, date, status)\nTask: Retrieve amount from facility_registry that have at least one corresponding entry in portfolio_index sharing the same level.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: usr)(date, level, type, id)\n attribute_groups(type, name, status, level)\nTask: Retrieve amount from sourcing_list that have at least one corresponding entry in attribute_groups sharing the same status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.status = usr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: empl)(status, amount, date, code)\n cost_centers(value, date, id, salary)\nTask: Select code from area_registry where type exists in cost_centers for the same code.\nSQL:", "sql": "SELECT code FROM area_registry AS empl\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = empl.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "type", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(value, name, level, type)\n sales_queue(code, salary, id, level)\nTask: Select amount from activity_log that have at least one matching row in sales_queue for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sales_queue", "outer_alias": "dept", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: usr)(salary, value, name, id)\n dispatch_queue(name, salary, value, level)\nTask: Select value from journal_entries where amount is greater than the maximum of amount in dispatch_queue for matching code.\nSQL:", "sql": "SELECT value FROM journal_entries AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM dispatch_queue AS shp\n WHERE shp.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "value", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(date, id, status, code)\n receivables_log(amount, code, type, id)\nTask: Find id from sales_queue where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = prod.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "prod", "inner_alias": "inv", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(level, id, name, type)\n stock_catalog(status, type, level, id)\nTask: Select id from workforce_data that have at least one matching row in stock_catalog for the same status.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.status = usr.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "id", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(date, name, code, type)\n area_registry(amount, salary, code, level)\nTask: Find amount from acquisition_log where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT amount FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = ord.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: usr)(name, id, code, value)\n cost_centers(salary, status, date, name)\nTask: Select salary from portfolio_index where type exists in cost_centers for the same code.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS usr\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.code = usr.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "salary", "filter_col": "type", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(date, salary, amount, type)\n acquisition_log(name, id, type, code)\nTask: Retrieve value from stock_catalog whose type is found in acquisition_log rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM stock_catalog AS ord\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "value", "filter_col": "type", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: emp)(name, salary, status, value)\n portfolio_index(amount, status, salary, code)\nTask: Select value from cost_centers where level exists in portfolio_index for the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS emp\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.status = emp.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: inv)(level, name, status, type)\n cost_centers(level, salary, status, id)\nTask: Find value from stocking_sites where amount exceeds the total salary from cost_centers for the same id.\nSQL:", "sql": "SELECT value FROM stocking_sites AS inv\nWHERE amount > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.id = inv.id\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "cost_centers", "outer_alias": "inv", "inner_alias": "dpt", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(value, id, type, level)\n engagement_log(status, id, name, value)\nTask: Select code from stocking_sites where salary is greater than the minimum of amount in engagement_log for matching type.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: inv)(status, code, date, value)\n acquisition_log(salary, name, value, date)\nTask: Find name from sourcing_list where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "name", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(code, amount, value, name)\n workforce_data(name, value, status, date)\nTask: Select code from journal_entries where value is greater than the minimum of salary in workforce_data for matching status.\nSQL:", "sql": "SELECT code FROM journal_entries AS emp\nWHERE value > (\n SELECT MIN(salary) FROM workforce_data AS empl\n WHERE empl.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "code", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(date, status, level, amount)\n attribute_groups(type, salary, level, code)\nTask: Retrieve value from activity_log that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT value FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "value", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, date, salary, type)\n stocking_sites(amount, status, level, value)\nTask: Select code from sourcing_list where amount is greater than the count of of salary in stocking_sites for matching level.\nSQL:", "sql": "SELECT code FROM sourcing_list AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM stocking_sites AS whs\n WHERE whs.level = inv.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(amount, salary, code, name)\n receivables_log(status, amount, type, date)\nTask: Select salary from journal_entries where value is greater than the count of of salary in receivables_log for matching code.\nSQL:", "sql": "SELECT salary FROM journal_entries AS mgr\nWHERE value > (\n SELECT COUNT(salary) FROM receivables_log AS inv\n WHERE inv.code = mgr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: mgr)(name, code, salary, value)\n sales_registry(level, code, status, date)\nTask: Select name from facility_registry where value is greater than the average of amount in sales_registry for matching level.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: mgr)(name, type, date, code)\n sourcing_list(status, date, value, name)\nTask: Find code from cost_centers where a matching record exists in sourcing_list with the same code.\nSQL:", "sql": "SELECT code FROM cost_centers AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: prod)(status, value, type, code)\n area_registry(id, status, amount, code)\nTask: Find value from cost_centers where code appears in area_registry entries with matching code.\nSQL:", "sql": "SELECT value FROM cost_centers AS prod\nWHERE code IN (\n SELECT code FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "value", "filter_col": "code", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(salary, code, name, status)\n cost_centers(status, type, salary, id)\nTask: Select amount from facility_registry where code exists in cost_centers for the same id.\nSQL:", "sql": "SELECT amount FROM facility_registry AS mgr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.id = mgr.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: usr)(id, status, date, salary)\n sales_queue(type, level, status, code)\nTask: Find amount from stocking_sites where value exceeds the minimum salary from sales_queue for the same type.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS usr\nWHERE value > (\n SELECT MIN(salary) FROM sales_queue AS ord\n WHERE ord.type = usr.type\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(status, name, type, salary)\n personnel_registry(date, code, value, name)\nTask: Select code from workforce_data where status exists in personnel_registry for the same code.\nSQL:", "sql": "SELECT code FROM workforce_data AS usr\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "code", "filter_col": "status", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: emp)(name, id, date, level)\n facility_registry(id, value, code, level)\nTask: Retrieve name from workforce_data whose level is found in facility_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM workforce_data AS emp\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(amount, status, date, name)\n attribute_groups(type, date, salary, id)\nTask: Find id from receivables_log where a matching record exists in attribute_groups with the same code.\nSQL:", "sql": "SELECT id FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = prod.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "id", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: inv)(status, date, amount, level)\n acquisition_log(salary, name, id, code)\nTask: Retrieve code from attribute_groups whose status is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM attribute_groups AS inv\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = inv.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "inv", "inner_alias": "ordr", "proj_col": "code", "filter_col": "status", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: prod)(salary, value, id, amount)\n engagement_log(type, status, value, salary)\nTask: Select amount from receivables_log where status exists in engagement_log for the same type.\nSQL:", "sql": "SELECT amount FROM receivables_log AS prod\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "amount", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: prod)(name, amount, level, date)\n stock_catalog(salary, code, status, id)\nTask: Find code from cost_centers where salary exceeds the average salary from stock_catalog for the same level.\nSQL:", "sql": "SELECT code FROM cost_centers AS prod\nWHERE salary > (\n SELECT AVG(salary) FROM stock_catalog AS prd\n WHERE prd.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: empl)(id, type, salary, amount)\n personnel_registry(date, status, type, name)\nTask: Find amount from facility_registry where value exceeds the maximum amount from personnel_registry for the same status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS empl\nWHERE value > (\n SELECT MAX(amount) FROM personnel_registry AS emp\n WHERE emp.status = empl.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(amount, id, status, level)\n sales_registry(id, date, type, status)\nTask: Find amount from personnel_registry where status appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.level = usr.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "amount", "filter_col": "status", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(value, date, level, id)\n acquisition_log(type, id, code, date)\nTask: Find code from stock_catalog where salary exceeds the minimum amount from acquisition_log for the same level.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE salary > (\n SELECT MIN(amount) FROM acquisition_log AS ordr\n WHERE ordr.level = ord.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "ord", "inner_alias": "ordr", "proj_col": "code", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(type, date, value, amount)\n workforce_data(type, date, amount, level)\nTask: Retrieve code from engagement_log that have at least one corresponding entry in workforce_data sharing the same id.\nSQL:", "sql": "SELECT code FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.id = prod.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: dept)(date, value, level, type)\n stocking_sites(id, amount, salary, code)\nTask: Select salary from sales_registry where value is greater than the total of value in stocking_sites for matching type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS dept\nWHERE value > (\n SELECT SUM(value) FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: dept)(type, id, status, name)\n personnel_registry(value, code, type, name)\nTask: Find id from dispatch_queue where amount exceeds the total salary from personnel_registry for the same code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS dept\nWHERE amount > (\n SELECT SUM(salary) FROM personnel_registry AS emp\n WHERE emp.code = dept.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "SUM", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: mgr)(date, name, id, level)\n workforce_data(type, salary, name, code)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in workforce_data sharing the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(salary, date, name, amount)\n activity_log(id, date, level, name)\nTask: Select code from facility_registry where type exists in activity_log for the same level.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE type IN (\n SELECT type FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: emp)(type, status, date, code)\n journal_entries(amount, id, name, salary)\nTask: Select amount from attribute_groups that have at least one matching row in journal_entries for the same code.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.code = emp.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "amount", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(amount, id, salary, code)\n journal_entries(value, date, id, code)\nTask: Find id from personnel_registry where amount exceeds the count of salary from journal_entries for the same status.\nSQL:", "sql": "SELECT id FROM personnel_registry AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM journal_entries AS txn\n WHERE txn.status = inv.status\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "id", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: prod)(status, level, type, date)\n dispatch_queue(name, code, date, salary)\nTask: Select value from receivables_log where value is greater than the average of salary in dispatch_queue for matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS prod\nWHERE value > (\n SELECT AVG(salary) FROM dispatch_queue AS shp\n WHERE shp.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: mgr)(salary, name, date, value)\n sourcing_list(date, code, salary, type)\nTask: Find id from area_registry where id appears in sourcing_list entries with matching status.\nSQL:", "sql": "SELECT id FROM area_registry AS mgr\nWHERE id IN (\n SELECT id FROM sourcing_list AS spl\n WHERE spl.status = mgr.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: inv)(type, salary, name, code)\n sales_queue(salary, amount, type, value)\nTask: Retrieve salary from facility_registry with amount above the MAX(value) of sales_queue rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM facility_registry AS inv\nWHERE amount > (\n SELECT MAX(value) FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: prod)(salary, status, amount, id)\n stock_catalog(type, code, date, name)\nTask: Retrieve value from journal_entries that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS prod\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: usr)(date, type, level, status)\n personnel_registry(id, salary, name, amount)\nTask: Select amount from area_registry where type exists in personnel_registry for the same type.\nSQL:", "sql": "SELECT amount FROM area_registry AS usr\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "personnel_registry", "outer_alias": "usr", "inner_alias": "emp", "proj_col": "amount", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(type, status, id, name)\n sales_registry(status, amount, type, code)\nTask: Select amount from attribute_groups where amount is greater than the count of of amount in sales_registry for matching id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_registry AS cst\n WHERE cst.id = emp.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "emp", "inner_alias": "cst", "proj_col": "amount", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(code, name, date, level)\n cost_centers(salary, amount, type, name)\nTask: Retrieve code from facility_registry whose id is found in cost_centers rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM facility_registry AS mgr\nWHERE id IN (\n SELECT id FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: ord)(date, salary, id, value)\n workforce_data(level, name, salary, type)\nTask: Select salary from facility_registry that have at least one matching row in workforce_data for the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS ord\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: mgr)(amount, date, salary, level)\n area_registry(name, level, code, value)\nTask: Retrieve salary from attribute_groups that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = mgr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "salary", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: empl)(date, salary, type, amount)\n facility_registry(status, value, code, type)\nTask: Select name from workforce_data where status exists in facility_registry for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS empl\nWHERE status IN (\n SELECT status FROM facility_registry AS brc\n WHERE brc.id = empl.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "empl", "inner_alias": "brc", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: dept)(id, date, status, type)\n journal_entries(value, type, code, salary)\nTask: Select name from acquisition_log where id exists in journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM acquisition_log AS dept\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "name", "filter_col": "id", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(salary, value, type, name)\n receivables_log(value, date, salary, amount)\nTask: Find salary from area_registry where a matching record exists in receivables_log with the same code.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.code = usr.code\n);", "metadata": {"outer_table": "area_registry", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "salary", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: prod)(id, salary, status, code)\n sourcing_list(value, level, status, date)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in sourcing_list sharing the same type.\nSQL:", "sql": "SELECT code FROM stock_catalog AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(name, type, status, level)\n portfolio_index(level, amount, salary, name)\nTask: Find value from receivables_log where id appears in portfolio_index entries with matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS emp\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.type = emp.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(status, name, value, type)\n journal_entries(salary, code, amount, status)\nTask: Select name from workforce_data where code exists in journal_entries for the same id.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "name", "filter_col": "code", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(level, type, amount, code)\n engagement_log(salary, date, name, value)\nTask: Retrieve amount from portfolio_index that have at least one corresponding entry in engagement_log sharing the same id.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(date, name, code, level)\n portfolio_index(date, code, salary, id)\nTask: Find id from receivables_log where salary exceeds the average amount from portfolio_index for the same id.\nSQL:", "sql": "SELECT id FROM receivables_log AS mgr\nWHERE salary > (\n SELECT AVG(amount) FROM portfolio_index AS act\n WHERE act.id = mgr.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "id", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(value, name, code, status)\n personnel_registry(salary, code, amount, id)\nTask: Find id from acquisition_log where a matching record exists in personnel_registry with the same status.\nSQL:", "sql": "SELECT id FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = ord.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "personnel_registry", "outer_alias": "ord", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(code, amount, id, value)\n stocking_sites(name, code, salary, value)\nTask: Select salary from portfolio_index where amount is greater than the minimum of salary in stocking_sites for matching type.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS prod\nWHERE amount > (\n SELECT MIN(salary) FROM stocking_sites AS whs\n WHERE whs.type = prod.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: emp)(code, value, name, status)\n sales_queue(amount, salary, value, type)\nTask: Find value from dispatch_queue where a matching record exists in sales_queue with the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS emp\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.level = emp.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: mgr)(id, name, salary, level)\n stock_catalog(status, id, code, name)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS mgr\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = mgr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "mgr", "inner_alias": "prd", "proj_col": "code", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: ord)(status, code, date, type)\n area_registry(name, value, salary, date)\nTask: Retrieve code from workforce_data with amount above the COUNT(salary) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT code FROM workforce_data AS ord\nWHERE amount > (\n SELECT COUNT(salary) FROM area_registry AS rgn\n WHERE rgn.type = ord.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "code", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: prod)(level, id, date, amount)\n journal_entries(level, status, amount, name)\nTask: Select amount from portfolio_index that have at least one matching row in journal_entries for the same status.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "amount", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: dept)(amount, name, level, type)\n attribute_groups(salary, level, type, code)\nTask: Select code from sales_queue where type exists in attribute_groups for the same type.\nSQL:", "sql": "SELECT code FROM sales_queue AS dept\nWHERE type IN (\n SELECT type FROM attribute_groups AS ctg\n WHERE ctg.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(date, value, level, name)\n facility_registry(date, salary, level, type)\nTask: Find name from engagement_log where a matching record exists in facility_registry with the same status.\nSQL:", "sql": "SELECT name FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(type, salary, level, amount)\n stocking_sites(amount, salary, type, code)\nTask: Find value from stock_catalog where status appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE status IN (\n SELECT status FROM stocking_sites AS whs\n WHERE whs.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: prod)(id, level, value, salary)\n sales_queue(name, value, salary, id)\nTask: Find id from area_registry where a matching record exists in sales_queue with the same status.\nSQL:", "sql": "SELECT id FROM area_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.status = prod.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(id, date, amount, value)\n dispatch_queue(name, status, type, id)\nTask: Retrieve amount from stocking_sites whose id is found in dispatch_queue rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS mgr\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(salary, name, date, level)\n dispatch_queue(code, amount, name, status)\nTask: Retrieve value from journal_entries whose level is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE level IN (\n SELECT level FROM dispatch_queue AS shp\n WHERE shp.status = ord.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "value", "filter_col": "level", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(value, status, salary, code)\n journal_entries(value, code, name, date)\nTask: Retrieve name from facility_registry that have at least one corresponding entry in journal_entries sharing the same id.\nSQL:", "sql": "SELECT name FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "name", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(code, name, status, salary)\n dispatch_queue(salary, id, date, code)\nTask: Find amount from personnel_registry where code appears in dispatch_queue entries with matching type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: dept)(code, id, value, name)\n journal_entries(code, name, id, type)\nTask: Retrieve amount from receivables_log with amount above the AVG(value) of journal_entries rows sharing the same id.\nSQL:", "sql": "SELECT amount FROM receivables_log AS dept\nWHERE amount > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.id = dept.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: usr)(status, name, salary, value)\n engagement_log(id, status, level, amount)\nTask: Find amount from personnel_registry where id appears in engagement_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS usr\nWHERE id IN (\n SELECT id FROM engagement_log AS prj\n WHERE prj.type = usr.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "engagement_log", "outer_alias": "usr", "inner_alias": "prj", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: emp)(code, name, status, date)\n area_registry(level, status, salary, id)\nTask: Find value from activity_log where salary exceeds the total salary from area_registry for the same status.\nSQL:", "sql": "SELECT value FROM activity_log AS emp\nWHERE salary > (\n SELECT SUM(salary) FROM area_registry AS rgn\n WHERE rgn.status = emp.status\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: usr)(status, amount, value, code)\n journal_entries(value, id, type, code)\nTask: Select salary from sales_registry where amount is greater than the minimum of value in journal_entries for matching type.\nSQL:", "sql": "SELECT salary FROM sales_registry AS usr\nWHERE amount > (\n SELECT MIN(value) FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: dept)(value, code, level, name)\n cost_centers(level, salary, code, id)\nTask: Find code from engagement_log where a matching record exists in cost_centers with the same code.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = dept.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(date, type, amount, status)\n acquisition_log(type, amount, date, name)\nTask: Find salary from area_registry where a matching record exists in acquisition_log with the same level.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(name, date, id, code)\n cost_centers(amount, value, date, salary)\nTask: Select name from activity_log where amount is greater than the maximum of amount in cost_centers for matching level.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE amount > (\n SELECT MAX(amount) FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "name", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: usr)(date, level, name, status)\n attribute_groups(status, value, id, type)\nTask: Retrieve salary from area_registry that have at least one corresponding entry in attribute_groups sharing the same type.\nSQL:", "sql": "SELECT salary FROM area_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.type = usr.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(name, code, salary, type)\n stock_catalog(level, amount, salary, status)\nTask: Retrieve code from dispatch_queue that have at least one corresponding entry in stock_catalog sharing the same id.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "code", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(amount, date, name, value)\n area_registry(code, name, value, date)\nTask: Select id from stock_catalog that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT id FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: empl)(name, value, salary, code)\n sales_registry(level, value, amount, type)\nTask: Select name from dispatch_queue where status exists in sales_registry for the same id.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS empl\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(status, salary, level, date)\n stock_catalog(name, id, amount, salary)\nTask: Retrieve id from attribute_groups whose type is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n cost_centers (alias: dept)(code, status, date, value)\n stock_catalog(level, type, status, code)\nTask: Retrieve name from cost_centers whose type is found in stock_catalog rows where code matches the outer record.\nSQL:", "sql": "SELECT name FROM cost_centers AS dept\nWHERE type IN (\n SELECT type FROM stock_catalog AS prd\n WHERE prd.code = dept.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "dept", "inner_alias": "prd", "proj_col": "name", "filter_col": "type", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: prod)(level, date, value, amount)\n activity_log(date, id, name, amount)\nTask: Select name from area_registry where amount is greater than the minimum of value in activity_log for matching id.\nSQL:", "sql": "SELECT name FROM area_registry AS prod\nWHERE amount > (\n SELECT MIN(value) FROM activity_log AS tsk\n WHERE tsk.id = prod.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "activity_log", "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": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: inv)(salary, code, status, date)\n sourcing_list(amount, value, salary, status)\nTask: Find value from dispatch_queue where amount exceeds the count of salary from sourcing_list for the same level.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS inv\nWHERE amount > (\n SELECT COUNT(salary) FROM sourcing_list AS spl\n WHERE spl.level = inv.level\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "filter_col": "amount", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: prod)(value, code, name, salary)\n stock_catalog(salary, name, type, date)\nTask: Select name from workforce_data where value is greater than the maximum of salary in stock_catalog for matching status.\nSQL:", "sql": "SELECT name FROM workforce_data AS prod\nWHERE value > (\n SELECT MAX(salary) FROM stock_catalog AS prd\n WHERE prd.status = prod.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: emp)(value, level, salary, type)\n portfolio_index(value, id, amount, code)\nTask: Find name from stock_catalog where a matching record exists in portfolio_index with the same code.\nSQL:", "sql": "SELECT name FROM stock_catalog AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: usr)(date, type, id, code)\n journal_entries(amount, level, value, date)\nTask: Find value from cost_centers where value exceeds the average value from journal_entries for the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS usr\nWHERE value > (\n SELECT AVG(value) FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(value, salary, level, date)\n stocking_sites(status, code, level, value)\nTask: Find name from attribute_groups where amount exceeds the minimum value from stocking_sites for the same id.\nSQL:", "sql": "SELECT name FROM attribute_groups AS ord\nWHERE amount > (\n SELECT MIN(value) FROM stocking_sites AS whs\n WHERE whs.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "name", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(salary, status, name, id)\n acquisition_log(value, id, salary, code)\nTask: Retrieve code from activity_log that have at least one corresponding entry in acquisition_log sharing the same level.\nSQL:", "sql": "SELECT code FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, type, id, value)\n personnel_registry(type, code, status, date)\nTask: Select salary from dispatch_queue that have at least one matching row in personnel_registry for the same id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = inv.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "salary", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: ord)(level, salary, name, type)\n receivables_log(status, code, salary, date)\nTask: Find id from sales_registry where amount exceeds the maximum amount from receivables_log for the same id.\nSQL:", "sql": "SELECT id FROM sales_registry AS ord\nWHERE amount > (\n SELECT MAX(amount) FROM receivables_log AS inv\n WHERE inv.id = ord.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "receivables_log", "outer_alias": "ord", "inner_alias": "inv", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: usr)(type, date, salary, code)\n area_registry(salary, level, value, amount)\nTask: Retrieve id from sales_registry whose id is found in area_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT id FROM sales_registry AS usr\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = usr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "id", "filter_col": "id", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: dept)(salary, value, amount, code)\n area_registry(type, salary, level, amount)\nTask: Retrieve value from sourcing_list with salary above the MAX(amount) of area_registry rows sharing the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS dept\nWHERE salary > (\n SELECT MAX(amount) FROM area_registry AS rgn\n WHERE rgn.level = dept.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(type, salary, value, level)\n attribute_groups(date, code, status, id)\nTask: Select salary from sales_queue where value is greater than the minimum of salary in attribute_groups for matching id.\nSQL:", "sql": "SELECT salary FROM sales_queue AS prod\nWHERE value > (\n SELECT MIN(salary) FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: dept)(value, name, salary, code)\n journal_entries(id, value, type, amount)\nTask: Retrieve salary from workforce_data with value above the SUM(salary) of journal_entries rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE value > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(code, amount, level, name)\n workforce_data(value, level, id, code)\nTask: Retrieve salary from stock_catalog with value above the AVG(salary) of workforce_data rows sharing the same type.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS ord\nWHERE value > (\n SELECT AVG(salary) FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: mgr)(level, code, id, value)\n stocking_sites(name, id, date, level)\nTask: Find amount from area_registry where amount exceeds the maximum value from stocking_sites for the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: emp)(date, id, type, value)\n engagement_log(amount, type, code, name)\nTask: Retrieve name from facility_registry whose level is found in engagement_log rows where status matches the outer record.\nSQL:", "sql": "SELECT name FROM facility_registry AS emp\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.status = emp.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "emp", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(id, type, name, amount)\n sales_queue(type, amount, salary, name)\nTask: Select id from workforce_data that have at least one matching row in sales_queue for the same code.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "id", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(name, value, type, code)\n engagement_log(type, amount, code, date)\nTask: Find amount from facility_registry where status appears in engagement_log entries with matching status.\nSQL:", "sql": "SELECT amount FROM facility_registry AS ord\nWHERE status IN (\n SELECT status FROM engagement_log AS prj\n WHERE prj.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "engagement_log", "outer_alias": "ord", "inner_alias": "prj", "proj_col": "amount", "filter_col": "status", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(name, id, amount, code)\n sales_queue(type, date, status, level)\nTask: Find id from stock_catalog where value exceeds the total value from sales_queue for the same level.\nSQL:", "sql": "SELECT id FROM stock_catalog AS prod\nWHERE value > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.level = prod.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "SUM", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: usr)(date, code, value, salary)\n facility_registry(status, name, code, amount)\nTask: Select salary from attribute_groups where type exists in facility_registry for the same type.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE type IN (\n SELECT type FROM facility_registry AS brc\n WHERE brc.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "salary", "filter_col": "type", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: usr)(amount, date, level, type)\n sales_queue(value, code, id, type)\nTask: Find code from stock_catalog where amount exceeds the total value from sales_queue for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS usr\nWHERE amount > (\n SELECT SUM(value) FROM sales_queue AS ord\n WHERE ord.id = usr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: prod)(code, id, salary, level)\n stock_catalog(level, value, name, salary)\nTask: Retrieve value from sourcing_list whose id is found in stock_catalog rows where type matches the outer record.\nSQL:", "sql": "SELECT value FROM sourcing_list AS prod\nWHERE id IN (\n SELECT id FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: dept)(value, amount, status, code)\n personnel_registry(type, name, amount, code)\nTask: Retrieve salary from attribute_groups whose level is found in personnel_registry rows where status matches the outer record.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS dept\nWHERE level IN (\n SELECT level FROM personnel_registry AS emp\n WHERE emp.status = dept.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: mgr)(status, salary, name, type)\n facility_registry(level, amount, type, status)\nTask: Find value from stock_catalog where salary exceeds the minimum amount from facility_registry for the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS mgr\nWHERE salary > (\n SELECT MIN(amount) FROM facility_registry AS brc\n WHERE brc.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "mgr", "inner_alias": "brc", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(id, value, salary, code)\n activity_log(date, amount, name, salary)\nTask: Find value from sourcing_list where salary exceeds the average salary from activity_log for the same code.\nSQL:", "sql": "SELECT value FROM sourcing_list AS emp\nWHERE salary > (\n SELECT AVG(salary) FROM activity_log AS tsk\n WHERE tsk.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "salary", "agg_col": "salary", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: ord)(status, value, code, salary)\n cost_centers(level, name, type, id)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in cost_centers sharing the same code.\nSQL:", "sql": "SELECT amount FROM sales_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.code = ord.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(amount, code, id, type)\n stocking_sites(level, amount, code, type)\nTask: Find value from area_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "stocking_sites", "outer_alias": "inv", "inner_alias": "whs", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(name, date, status, type)\n activity_log(status, salary, value, date)\nTask: Find value from stock_catalog where code appears in activity_log entries with matching status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS emp\nWHERE code IN (\n SELECT code FROM activity_log AS tsk\n WHERE tsk.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "activity_log", "outer_alias": "emp", "inner_alias": "tsk", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: prod)(code, level, date, id)\n journal_entries(status, level, name, date)\nTask: Retrieve id from portfolio_index whose level is found in journal_entries rows where id matches the outer record.\nSQL:", "sql": "SELECT id FROM portfolio_index AS prod\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.id = prod.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "id", "filter_col": "level", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(date, value, name, id)\n journal_entries(id, code, salary, status)\nTask: Select value from sales_registry that have at least one matching row in journal_entries for the same id.\nSQL:", "sql": "SELECT value FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "inv", "inner_alias": "txn", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(date, type, id, level)\n attribute_groups(value, salary, id, status)\nTask: Find amount from sales_registry where code appears in attribute_groups entries with matching id.\nSQL:", "sql": "SELECT amount FROM sales_registry AS prod\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.id = prod.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "attribute_groups", "outer_alias": "prod", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "code", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: ord)(code, type, value, level)\n sales_registry(id, value, type, code)\nTask: Select code from acquisition_log where status exists in sales_registry for the same type.\nSQL:", "sql": "SELECT code FROM acquisition_log AS ord\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.type = ord.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "code", "filter_col": "status", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(level, date, id, type)\n journal_entries(value, name, status, amount)\nTask: Select code from engagement_log where code exists in journal_entries for the same level.\nSQL:", "sql": "SELECT code FROM engagement_log AS dept\nWHERE code IN (\n SELECT code FROM journal_entries AS txn\n WHERE txn.level = dept.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "journal_entries", "outer_alias": "dept", "inner_alias": "txn", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: mgr)(level, id, date, type)\n sales_registry(amount, name, id, type)\nTask: Retrieve salary from receivables_log whose id is found in sales_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: prod)(value, status, date, amount)\n workforce_data(amount, level, id, type)\nTask: Select code from dispatch_queue that have at least one matching row in workforce_data for the same type.\nSQL:", "sql": "SELECT code FROM dispatch_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: prod)(status, date, level, type)\n engagement_log(status, level, salary, type)\nTask: Select code from attribute_groups where type exists in engagement_log for the same level.\nSQL:", "sql": "SELECT code FROM attribute_groups AS prod\nWHERE type IN (\n SELECT type FROM engagement_log AS prj\n WHERE prj.level = prod.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "prod", "inner_alias": "prj", "proj_col": "code", "filter_col": "type", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: usr)(value, code, status, name)\n journal_entries(level, date, status, id)\nTask: Select amount from attribute_groups that have at least one matching row in journal_entries for the same type.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS usr\nWHERE EXISTS (\n SELECT 1 FROM journal_entries AS txn\n WHERE txn.type = usr.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "journal_entries", "outer_alias": "usr", "inner_alias": "txn", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, status, name, amount)\n sales_queue(value, level, id, name)\nTask: Select amount from stock_catalog where type exists in sales_queue for the same level.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS mgr\nWHERE type IN (\n SELECT type FROM sales_queue AS ord\n WHERE ord.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: inv)(status, salary, code, name)\n sourcing_list(salary, value, level, code)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in sourcing_list sharing the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.status = inv.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: dept)(name, date, status, type)\n attribute_groups(level, id, date, code)\nTask: Retrieve amount from journal_entries whose status is found in attribute_groups rows where code matches the outer record.\nSQL:", "sql": "SELECT amount FROM journal_entries AS dept\nWHERE status IN (\n SELECT status FROM attribute_groups AS ctg\n WHERE ctg.code = dept.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "attribute_groups", "outer_alias": "dept", "inner_alias": "ctg", "proj_col": "amount", "filter_col": "status", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 80}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: inv)(id, status, value, salary)\n area_registry(amount, date, value, salary)\nTask: Find code from stocking_sites where id appears in area_registry entries with matching level.\nSQL:", "sql": "SELECT code FROM stocking_sites AS inv\nWHERE id IN (\n SELECT id FROM area_registry AS rgn\n WHERE rgn.level = inv.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n area_registry (alias: inv)(status, amount, date, level)\n sales_registry(date, amount, value, salary)\nTask: Find salary from area_registry where id appears in sales_registry entries with matching level.\nSQL:", "sql": "SELECT salary FROM area_registry AS inv\nWHERE id IN (\n SELECT id FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "salary", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: emp)(level, type, code, status)\n sales_queue(value, level, date, status)\nTask: Retrieve salary from portfolio_index with salary above the AVG(amount) of sales_queue rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM portfolio_index AS emp\nWHERE salary > (\n SELECT AVG(amount) FROM sales_queue AS ord\n WHERE ord.id = emp.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: mgr)(level, amount, date, type)\n receivables_log(salary, name, value, level)\nTask: Retrieve name from acquisition_log whose status is found in receivables_log rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE status IN (\n SELECT status FROM receivables_log AS inv\n WHERE inv.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "status", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: usr)(code, date, salary, level)\n stocking_sites(status, name, date, value)\nTask: Find name from activity_log where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT name FROM activity_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = usr.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "name", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(amount, salary, name, value)\n area_registry(code, name, type, amount)\nTask: Select amount from sourcing_list where value is greater than the minimum of amount in area_registry for matching status.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE value > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.status = inv.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: prod)(status, date, salary, value)\n acquisition_log(type, salary, name, id)\nTask: Select value from stock_catalog where code exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "value", "filter_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: empl)(name, value, amount, type)\n engagement_log(code, value, name, salary)\nTask: Find salary from cost_centers where salary exceeds the total amount from engagement_log for the same id.\nSQL:", "sql": "SELECT salary FROM cost_centers AS empl\nWHERE salary > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.id = empl.id\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: ord)(name, status, value, level)\n sales_registry(salary, type, date, id)\nTask: Find amount from stock_catalog where salary exceeds the minimum salary from sales_registry for the same code.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS ord\nWHERE salary > (\n SELECT MIN(salary) FROM sales_registry AS cst\n WHERE cst.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: ord)(level, date, name, value)\n sourcing_list(type, name, level, value)\nTask: Select value from journal_entries where value is greater than the minimum of amount in sourcing_list for matching id.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE value > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.id = ord.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(value, name, type, status)\n dispatch_queue(value, type, name, id)\nTask: Select salary from journal_entries where code exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS emp\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "salary", "filter_col": "code", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: dept)(salary, amount, date, status)\n cost_centers(code, date, amount, type)\nTask: Retrieve code from personnel_registry that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT code FROM personnel_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = dept.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "code", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: inv)(amount, level, type, status)\n stock_catalog(amount, value, level, name)\nTask: Retrieve value from cost_centers that have at least one corresponding entry in stock_catalog sharing the same type.\nSQL:", "sql": "SELECT value FROM cost_centers AS inv\nWHERE EXISTS (\n SELECT 1 FROM stock_catalog AS prd\n WHERE prd.type = inv.type\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stock_catalog", "outer_alias": "inv", "inner_alias": "prd", "proj_col": "value", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(value, name, type, level)\n attribute_groups(code, status, salary, name)\nTask: Select amount from facility_registry that have at least one matching row in attribute_groups for the same code.\nSQL:", "sql": "SELECT amount FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "amount", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(name, level, id, status)\n acquisition_log(code, id, amount, level)\nTask: Find salary from dispatch_queue where a matching record exists in acquisition_log with the same type.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.type = usr.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(type, code, salary, amount)\n sourcing_list(code, level, value, status)\nTask: Retrieve value from receivables_log that have at least one corresponding entry in sourcing_list sharing the same code.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = mgr.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "value", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: empl)(level, salary, code, amount)\n engagement_log(name, date, value, code)\nTask: Select value from receivables_log where value is greater than the total of amount in engagement_log for matching type.\nSQL:", "sql": "SELECT value FROM receivables_log AS empl\nWHERE value > (\n SELECT SUM(amount) FROM engagement_log AS prj\n WHERE prj.type = empl.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(type, name, level, status)\n area_registry(amount, code, status, name)\nTask: Find id from stock_catalog where a matching record exists in area_registry with the same id.\nSQL:", "sql": "SELECT id FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = mgr.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "id", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n cost_centers (alias: mgr)(type, salary, date, name)\n stocking_sites(date, status, id, name)\nTask: Select id from cost_centers where amount is greater than the maximum of value in stocking_sites for matching code.\nSQL:", "sql": "SELECT id FROM cost_centers AS mgr\nWHERE amount > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.code = mgr.code\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "mgr", "inner_alias": "whs", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n facility_registry (alias: prod)(date, code, amount, salary)\n sales_queue(status, amount, value, level)\nTask: Find value from facility_registry where amount exceeds the count of value from sales_queue for the same type.\nSQL:", "sql": "SELECT value FROM facility_registry AS prod\nWHERE amount > (\n SELECT COUNT(value) FROM sales_queue AS ord\n WHERE ord.type = prod.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_queue", "outer_alias": "prod", "inner_alias": "ord", "proj_col": "value", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: emp)(salary, level, status, date)\n workforce_data(level, status, type, code)\nTask: Find name from receivables_log where type appears in workforce_data entries with matching level.\nSQL:", "sql": "SELECT name FROM receivables_log AS emp\nWHERE type IN (\n SELECT type FROM workforce_data AS empl\n WHERE empl.level = emp.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "emp", "inner_alias": "empl", "proj_col": "name", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: emp)(date, id, status, type)\n sourcing_list(date, level, status, type)\nTask: Select id from engagement_log that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT id FROM engagement_log AS emp\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = emp.code\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "emp", "inner_alias": "spl", "proj_col": "id", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(date, type, salary, amount)\n sourcing_list(amount, status, salary, value)\nTask: Select amount from activity_log that have at least one matching row in sourcing_list for the same code.\nSQL:", "sql": "SELECT amount FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.code = dept.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "sourcing_list", "outer_alias": "dept", "inner_alias": "spl", "proj_col": "amount", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: prod)(id, type, salary, value)\n sales_registry(type, amount, status, salary)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in sales_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS prod\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "id", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(amount, type, salary, name)\n area_registry(type, value, code, salary)\nTask: Select value from attribute_groups where salary is greater than the maximum of value in area_registry for matching status.\nSQL:", "sql": "SELECT value FROM attribute_groups AS usr\nWHERE salary > (\n SELECT MAX(value) FROM area_registry AS rgn\n WHERE rgn.status = usr.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "MAX", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: empl)(salary, id, date, status)\n stocking_sites(name, salary, amount, level)\nTask: Select name from engagement_log that have at least one matching row in stocking_sites for the same level.\nSQL:", "sql": "SELECT name FROM engagement_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: prod)(amount, status, salary, level)\n area_registry(level, status, type, amount)\nTask: Select name from portfolio_index where salary is greater than the minimum of amount in area_registry for matching code.\nSQL:", "sql": "SELECT name FROM portfolio_index AS prod\nWHERE salary > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.code = prod.code\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "name", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: prod)(name, code, date, value)\n journal_entries(date, name, level, status)\nTask: Find salary from sales_registry where level appears in journal_entries entries with matching status.\nSQL:", "sql": "SELECT salary FROM sales_registry AS prod\nWHERE level IN (\n SELECT level FROM journal_entries AS txn\n WHERE txn.status = prod.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "journal_entries", "outer_alias": "prod", "inner_alias": "txn", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(date, id, name, type)\n acquisition_log(name, level, code, status)\nTask: Retrieve code from stock_catalog whose id is found in acquisition_log rows where status matches the outer record.\nSQL:", "sql": "SELECT code FROM stock_catalog AS empl\nWHERE id IN (\n SELECT id FROM acquisition_log AS ordr\n WHERE ordr.status = empl.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "id", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(name, type, status, date)\n cost_centers(amount, type, id, name)\nTask: Retrieve amount from attribute_groups that have at least one corresponding entry in cost_centers sharing the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "cost_centers", "outer_alias": "ord", "inner_alias": "dpt", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: usr)(code, id, status, type)\n acquisition_log(amount, type, level, status)\nTask: Retrieve salary from attribute_groups with value above the AVG(value) of acquisition_log rows sharing the same code.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS usr\nWHERE value > (\n SELECT AVG(value) FROM acquisition_log AS ordr\n WHERE ordr.code = usr.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: empl)(name, type, date, value)\n sourcing_list(level, code, salary, value)\nTask: Select code from stock_catalog where level exists in sourcing_list for the same id.\nSQL:", "sql": "SELECT code FROM stock_catalog AS empl\nWHERE level IN (\n SELECT level FROM sourcing_list AS spl\n WHERE spl.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sourcing_list", "outer_alias": "empl", "inner_alias": "spl", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: inv)(date, status, id, value)\n sourcing_list(date, code, type, salary)\nTask: Find value from area_registry where a matching record exists in sourcing_list with the same id.\nSQL:", "sql": "SELECT value FROM area_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.id = inv.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sourcing_list", "outer_alias": "inv", "inner_alias": "spl", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: empl)(date, level, type, name)\n sales_registry(code, status, name, id)\nTask: Find value from stock_catalog where salary exceeds the count of value from sales_registry for the same id.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE salary > (\n SELECT COUNT(value) FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(code, type, amount, id)\n facility_registry(id, name, level, amount)\nTask: Find name from stock_catalog where id appears in facility_registry entries with matching level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS dept\nWHERE id IN (\n SELECT id FROM facility_registry AS brc\n WHERE brc.level = dept.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "dept", "inner_alias": "brc", "proj_col": "name", "filter_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 50}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(salary, amount, name, value)\n area_registry(code, name, type, date)\nTask: Find id from journal_entries where type appears in area_registry entries with matching type.\nSQL:", "sql": "SELECT id FROM journal_entries AS empl\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "id", "filter_col": "type", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: mgr)(type, value, status, id)\n activity_log(id, value, amount, code)\nTask: Find code from sourcing_list where amount exceeds the total amount from activity_log for the same status.\nSQL:", "sql": "SELECT code FROM sourcing_list AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM activity_log AS tsk\n WHERE tsk.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "activity_log", "outer_alias": "mgr", "inner_alias": "tsk", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 55}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: usr)(id, name, date, value)\n cost_centers(code, type, date, value)\nTask: Retrieve amount from receivables_log whose code is found in cost_centers rows where level matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE code IN (\n SELECT code FROM cost_centers AS dpt\n WHERE dpt.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "usr", "inner_alias": "dpt", "proj_col": "amount", "filter_col": "code", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: prod)(date, salary, code, name)\n sourcing_list(level, value, type, status)\nTask: Select salary from engagement_log that have at least one matching row in sourcing_list for the same type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM sourcing_list AS spl\n WHERE spl.type = prod.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sourcing_list", "outer_alias": "prod", "inner_alias": "spl", "proj_col": "salary", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: dept)(status, salary, type, level)\n acquisition_log(date, level, salary, type)\nTask: Select id from stocking_sites that have at least one matching row in acquisition_log for the same level.\nSQL:", "sql": "SELECT id FROM stocking_sites AS dept\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.level = dept.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "id", "join_col": "level", "correlated_ref": "dept.level", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: ord)(date, status, type, amount)\n workforce_data(code, id, level, name)\nTask: Select value from journal_entries where id exists in workforce_data for the same type.\nSQL:", "sql": "SELECT value FROM journal_entries AS ord\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.type = ord.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "id", "join_col": "type", "correlated_ref": "ord.type", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: ord)(code, id, status, level)\n workforce_data(date, amount, level, code)\nTask: Find salary from attribute_groups where amount exceeds the minimum value from workforce_data for the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE amount > (\n SELECT MIN(value) FROM workforce_data AS empl\n WHERE empl.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: usr)(name, level, code, value)\n sales_queue(type, value, date, amount)\nTask: Find name from personnel_registry where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT name FROM personnel_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = usr.code\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "usr", "inner_alias": "ord", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: prod)(id, code, salary, type)\n dispatch_queue(date, name, amount, code)\nTask: Select code from acquisition_log that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT code FROM acquisition_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = prod.status\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "dispatch_queue", "outer_alias": "prod", "inner_alias": "shp", "proj_col": "code", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(date, name, amount, status)\n engagement_log(salary, code, level, value)\nTask: Retrieve name from sourcing_list whose level is found in engagement_log rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE level IN (\n SELECT level FROM engagement_log AS prj\n WHERE prj.id = inv.id\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "name", "filter_col": "level", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n attribute_groups (alias: emp)(status, code, value, name)\n dispatch_queue(amount, status, date, value)\nTask: Select value from attribute_groups where salary is greater than the total of amount in dispatch_queue for matching type.\nSQL:", "sql": "SELECT value FROM attribute_groups AS emp\nWHERE salary > (\n SELECT SUM(amount) FROM dispatch_queue AS shp\n WHERE shp.type = emp.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "value", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: ord)(value, code, id, status)\n workforce_data(amount, salary, name, status)\nTask: Retrieve value from stocking_sites whose id is found in workforce_data rows where code matches the outer record.\nSQL:", "sql": "SELECT value FROM stocking_sites AS ord\nWHERE id IN (\n SELECT id FROM workforce_data AS empl\n WHERE empl.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "ord", "inner_alias": "empl", "proj_col": "value", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: inv)(status, code, type, id)\n engagement_log(date, id, value, type)\nTask: Find code from area_registry where value exceeds the average value from engagement_log for the same type.\nSQL:", "sql": "SELECT code FROM area_registry AS inv\nWHERE value > (\n SELECT AVG(value) FROM engagement_log AS prj\n WHERE prj.type = inv.type\n);", "metadata": {"outer_table": "area_registry", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "code", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: usr)(salary, code, id, name)\n receivables_log(code, amount, status, name)\nTask: Find amount from stock_catalog where id appears in receivables_log entries with matching type.\nSQL:", "sql": "SELECT amount FROM stock_catalog AS usr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.type = usr.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "usr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: empl)(date, salary, code, id)\n area_registry(id, value, level, date)\nTask: Select salary from journal_entries that have at least one matching row in area_registry for the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.type = empl.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "salary", "join_col": "type", "correlated_ref": "empl.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(type, status, name, date)\n facility_registry(level, amount, value, id)\nTask: Find name from workforce_data where a matching record exists in facility_registry with the same code.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = usr.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "facility_registry", "outer_alias": "usr", "inner_alias": "brc", "proj_col": "name", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n acquisition_log (alias: mgr)(status, level, salary, type)\n area_registry(name, code, status, level)\nTask: Select name from acquisition_log where value is greater than the average of amount in area_registry for matching type.\nSQL:", "sql": "SELECT name FROM acquisition_log AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM area_registry AS rgn\n WHERE rgn.type = mgr.type\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "area_registry", "outer_alias": "mgr", "inner_alias": "rgn", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: ord)(amount, salary, name, code)\n area_registry(value, code, id, level)\nTask: Select salary from attribute_groups where level exists in area_registry for the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE level IN (\n SELECT level FROM area_registry AS rgn\n WHERE rgn.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "area_registry", "outer_alias": "ord", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "level", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: dept)(name, date, value, status)\n acquisition_log(salary, date, id, amount)\nTask: Select salary from workforce_data where status exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM workforce_data AS dept\nWHERE status IN (\n SELECT status FROM acquisition_log AS ordr\n WHERE ordr.status = dept.status\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "acquisition_log", "outer_alias": "dept", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n stocking_sites (alias: mgr)(code, type, salary, name)\n personnel_registry(amount, date, level, name)\nTask: Select id from stocking_sites that have at least one matching row in personnel_registry for the same status.\nSQL:", "sql": "SELECT id FROM stocking_sites AS mgr\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "id", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: usr)(salary, id, type, date)\n workforce_data(date, amount, code, level)\nTask: Find amount from receivables_log where a matching record exists in workforce_data with the same level.\nSQL:", "sql": "SELECT amount FROM receivables_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM workforce_data AS empl\n WHERE empl.level = usr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "workforce_data", "outer_alias": "usr", "inner_alias": "empl", "proj_col": "amount", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v3", "prompt": "Schema:\n portfolio_index (alias: usr)(value, level, salary, date)\n stock_catalog(salary, level, code, type)\nTask: Find amount from portfolio_index where amount exceeds the maximum value from stock_catalog for the same type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS usr\nWHERE amount > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.type = usr.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "amount", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: emp)(status, id, salary, level)\n portfolio_index(name, level, status, type)\nTask: Find value from area_registry where a matching record exists in portfolio_index with the same level.\nSQL:", "sql": "SELECT value FROM area_registry AS emp\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.level = emp.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "value", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(name, value, salary, date)\n area_registry(code, level, name, amount)\nTask: Select code from sales_registry where type exists in area_registry for the same type.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE type IN (\n SELECT type FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(salary, level, name, code)\n receivables_log(id, value, level, amount)\nTask: Find value from cost_centers where a matching record exists in receivables_log with the same status.\nSQL:", "sql": "SELECT value FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = empl.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "receivables_log", "outer_alias": "empl", "inner_alias": "inv", "proj_col": "value", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: usr)(id, amount, level, date)\n acquisition_log(level, salary, name, code)\nTask: Find salary from facility_registry where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT salary FROM facility_registry AS usr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = usr.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "acquisition_log", "outer_alias": "usr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "status", "correlated_ref": "usr.status", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: empl)(level, salary, code, status)\n acquisition_log(name, amount, salary, level)\nTask: Find code from activity_log where level appears in acquisition_log entries with matching code.\nSQL:", "sql": "SELECT code FROM activity_log AS empl\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_queue (alias: mgr)(id, date, name, type)\n attribute_groups(level, salary, id, value)\nTask: Find code from sales_queue where level appears in attribute_groups entries with matching code.\nSQL:", "sql": "SELECT code FROM sales_queue AS mgr\nWHERE level IN (\n SELECT level FROM attribute_groups AS ctg\n WHERE ctg.code = mgr.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "attribute_groups", "outer_alias": "mgr", "inner_alias": "ctg", "proj_col": "code", "filter_col": "level", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: ord)(name, type, date, status)\n sales_registry(id, value, amount, salary)\nTask: Retrieve amount from dispatch_queue that have at least one corresponding entry in sales_registry sharing the same id.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS ord\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = ord.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_registry", "outer_alias": "ord", "inner_alias": "cst", "proj_col": "amount", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(code, date, value, type)\n activity_log(date, value, amount, level)\nTask: Select name from cost_centers that have at least one matching row in activity_log for the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.level = prod.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "activity_log", "outer_alias": "prod", "inner_alias": "tsk", "proj_col": "name", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(salary, name, amount, value)\n stock_catalog(date, name, code, id)\nTask: Select salary from workforce_data where amount is greater than the maximum of value in stock_catalog for matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE amount > (\n SELECT MAX(value) FROM stock_catalog AS prd\n WHERE prd.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: empl)(level, value, type, name)\n sales_registry(amount, date, code, value)\nTask: Find value from attribute_groups where code appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT value FROM attribute_groups AS empl\nWHERE code IN (\n SELECT code FROM sales_registry AS cst\n WHERE cst.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "sales_registry", "outer_alias": "empl", "inner_alias": "cst", "proj_col": "value", "filter_col": "code", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: emp)(id, salary, value, type)\n receivables_log(name, salary, status, amount)\nTask: Find name from sourcing_list where salary exceeds the minimum value from receivables_log for the same code.\nSQL:", "sql": "SELECT name FROM sourcing_list AS emp\nWHERE salary > (\n SELECT MIN(value) FROM receivables_log AS inv\n WHERE inv.code = emp.code\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "name", "filter_col": "salary", "agg_col": "value", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n activity_log (alias: dept)(value, id, salary, status)\n area_registry(value, status, name, date)\nTask: Select value from activity_log that have at least one matching row in area_registry for the same id.\nSQL:", "sql": "SELECT value FROM activity_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.id = dept.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "area_registry", "outer_alias": "dept", "inner_alias": "rgn", "proj_col": "value", "join_col": "id", "correlated_ref": "dept.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(id, date, name, code)\n dispatch_queue(name, date, status, value)\nTask: Find value from sourcing_list where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT value FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "value", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(status, id, amount, name)\n dispatch_queue(id, amount, name, status)\nTask: Find salary from attribute_groups where a matching record exists in dispatch_queue with the same level.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = ord.level\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "ord.level", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n workforce_data (alias: emp)(code, salary, type, date)\n sales_queue(type, name, date, id)\nTask: Select salary from workforce_data where amount is greater than the count of of amount in sales_queue for matching code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS emp\nWHERE amount > (\n SELECT COUNT(amount) FROM sales_queue AS ord\n WHERE ord.code = emp.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "emp", "inner_alias": "ord", "proj_col": "salary", "filter_col": "amount", "agg_col": "amount", "agg_fn": "COUNT", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: prod)(id, status, type, level)\n facility_registry(type, salary, id, status)\nTask: Find name from dispatch_queue where salary exceeds the minimum salary from facility_registry for the same code.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE salary > (\n SELECT MIN(salary) FROM facility_registry AS brc\n WHERE brc.code = prod.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "facility_registry", "outer_alias": "prod", "inner_alias": "brc", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: ord)(date, status, salary, name)\n sourcing_list(level, amount, name, salary)\nTask: Select id from dispatch_queue where amount is greater than the minimum of amount in sourcing_list for matching code.\nSQL:", "sql": "SELECT id FROM dispatch_queue AS ord\nWHERE amount > (\n SELECT MIN(amount) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(status, name, date, code)\n stock_catalog(type, code, id, value)\nTask: Select name from journal_entries where value is greater than the total of amount in stock_catalog for matching id.\nSQL:", "sql": "SELECT name FROM journal_entries AS empl\nWHERE value > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.id = empl.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "stock_catalog", "outer_alias": "empl", "inner_alias": "prd", "proj_col": "name", "filter_col": "value", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: empl)(name, code, salary, date)\n stocking_sites(type, id, name, salary)\nTask: Retrieve name from cost_centers that have at least one corresponding entry in stocking_sites sharing the same level.\nSQL:", "sql": "SELECT name FROM cost_centers AS empl\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.level = empl.level\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "name", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n receivables_log (alias: inv)(name, date, value, id)\n portfolio_index(date, id, status, salary)\nTask: Retrieve amount from receivables_log whose id is found in portfolio_index rows where id matches the outer record.\nSQL:", "sql": "SELECT amount FROM receivables_log AS inv\nWHERE id IN (\n SELECT id FROM portfolio_index AS act\n WHERE act.id = inv.id\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "amount", "filter_col": "id", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: mgr)(amount, status, code, date)\n receivables_log(status, type, salary, level)\nTask: Select amount from stocking_sites where id exists in receivables_log for the same level.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS mgr\nWHERE id IN (\n SELECT id FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "amount", "filter_col": "id", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(salary, date, type, name)\n personnel_registry(name, salary, id, amount)\nTask: Retrieve name from dispatch_queue whose type is found in personnel_registry rows where id matches the outer record.\nSQL:", "sql": "SELECT name FROM dispatch_queue AS prod\nWHERE type IN (\n SELECT type FROM personnel_registry AS emp\n WHERE emp.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "name", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: prod)(type, code, level, value)\n stocking_sites(value, date, type, id)\nTask: Find salary from facility_registry where a matching record exists in stocking_sites with the same id.\nSQL:", "sql": "SELECT salary FROM facility_registry AS prod\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.id = prod.id\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "stocking_sites", "outer_alias": "prod", "inner_alias": "whs", "proj_col": "salary", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n attribute_groups (alias: emp)(amount, status, salary, date)\n acquisition_log(type, salary, code, amount)\nTask: Select salary from attribute_groups where level exists in acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS emp\nWHERE level IN (\n SELECT level FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: usr)(level, date, code, status)\n dispatch_queue(code, level, salary, value)\nTask: Retrieve name from sales_queue with value above the AVG(value) of dispatch_queue rows sharing the same id.\nSQL:", "sql": "SELECT name FROM sales_queue AS usr\nWHERE value > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.id = usr.id\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "name", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: inv)(id, salary, code, type)\n sales_registry(id, salary, value, status)\nTask: Select value from personnel_registry where status exists in sales_registry for the same level.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE status IN (\n SELECT status FROM sales_registry AS cst\n WHERE cst.level = inv.level\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_registry", "outer_alias": "inv", "inner_alias": "cst", "proj_col": "value", "filter_col": "status", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: mgr)(salary, code, id, type)\n dispatch_queue(date, code, salary, value)\nTask: Select salary from receivables_log that have at least one matching row in dispatch_queue for the same level.\nSQL:", "sql": "SELECT salary FROM receivables_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.level = mgr.level\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "dispatch_queue", "outer_alias": "mgr", "inner_alias": "shp", "proj_col": "salary", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: ord)(id, type, name, salary)\n dispatch_queue(amount, id, value, type)\nTask: Select salary from attribute_groups that have at least one matching row in dispatch_queue for the same id.\nSQL:", "sql": "SELECT salary FROM attribute_groups AS ord\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.id = ord.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "dispatch_queue", "outer_alias": "ord", "inner_alias": "shp", "proj_col": "salary", "join_col": "id", "correlated_ref": "ord.id", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: dept)(name, amount, id, type)\n personnel_registry(amount, id, value, date)\nTask: Select id from attribute_groups that have at least one matching row in personnel_registry for the same type.\nSQL:", "sql": "SELECT id FROM attribute_groups AS dept\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "id", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, amount, value, date)\n stock_catalog(status, level, amount, code)\nTask: Retrieve id from activity_log with value above the MIN(value) of stock_catalog rows sharing the same type.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE value > (\n SELECT MIN(value) FROM stock_catalog AS prd\n WHERE prd.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MIN", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: inv)(id, name, type, date)\n activity_log(value, type, level, status)\nTask: Retrieve amount from personnel_registry with amount above the MAX(salary) of activity_log rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM personnel_registry AS inv\nWHERE amount > (\n SELECT MAX(salary) FROM activity_log AS tsk\n WHERE tsk.type = inv.type\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "amount", "filter_col": "amount", "agg_col": "salary", "agg_fn": "MAX", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 55}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: empl)(name, id, salary, date)\n engagement_log(type, date, status, value)\nTask: Find code from acquisition_log where a matching record exists in engagement_log with the same level.\nSQL:", "sql": "SELECT code FROM acquisition_log AS empl\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.level = empl.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "engagement_log", "outer_alias": "empl", "inner_alias": "prj", "proj_col": "code", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(amount, salary, value, code)\n dispatch_queue(code, type, level, id)\nTask: Find value from journal_entries where value exceeds the average value from dispatch_queue for the same code.\nSQL:", "sql": "SELECT value FROM journal_entries AS empl\nWHERE value > (\n SELECT AVG(value) FROM dispatch_queue AS shp\n WHERE shp.code = empl.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "value", "filter_col": "value", "agg_col": "value", "agg_fn": "AVG", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 85}} {"variant": "v2", "prompt": "Schema:\n dispatch_queue (alias: usr)(level, code, value, salary)\n attribute_groups(amount, code, id, level)\nTask: Retrieve value from dispatch_queue that have at least one corresponding entry in attribute_groups sharing the same code.\nSQL:", "sql": "SELECT value FROM dispatch_queue AS usr\nWHERE EXISTS (\n SELECT 1 FROM attribute_groups AS ctg\n WHERE ctg.code = usr.code\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "attribute_groups", "outer_alias": "usr", "inner_alias": "ctg", "proj_col": "value", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 80}} {"variant": "v3", "prompt": "Schema:\n area_registry (alias: usr)(level, salary, date, value)\n portfolio_index(level, type, date, value)\nTask: Select code from area_registry where amount is greater than the maximum of amount in portfolio_index for matching level.\nSQL:", "sql": "SELECT code FROM area_registry AS usr\nWHERE amount > (\n SELECT MAX(amount) FROM portfolio_index AS act\n WHERE act.level = usr.level\n);", "metadata": {"outer_table": "area_registry", "inner_table": "portfolio_index", "outer_alias": "usr", "inner_alias": "act", "proj_col": "code", "filter_col": "amount", "agg_col": "amount", "agg_fn": "MAX", "join_col": "level", "correlated_ref": "usr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n engagement_log (alias: mgr)(level, status, type, id)\n personnel_registry(date, type, salary, status)\nTask: Retrieve value from engagement_log with value above the AVG(amount) of personnel_registry rows sharing the same status.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE value > (\n SELECT AVG(amount) FROM personnel_registry AS emp\n WHERE emp.status = mgr.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "mgr", "inner_alias": "emp", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: inv)(code, salary, type, amount)\n sales_queue(level, code, salary, name)\nTask: Find code from sales_registry where amount exceeds the minimum value from sales_queue for the same id.\nSQL:", "sql": "SELECT code FROM sales_registry AS inv\nWHERE amount > (\n SELECT MIN(value) FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "code", "filter_col": "amount", "agg_col": "value", "agg_fn": "MIN", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: prod)(code, value, name, salary)\n stock_catalog(code, type, level, id)\nTask: Find amount from activity_log where salary exceeds the total amount from stock_catalog for the same id.\nSQL:", "sql": "SELECT amount FROM activity_log AS prod\nWHERE salary > (\n SELECT SUM(amount) FROM stock_catalog AS prd\n WHERE prd.id = prod.id\n);", "metadata": {"outer_table": "activity_log", "inner_table": "stock_catalog", "outer_alias": "prod", "inner_alias": "prd", "proj_col": "amount", "filter_col": "salary", "agg_col": "amount", "agg_fn": "SUM", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: usr)(status, code, id, type)\n sales_registry(type, date, salary, code)\nTask: Find code from journal_entries where level appears in sales_registry entries with matching id.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE level IN (\n SELECT level FROM sales_registry AS cst\n WHERE cst.id = usr.id\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_registry", "outer_alias": "usr", "inner_alias": "cst", "proj_col": "code", "filter_col": "level", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: mgr)(level, code, type, amount)\n sales_registry(date, status, salary, type)\nTask: Find value from engagement_log where a matching record exists in sales_registry with the same id.\nSQL:", "sql": "SELECT value FROM engagement_log AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.id = mgr.id\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: emp)(status, type, value, level)\n facility_registry(amount, code, type, value)\nTask: Select id from stock_catalog where level exists in facility_registry for the same status.\nSQL:", "sql": "SELECT id FROM stock_catalog AS emp\nWHERE level IN (\n SELECT level FROM facility_registry AS brc\n WHERE brc.status = emp.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "facility_registry", "outer_alias": "emp", "inner_alias": "brc", "proj_col": "id", "filter_col": "level", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n cost_centers (alias: prod)(code, date, type, value)\n acquisition_log(id, type, code, level)\nTask: Find name from cost_centers where a matching record exists in acquisition_log with the same status.\nSQL:", "sql": "SELECT name FROM cost_centers AS prod\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.status = prod.status\n);", "metadata": {"outer_table": "cost_centers", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "name", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n receivables_log (alias: mgr)(amount, id, date, code)\n cost_centers(type, level, code, name)\nTask: Select value from receivables_log where value is greater than the count of of salary in cost_centers for matching status.\nSQL:", "sql": "SELECT value FROM receivables_log AS mgr\nWHERE value > (\n SELECT COUNT(salary) FROM cost_centers AS dpt\n WHERE dpt.status = mgr.status\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "value", "filter_col": "value", "agg_col": "salary", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 70}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: inv)(level, type, id, status)\n sales_queue(salary, code, level, id)\nTask: Select amount from dispatch_queue where level exists in sales_queue for the same type.\nSQL:", "sql": "SELECT amount FROM dispatch_queue AS inv\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.type = inv.type\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: emp)(id, code, salary, amount)\n stock_catalog(status, date, id, level)\nTask: Find amount from portfolio_index where level appears in stock_catalog entries with matching type.\nSQL:", "sql": "SELECT amount FROM portfolio_index AS emp\nWHERE level IN (\n SELECT level FROM stock_catalog AS prd\n WHERE prd.type = emp.type\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "stock_catalog", "outer_alias": "emp", "inner_alias": "prd", "proj_col": "amount", "filter_col": "level", "join_col": "type", "correlated_ref": "emp.type", "token_group": "T2", "fan_out": 90}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: mgr)(status, level, type, amount)\n acquisition_log(value, level, salary, id)\nTask: Select id from journal_entries where amount is greater than the total of amount in acquisition_log for matching type.\nSQL:", "sql": "SELECT id FROM journal_entries AS mgr\nWHERE amount > (\n SELECT SUM(amount) FROM acquisition_log AS ordr\n WHERE ordr.type = mgr.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "amount", "agg_fn": "SUM", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n engagement_log (alias: usr)(date, amount, id, salary)\n stocking_sites(type, amount, date, salary)\nTask: Find amount from engagement_log where a matching record exists in stocking_sites with the same type.\nSQL:", "sql": "SELECT amount FROM engagement_log AS usr\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = usr.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "stocking_sites", "outer_alias": "usr", "inner_alias": "whs", "proj_col": "amount", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: prod)(value, amount, code, status)\n sales_registry(type, status, date, salary)\nTask: Find code from facility_registry where type appears in sales_registry entries with matching type.\nSQL:", "sql": "SELECT code FROM facility_registry AS prod\nWHERE type IN (\n SELECT type FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "code", "filter_col": "type", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: prod)(value, code, name, salary)\n personnel_registry(level, amount, salary, value)\nTask: Select amount from sales_queue that have at least one matching row in personnel_registry for the same level.\nSQL:", "sql": "SELECT amount FROM sales_queue AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.level = prod.level\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "amount", "join_col": "level", "correlated_ref": "prod.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: dept)(name, status, level, type)\n cost_centers(code, type, amount, name)\nTask: Find amount from area_registry where a matching record exists in cost_centers with the same status.\nSQL:", "sql": "SELECT amount FROM area_registry AS dept\nWHERE EXISTS (\n SELECT 1 FROM cost_centers AS dpt\n WHERE dpt.status = dept.status\n);", "metadata": {"outer_table": "area_registry", "inner_table": "cost_centers", "outer_alias": "dept", "inner_alias": "dpt", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: emp)(level, date, name, status)\n portfolio_index(status, type, date, code)\nTask: Select name from journal_entries where value is greater than the maximum of salary in portfolio_index for matching code.\nSQL:", "sql": "SELECT name FROM journal_entries AS emp\nWHERE value > (\n SELECT MAX(salary) FROM portfolio_index AS act\n WHERE act.code = emp.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "portfolio_index", "outer_alias": "emp", "inner_alias": "act", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "emp.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: empl)(status, salary, date, type)\n journal_entries(status, code, amount, type)\nTask: Find name from stocking_sites where salary exceeds the total salary from journal_entries for the same status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM journal_entries AS txn\n WHERE txn.status = empl.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "journal_entries", "outer_alias": "empl", "inner_alias": "txn", "proj_col": "name", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: mgr)(name, salary, value, date)\n acquisition_log(date, amount, name, id)\nTask: Find salary from personnel_registry where a matching record exists in acquisition_log with the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "salary", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: dept)(name, date, level, id)\n stocking_sites(name, amount, level, status)\nTask: Select id from sales_registry where id exists in stocking_sites for the same status.\nSQL:", "sql": "SELECT id FROM sales_registry AS dept\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "id", "filter_col": "id", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n workforce_data (alias: usr)(id, value, status, date)\n stock_catalog(level, id, amount, date)\nTask: Find name from workforce_data where status appears in stock_catalog entries with matching id.\nSQL:", "sql": "SELECT name FROM workforce_data AS usr\nWHERE status IN (\n SELECT status FROM stock_catalog AS prd\n WHERE prd.id = usr.id\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "stock_catalog", "outer_alias": "usr", "inner_alias": "prd", "proj_col": "name", "filter_col": "status", "join_col": "id", "correlated_ref": "usr.id", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: dept)(type, amount, name, id)\n personnel_registry(salary, value, date, code)\nTask: Find salary from engagement_log where status appears in personnel_registry entries with matching type.\nSQL:", "sql": "SELECT salary FROM engagement_log AS dept\nWHERE status IN (\n SELECT status FROM personnel_registry AS emp\n WHERE emp.type = dept.type\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "dept", "inner_alias": "emp", "proj_col": "salary", "filter_col": "status", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: mgr)(salary, code, id, type)\n receivables_log(id, level, name, value)\nTask: Find name from stock_catalog where code appears in receivables_log entries with matching level.\nSQL:", "sql": "SELECT name FROM stock_catalog AS mgr\nWHERE code IN (\n SELECT code FROM receivables_log AS inv\n WHERE inv.level = mgr.level\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "receivables_log", "outer_alias": "mgr", "inner_alias": "inv", "proj_col": "name", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(amount, code, status, salary)\n dispatch_queue(type, name, value, code)\nTask: Select value from sales_queue that have at least one matching row in dispatch_queue for the same status.\nSQL:", "sql": "SELECT value FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "dispatch_queue", "outer_alias": "dept", "inner_alias": "shp", "proj_col": "value", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: mgr)(id, level, type, status)\n cost_centers(name, level, status, code)\nTask: Find id from sales_registry where type appears in cost_centers entries with matching level.\nSQL:", "sql": "SELECT id FROM sales_registry AS mgr\nWHERE type IN (\n SELECT type FROM cost_centers AS dpt\n WHERE dpt.level = mgr.level\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "cost_centers", "outer_alias": "mgr", "inner_alias": "dpt", "proj_col": "id", "filter_col": "type", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 70}} {"variant": "v2", "prompt": "Schema:\n sourcing_list (alias: mgr)(code, amount, level, type)\n engagement_log(name, id, level, salary)\nTask: Find name from sourcing_list where a matching record exists in engagement_log with the same status.\nSQL:", "sql": "SELECT name FROM sourcing_list AS mgr\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.status = mgr.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "engagement_log", "outer_alias": "mgr", "inner_alias": "prj", "proj_col": "name", "join_col": "status", "correlated_ref": "mgr.status", "token_group": "T2", "fan_out": 90}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: usr)(amount, value, id, code)\n area_registry(name, type, level, id)\nTask: Select code from journal_entries that have at least one matching row in area_registry for the same code.\nSQL:", "sql": "SELECT code FROM journal_entries AS usr\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = usr.code\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "area_registry", "outer_alias": "usr", "inner_alias": "rgn", "proj_col": "code", "join_col": "code", "correlated_ref": "usr.code", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: prod)(date, amount, value, level)\n personnel_registry(status, amount, id, salary)\nTask: Retrieve code from receivables_log that have at least one corresponding entry in personnel_registry sharing the same type.\nSQL:", "sql": "SELECT code FROM receivables_log AS prod\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.type = prod.type\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "personnel_registry", "outer_alias": "prod", "inner_alias": "emp", "proj_col": "code", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(amount, status, type, name)\n stocking_sites(salary, amount, date, id)\nTask: Select id from personnel_registry where value is greater than the maximum of value in stocking_sites for matching id.\nSQL:", "sql": "SELECT id FROM personnel_registry AS emp\nWHERE value > (\n SELECT MAX(value) FROM stocking_sites AS whs\n WHERE whs.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "stocking_sites", "outer_alias": "emp", "inner_alias": "whs", "proj_col": "id", "filter_col": "value", "agg_col": "value", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: dept)(date, code, amount, level)\n workforce_data(name, code, date, type)\nTask: Find name from stocking_sites where code appears in workforce_data entries with matching status.\nSQL:", "sql": "SELECT name FROM stocking_sites AS dept\nWHERE code IN (\n SELECT code FROM workforce_data AS empl\n WHERE empl.status = dept.status\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "workforce_data", "outer_alias": "dept", "inner_alias": "empl", "proj_col": "name", "filter_col": "code", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: empl)(date, status, id, type)\n area_registry(type, level, status, value)\nTask: Retrieve value from stock_catalog that have at least one corresponding entry in area_registry sharing the same code.\nSQL:", "sql": "SELECT value FROM stock_catalog AS empl\nWHERE EXISTS (\n SELECT 1 FROM area_registry AS rgn\n WHERE rgn.code = empl.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "area_registry", "outer_alias": "empl", "inner_alias": "rgn", "proj_col": "value", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: ord)(amount, name, type, salary)\n attribute_groups(name, code, id, type)\nTask: Find code from facility_registry where code appears in attribute_groups entries with matching status.\nSQL:", "sql": "SELECT code FROM facility_registry AS ord\nWHERE code IN (\n SELECT code FROM attribute_groups AS ctg\n WHERE ctg.status = ord.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "attribute_groups", "outer_alias": "ord", "inner_alias": "ctg", "proj_col": "code", "filter_col": "code", "join_col": "status", "correlated_ref": "ord.status", "token_group": "T2", "fan_out": 80}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: inv)(date, status, amount, name)\n engagement_log(status, name, code, amount)\nTask: Find value from attribute_groups where a matching record exists in engagement_log with the same code.\nSQL:", "sql": "SELECT value FROM attribute_groups AS inv\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.code = inv.code\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "engagement_log", "outer_alias": "inv", "inner_alias": "prj", "proj_col": "value", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n stocking_sites (alias: empl)(level, name, salary, amount)\n acquisition_log(code, type, status, value)\nTask: Retrieve code from stocking_sites whose code is found in acquisition_log rows where code matches the outer record.\nSQL:", "sql": "SELECT code FROM stocking_sites AS empl\nWHERE code IN (\n SELECT code FROM acquisition_log AS ordr\n WHERE ordr.code = empl.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "acquisition_log", "outer_alias": "empl", "inner_alias": "ordr", "proj_col": "code", "filter_col": "code", "join_col": "code", "correlated_ref": "empl.code", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: emp)(level, type, status, amount)\n dispatch_queue(name, status, type, id)\nTask: Select amount from journal_entries where id exists in dispatch_queue for the same status.\nSQL:", "sql": "SELECT amount FROM journal_entries AS emp\nWHERE id IN (\n SELECT id FROM dispatch_queue AS shp\n WHERE shp.status = emp.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "dispatch_queue", "outer_alias": "emp", "inner_alias": "shp", "proj_col": "amount", "filter_col": "id", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n personnel_registry (alias: emp)(name, type, code, date)\n area_registry(value, id, level, status)\nTask: Retrieve salary from personnel_registry with value above the MAX(salary) of area_registry rows sharing the same id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE value > (\n SELECT MAX(salary) FROM area_registry AS rgn\n WHERE rgn.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "area_registry", "outer_alias": "emp", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "salary", "agg_fn": "MAX", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n stock_catalog (alias: mgr)(date, id, level, type)\n sales_registry(date, status, value, id)\nTask: Retrieve code from stock_catalog that have at least one corresponding entry in sales_registry sharing the same code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_registry AS cst\n WHERE cst.code = mgr.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "mgr", "inner_alias": "cst", "proj_col": "code", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: ord)(status, code, salary, value)\n stocking_sites(status, name, type, salary)\nTask: Find code from stock_catalog where id appears in stocking_sites entries with matching code.\nSQL:", "sql": "SELECT code FROM stock_catalog AS ord\nWHERE id IN (\n SELECT id FROM stocking_sites AS whs\n WHERE whs.code = ord.code\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "ord", "inner_alias": "whs", "proj_col": "code", "filter_col": "id", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 65}} {"variant": "v2", "prompt": "Schema:\n attribute_groups (alias: empl)(name, value, amount, id)\n personnel_registry(amount, name, code, status)\nTask: Find amount from attribute_groups where a matching record exists in personnel_registry with the same id.\nSQL:", "sql": "SELECT amount FROM attribute_groups AS empl\nWHERE EXISTS (\n SELECT 1 FROM personnel_registry AS emp\n WHERE emp.id = empl.id\n);", "metadata": {"outer_table": "attribute_groups", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "amount", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n sales_registry (alias: empl)(salary, value, level, type)\n stocking_sites(date, name, value, code)\nTask: Select value from sales_registry where value is greater than the average of amount in stocking_sites for matching id.\nSQL:", "sql": "SELECT value FROM sales_registry AS empl\nWHERE value > (\n SELECT AVG(amount) FROM stocking_sites AS whs\n WHERE whs.id = empl.id\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "stocking_sites", "outer_alias": "empl", "inner_alias": "whs", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "id", "correlated_ref": "empl.id", "token_group": "T2", "fan_out": 65}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: prod)(code, name, id, type)\n area_registry(status, code, level, id)\nTask: Retrieve salary from sourcing_list with value above the MIN(amount) of area_registry rows sharing the same status.\nSQL:", "sql": "SELECT salary FROM sourcing_list AS prod\nWHERE value > (\n SELECT MIN(amount) FROM area_registry AS rgn\n WHERE rgn.status = prod.status\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "prod", "inner_alias": "rgn", "proj_col": "salary", "filter_col": "value", "agg_col": "amount", "agg_fn": "MIN", "join_col": "status", "correlated_ref": "prod.status", "token_group": "T2", "fan_out": 60}} {"variant": "v1", "prompt": "Schema:\n sourcing_list (alias: inv)(id, type, amount, status)\n dispatch_queue(date, amount, status, id)\nTask: Retrieve name from sourcing_list whose code is found in dispatch_queue rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM sourcing_list AS inv\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "dispatch_queue", "outer_alias": "inv", "inner_alias": "shp", "proj_col": "name", "filter_col": "code", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: inv)(status, level, code, type)\n personnel_registry(status, id, value, name)\nTask: Retrieve value from engagement_log whose id is found in personnel_registry rows where level matches the outer record.\nSQL:", "sql": "SELECT value FROM engagement_log AS inv\nWHERE id IN (\n SELECT id FROM personnel_registry AS emp\n WHERE emp.level = inv.level\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "personnel_registry", "outer_alias": "inv", "inner_alias": "emp", "proj_col": "value", "filter_col": "id", "join_col": "level", "correlated_ref": "inv.level", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n acquisition_log (alias: ord)(code, level, salary, status)\n facility_registry(amount, type, id, status)\nTask: Retrieve salary from acquisition_log that have at least one corresponding entry in facility_registry sharing the same code.\nSQL:", "sql": "SELECT salary FROM acquisition_log AS ord\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.code = ord.code\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "facility_registry", "outer_alias": "ord", "inner_alias": "brc", "proj_col": "salary", "join_col": "code", "correlated_ref": "ord.code", "token_group": "T2", "fan_out": 50}} {"variant": "v3", "prompt": "Schema:\n journal_entries (alias: empl)(salary, amount, type, id)\n personnel_registry(salary, id, value, level)\nTask: Select salary from journal_entries where salary is greater than the minimum of amount in personnel_registry for matching level.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE salary > (\n SELECT MIN(amount) FROM personnel_registry AS emp\n WHERE emp.level = empl.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "personnel_registry", "outer_alias": "empl", "inner_alias": "emp", "proj_col": "salary", "filter_col": "salary", "agg_col": "amount", "agg_fn": "MIN", "join_col": "level", "correlated_ref": "empl.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n activity_log (alias: prod)(code, value, name, level)\n workforce_data(id, status, name, salary)\nTask: Find id from activity_log where status appears in workforce_data entries with matching type.\nSQL:", "sql": "SELECT id FROM activity_log AS prod\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.type = prod.type\n);", "metadata": {"outer_table": "activity_log", "inner_table": "workforce_data", "outer_alias": "prod", "inner_alias": "empl", "proj_col": "id", "filter_col": "status", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T2", "fan_out": 110}} {"variant": "v1", "prompt": "Schema:\n facility_registry (alias: mgr)(date, name, amount, level)\n portfolio_index(value, date, code, id)\nTask: Retrieve name from facility_registry whose level is found in portfolio_index rows where type matches the outer record.\nSQL:", "sql": "SELECT name FROM facility_registry AS mgr\nWHERE level IN (\n SELECT level FROM portfolio_index AS act\n WHERE act.type = mgr.type\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "mgr", "inner_alias": "act", "proj_col": "name", "filter_col": "level", "join_col": "type", "correlated_ref": "mgr.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: inv)(type, amount, date, salary)\n sales_queue(id, code, salary, date)\nTask: Find salary from workforce_data where a matching record exists in sales_queue with the same code.\nSQL:", "sql": "SELECT salary FROM workforce_data AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "salary", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(level, status, date, value)\n receivables_log(value, status, amount, date)\nTask: Retrieve amount from sales_queue that have at least one corresponding entry in receivables_log sharing the same status.\nSQL:", "sql": "SELECT amount FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM receivables_log AS inv\n WHERE inv.status = dept.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "receivables_log", "outer_alias": "dept", "inner_alias": "inv", "proj_col": "amount", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n engagement_log (alias: empl)(status, salary, date, value)\n dispatch_queue(id, value, code, salary)\nTask: Retrieve amount from engagement_log whose code is found in dispatch_queue rows where status matches the outer record.\nSQL:", "sql": "SELECT amount FROM engagement_log AS empl\nWHERE code IN (\n SELECT code FROM dispatch_queue AS shp\n WHERE shp.status = empl.status\n);", "metadata": {"outer_table": "engagement_log", "inner_table": "dispatch_queue", "outer_alias": "empl", "inner_alias": "shp", "proj_col": "amount", "filter_col": "code", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 85}} {"variant": "v3", "prompt": "Schema:\n stocking_sites (alias: ord)(type, code, level, status)\n sourcing_list(date, value, level, id)\nTask: Find amount from stocking_sites where salary exceeds the average salary from sourcing_list for the same code.\nSQL:", "sql": "SELECT amount FROM stocking_sites AS ord\nWHERE salary > (\n SELECT AVG(salary) FROM sourcing_list AS spl\n WHERE spl.code = ord.code\n);", "metadata": {"outer_table": "stocking_sites", "inner_table": "sourcing_list", "outer_alias": "ord", "inner_alias": "spl", "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}} {"variant": "v2", "prompt": "Schema:\n personnel_registry (alias: inv)(date, id, salary, amount)\n sales_queue(value, level, id, status)\nTask: Find value from personnel_registry where a matching record exists in sales_queue with the same id.\nSQL:", "sql": "SELECT value FROM personnel_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = inv.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "value", "join_col": "id", "correlated_ref": "inv.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n acquisition_log (alias: emp)(salary, amount, code, level)\n receivables_log(value, status, date, salary)\nTask: Select value from acquisition_log where type exists in receivables_log for the same level.\nSQL:", "sql": "SELECT value FROM acquisition_log AS emp\nWHERE type IN (\n SELECT type FROM receivables_log AS inv\n WHERE inv.level = emp.level\n);", "metadata": {"outer_table": "acquisition_log", "inner_table": "receivables_log", "outer_alias": "emp", "inner_alias": "inv", "proj_col": "value", "filter_col": "type", "join_col": "level", "correlated_ref": "emp.level", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n dispatch_queue (alias: emp)(status, name, code, value)\n acquisition_log(date, amount, salary, value)\nTask: Find salary from dispatch_queue where amount exceeds the count of value from acquisition_log for the same status.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS emp\nWHERE amount > (\n SELECT COUNT(value) FROM acquisition_log AS ordr\n WHERE ordr.status = emp.status\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "emp", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "amount", "agg_col": "value", "agg_fn": "COUNT", "join_col": "status", "correlated_ref": "emp.status", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_registry (alias: inv)(name, code, amount, salary)\n activity_log(id, amount, date, salary)\nTask: Find name from sales_registry where a matching record exists in activity_log with the same status.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM activity_log AS tsk\n WHERE tsk.status = inv.status\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "activity_log", "outer_alias": "inv", "inner_alias": "tsk", "proj_col": "name", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T2", "fan_out": 55}} {"variant": "v3", "prompt": "Schema:\n sourcing_list (alias: inv)(date, type, level, status)\n area_registry(amount, name, code, date)\nTask: Retrieve amount from sourcing_list with salary above the COUNT(value) of area_registry rows sharing the same type.\nSQL:", "sql": "SELECT amount FROM sourcing_list AS inv\nWHERE salary > (\n SELECT COUNT(value) FROM area_registry AS rgn\n WHERE rgn.type = inv.type\n);", "metadata": {"outer_table": "sourcing_list", "inner_table": "area_registry", "outer_alias": "inv", "inner_alias": "rgn", "proj_col": "amount", "filter_col": "salary", "agg_col": "value", "agg_fn": "COUNT", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 60}} {"variant": "v2", "prompt": "Schema:\n facility_registry (alias: inv)(amount, value, type, date)\n portfolio_index(value, id, name, date)\nTask: Select id from facility_registry that have at least one matching row in portfolio_index for the same status.\nSQL:", "sql": "SELECT id FROM facility_registry AS inv\nWHERE EXISTS (\n SELECT 1 FROM portfolio_index AS act\n WHERE act.status = inv.status\n);", "metadata": {"outer_table": "facility_registry", "inner_table": "portfolio_index", "outer_alias": "inv", "inner_alias": "act", "proj_col": "id", "join_col": "status", "correlated_ref": "inv.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n journal_entries (alias: dept)(status, salary, level, amount)\n engagement_log(value, amount, code, salary)\nTask: Select salary from journal_entries that have at least one matching row in engagement_log for the same type.\nSQL:", "sql": "SELECT salary FROM journal_entries AS dept\nWHERE EXISTS (\n SELECT 1 FROM engagement_log AS prj\n WHERE prj.type = dept.type\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "engagement_log", "outer_alias": "dept", "inner_alias": "prj", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 90}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: mgr)(name, amount, id, status)\n sourcing_list(date, level, id, amount)\nTask: Find code from journal_entries where code appears in sourcing_list entries with matching level.\nSQL:", "sql": "SELECT code FROM journal_entries AS mgr\nWHERE code IN (\n SELECT code FROM sourcing_list AS spl\n WHERE spl.level = mgr.level\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sourcing_list", "outer_alias": "mgr", "inner_alias": "spl", "proj_col": "code", "filter_col": "code", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n personnel_registry (alias: emp)(date, type, level, status)\n journal_entries(id, salary, level, value)\nTask: Find salary from personnel_registry where id appears in journal_entries entries with matching id.\nSQL:", "sql": "SELECT salary FROM personnel_registry AS emp\nWHERE id IN (\n SELECT id FROM journal_entries AS txn\n WHERE txn.id = emp.id\n);", "metadata": {"outer_table": "personnel_registry", "inner_table": "journal_entries", "outer_alias": "emp", "inner_alias": "txn", "proj_col": "salary", "filter_col": "id", "join_col": "id", "correlated_ref": "emp.id", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: inv)(value, type, name, date)\n facility_registry(status, id, value, name)\nTask: Retrieve id from sales_queue that have at least one corresponding entry in facility_registry sharing the same type.\nSQL:", "sql": "SELECT id FROM sales_queue AS inv\nWHERE EXISTS (\n SELECT 1 FROM facility_registry AS brc\n WHERE brc.type = inv.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "facility_registry", "outer_alias": "inv", "inner_alias": "brc", "proj_col": "id", "join_col": "type", "correlated_ref": "inv.type", "token_group": "T2", "fan_out": 50}} {"variant": "v2", "prompt": "Schema:\n workforce_data (alias: usr)(type, amount, value, name)\n dispatch_queue(status, id, salary, amount)\nTask: Retrieve id from workforce_data that have at least one corresponding entry in dispatch_queue sharing the same type.\nSQL:", "sql": "SELECT id FROM workforce_data AS usr\nWHERE EXISTS (\n SELECT 1 FROM dispatch_queue AS shp\n WHERE shp.type = usr.type\n);", "metadata": {"outer_table": "workforce_data", "inner_table": "dispatch_queue", "outer_alias": "usr", "inner_alias": "shp", "proj_col": "id", "join_col": "type", "correlated_ref": "usr.type", "token_group": "T2", "fan_out": 85}} {"variant": "v1", "prompt": "Schema:\n journal_entries (alias: empl)(name, salary, date, type)\n sales_queue(name, value, id, status)\nTask: Find salary from journal_entries where status appears in sales_queue entries with matching status.\nSQL:", "sql": "SELECT salary FROM journal_entries AS empl\nWHERE status IN (\n SELECT status FROM sales_queue AS ord\n WHERE ord.status = empl.status\n);", "metadata": {"outer_table": "journal_entries", "inner_table": "sales_queue", "outer_alias": "empl", "inner_alias": "ord", "proj_col": "salary", "filter_col": "status", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n portfolio_index (alias: mgr)(date, type, status, level)\n acquisition_log(name, type, salary, code)\nTask: Retrieve value from portfolio_index that have at least one corresponding entry in acquisition_log sharing the same id.\nSQL:", "sql": "SELECT value FROM portfolio_index AS mgr\nWHERE EXISTS (\n SELECT 1 FROM acquisition_log AS ordr\n WHERE ordr.id = mgr.id\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "value", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T2", "fan_out": 95}} {"variant": "v1", "prompt": "Schema:\n sales_registry (alias: inv)(value, type, code, id)\n sales_queue(type, name, date, level)\nTask: Find name from sales_registry where level appears in sales_queue entries with matching code.\nSQL:", "sql": "SELECT name FROM sales_registry AS inv\nWHERE level IN (\n SELECT level FROM sales_queue AS ord\n WHERE ord.code = inv.code\n);", "metadata": {"outer_table": "sales_registry", "inner_table": "sales_queue", "outer_alias": "inv", "inner_alias": "ord", "proj_col": "name", "filter_col": "level", "join_col": "code", "correlated_ref": "inv.code", "token_group": "T1", "fan_out": 1}} {"variant": "v3", "prompt": "Schema:\n activity_log (alias: mgr)(value, salary, status, code)\n acquisition_log(type, amount, code, date)\nTask: Retrieve name from activity_log with value above the MIN(salary) of acquisition_log rows sharing the same code.\nSQL:", "sql": "SELECT name FROM activity_log AS mgr\nWHERE value > (\n SELECT MIN(salary) FROM acquisition_log AS ordr\n WHERE ordr.code = mgr.code\n);", "metadata": {"outer_table": "activity_log", "inner_table": "acquisition_log", "outer_alias": "mgr", "inner_alias": "ordr", "proj_col": "name", "filter_col": "value", "agg_col": "salary", "agg_fn": "MIN", "join_col": "code", "correlated_ref": "mgr.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: prod)(name, status, code, value)\n acquisition_log(level, id, code, status)\nTask: Retrieve id from sales_queue with amount above the MAX(value) of acquisition_log rows sharing the same code.\nSQL:", "sql": "SELECT id FROM sales_queue AS prod\nWHERE amount > (\n SELECT MAX(value) FROM acquisition_log AS ordr\n WHERE ordr.code = prod.code\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "id", "filter_col": "amount", "agg_col": "value", "agg_fn": "MAX", "join_col": "code", "correlated_ref": "prod.code", "token_group": "T2", "fan_out": 95}} {"variant": "v3", "prompt": "Schema:\n sales_queue (alias: empl)(name, salary, date, type)\n cost_centers(code, name, type, salary)\nTask: Retrieve code from sales_queue with salary above the SUM(salary) of cost_centers rows sharing the same status.\nSQL:", "sql": "SELECT code FROM sales_queue AS empl\nWHERE salary > (\n SELECT SUM(salary) FROM cost_centers AS dpt\n WHERE dpt.status = empl.status\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "cost_centers", "outer_alias": "empl", "inner_alias": "dpt", "proj_col": "code", "filter_col": "salary", "agg_col": "salary", "agg_fn": "SUM", "join_col": "status", "correlated_ref": "empl.status", "token_group": "T2", "fan_out": 70}} {"variant": "v3", "prompt": "Schema:\n stock_catalog (alias: prod)(type, date, id, salary)\n sales_registry(name, code, amount, id)\nTask: Retrieve value from stock_catalog with value above the AVG(amount) of sales_registry rows sharing the same type.\nSQL:", "sql": "SELECT value FROM stock_catalog AS prod\nWHERE value > (\n SELECT AVG(amount) FROM sales_registry AS cst\n WHERE cst.type = prod.type\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "sales_registry", "outer_alias": "prod", "inner_alias": "cst", "proj_col": "value", "filter_col": "value", "agg_col": "amount", "agg_fn": "AVG", "join_col": "type", "correlated_ref": "prod.type", "token_group": "T1", "fan_out": 1}} {"variant": "v2", "prompt": "Schema:\n receivables_log (alias: dept)(name, id, code, salary)\n stocking_sites(status, amount, type, date)\nTask: Find name from receivables_log where a matching record exists in stocking_sites with the same code.\nSQL:", "sql": "SELECT name FROM receivables_log AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.code = dept.code\n);", "metadata": {"outer_table": "receivables_log", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "name", "join_col": "code", "correlated_ref": "dept.code", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n portfolio_index (alias: mgr)(status, name, amount, code)\n workforce_data(amount, value, salary, status)\nTask: Retrieve code from portfolio_index whose status is found in workforce_data rows where level matches the outer record.\nSQL:", "sql": "SELECT code FROM portfolio_index AS mgr\nWHERE status IN (\n SELECT status FROM workforce_data AS empl\n WHERE empl.level = mgr.level\n);", "metadata": {"outer_table": "portfolio_index", "inner_table": "workforce_data", "outer_alias": "mgr", "inner_alias": "empl", "proj_col": "code", "filter_col": "status", "join_col": "level", "correlated_ref": "mgr.level", "token_group": "T2", "fan_out": 110}} {"variant": "v2", "prompt": "Schema:\n area_registry (alias: mgr)(level, type, id, name)\n sales_queue(value, id, level, date)\nTask: Retrieve amount from area_registry that have at least one corresponding entry in sales_queue sharing the same id.\nSQL:", "sql": "SELECT amount FROM area_registry AS mgr\nWHERE EXISTS (\n SELECT 1 FROM sales_queue AS ord\n WHERE ord.id = mgr.id\n);", "metadata": {"outer_table": "area_registry", "inner_table": "sales_queue", "outer_alias": "mgr", "inner_alias": "ord", "proj_col": "amount", "join_col": "id", "correlated_ref": "mgr.id", "token_group": "T1", "fan_out": 1}} {"variant": "v1", "prompt": "Schema:\n dispatch_queue (alias: prod)(date, status, salary, name)\n acquisition_log(type, level, date, status)\nTask: Find salary from dispatch_queue where type appears in acquisition_log entries with matching id.\nSQL:", "sql": "SELECT salary FROM dispatch_queue AS prod\nWHERE type IN (\n SELECT type FROM acquisition_log AS ordr\n WHERE ordr.id = prod.id\n);", "metadata": {"outer_table": "dispatch_queue", "inner_table": "acquisition_log", "outer_alias": "prod", "inner_alias": "ordr", "proj_col": "salary", "filter_col": "type", "join_col": "id", "correlated_ref": "prod.id", "token_group": "T2", "fan_out": 95}} {"variant": "v2", "prompt": "Schema:\n sales_queue (alias: dept)(name, type, level, status)\n stocking_sites(status, type, salary, date)\nTask: Retrieve salary from sales_queue that have at least one corresponding entry in stocking_sites sharing the same type.\nSQL:", "sql": "SELECT salary FROM sales_queue AS dept\nWHERE EXISTS (\n SELECT 1 FROM stocking_sites AS whs\n WHERE whs.type = dept.type\n);", "metadata": {"outer_table": "sales_queue", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "join_col": "type", "correlated_ref": "dept.type", "token_group": "T2", "fan_out": 65}} {"variant": "v1", "prompt": "Schema:\n stock_catalog (alias: dept)(id, status, code, type)\n stocking_sites(level, date, name, type)\nTask: Find salary from stock_catalog where type appears in stocking_sites entries with matching status.\nSQL:", "sql": "SELECT salary FROM stock_catalog AS dept\nWHERE type IN (\n SELECT type FROM stocking_sites AS whs\n WHERE whs.status = dept.status\n);", "metadata": {"outer_table": "stock_catalog", "inner_table": "stocking_sites", "outer_alias": "dept", "inner_alias": "whs", "proj_col": "salary", "filter_col": "type", "join_col": "status", "correlated_ref": "dept.status", "token_group": "T2", "fan_out": 65}}