{
	"name": "query/af/document/document_query_product.json",

	"table": [
		{
			"record_type": [""],
			"table": "product"
		}
	],
	"parameter": {
		"no_empty_parameter": ["product"],
		"state": 0,
		"product": "",
		"subquery": "SELECT SUBSTRING(link2, 4) FROM _link WHERE (link1 = (SELECT CONCAT('pr_', record_id) FROM product WHERE product_id = '{{product}}')) AND link2 LIKE 'af_%'"
	},
	"query": [["af_record_id", "in", "subquery"], "and", ["af_state", ">=", "state"]]
}
