{
	"name": "query/af/document/document_query_link1.json",
	"database": "4d",
	"table": {
		"table": "af"
	},
	"parameter": {
		"link1": "",
		"no_empty_parameter": ["link1"],
		"show_sql": false,
		"state": 0,
		"subquery": "SELECT SUBSTRING(link2, 4) FROM _link WHERE link2 LIKE 'af_%' AND link1 IN ({{link1}})"
	},
	"query": [["af_state", ">=", "state"], "and", ["af_record_id", "in", "subquery"]]
}