{
	"name": "query/af/document/document_query_company.json",
	"database": "4d",
	"parameter": {
		"no_empty_parameter": ["product"],
		"state": 0,
		"product": "",
		"subquery": "SELECT SUBSTRING(link2, 4) FROM _link WHERE (link1 = (SELECT CONCAT('co_', record_id) FROM company WHERE company_id = (SELECT customer_id FROM product WHERE product_id = '{{product}}'))) AND link2 LIKE 'af_%'"
	},
	"query": [["kw.record_id", "in", "subquery"], "and", ["kw.json_data.field_state", ">=", "state"]]
}
