{
	"name": "query/manager/product/product_work/order/will_be_late_work_order.json",
	"table": [
		{
			"record_type": ["schedule"],
			"table": "product_work"
		}
	],
	"parameter": {
		"phase_open_state": [
				"EK",
				"KU",
				"AL",
				"PY"
			],
		"show_sql": false,
		"work_order_open_state": [
				"EK",
				"KU",
				"AL",
				"PY"
			]
	},
	"databaseX": "4d",
	"query": [
		["prwo.work_phase_number", "<>", 0],
		"and",
		["prwo.work_phase_state", "in", "phase_open_state"],
		"and",
		["pro.production_order_state", "in", "work_order_open_state"]
	],
	"setX": {
		"subquery_wos_open": "query/manager/product/product_work/order/open.json"
	},
	"subqueryX": [
		{
			"name": "subquery_wos_open",
			"query": "query/manager/product/product_work/order/open.json"
		}
	]
}