{
  "name": "query/link/memori_link.json",
  "table": [{ "table": "link", "record_type": [""] }],
  "parameter": { "parent_id": [""] },
  "set": {
    "task_types": [
      ["task.task_type", "=", "task"],
      "or",
      ["task.task_type", "=", "task list"]
    ]
  },
  "query": [
    ["link.parent_id", "in", "parent_id"],
    "and",
    ["task.task_state", "=", "active"]
  ],
  "queryX": ["and", "task_types"],
  "order": [
    "task.start_time",
    ">",
    "link.level_order",
    ">",
    "task.description",
    ">"
  ],
  "field": [
    "link.level_order",
    "link.parent_id",
    "link.child_id",
    "link.record_id"
  ]
}
