Advertisement
omelyanov

Untitled

May 20th, 2022
832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.96 KB | None | 0 0
  1. {
  2.   "category": "PREDICATE",
  3.   "operation": "AND",
  4.   "operands": [
  5.     {
  6.       "category": "PREDICATE",
  7.       "operation": "EXISTS",
  8.       "operands": [
  9.         {
  10.           "category": "ID",
  11.           "type": "DATASET",
  12.           "alias": "outer_collection",
  13.           "id": {
  14.             "type": "CATALOGUE",
  15.             "service": "soarse-core",
  16.             "register": "element",
  17.             "catalogue": "111e4567-e89b-12d3-a456-426655440001"
  18.           }
  19.         },
  20.         {
  21.           "category": "PREDICATE",
  22.           "operation": "EQ",
  23.           "operands": [
  24.             {
  25.               "category": "ENTITY_ATTRIBUTE",
  26.               "type": "UUID",
  27.               "field": {
  28.                 "schema": "public",
  29.                 "table": "entry_version",
  30.                 "field": "entry_id"
  31.               }
  32.             },
  33.             {
  34.               "category": "FUNCTION",
  35.               "operation": "POINTER",
  36.               "operands": [
  37.                 {
  38.                   "category": "ENTITY_ATTRIBUTE",
  39.                   "type": "REFERENCE",
  40.                   "collection": "root",
  41.                   "path": "brand",
  42.                   "field": {
  43.                     "schema": "public",
  44.                     "table": "entry_version",
  45.                     "field": "data"
  46.                   },
  47.                   "referencedField": {
  48.                     "schema": "public",
  49.                     "table": "entry_version",
  50.                     "field": "entry_id"
  51.                   }
  52.                 }
  53.               ]
  54.             }
  55.           ]
  56.         },
  57.         {
  58.           "category": "PREDICATE",
  59.           "operation": "EXISTS",
  60.           "operands": [
  61.             {
  62.               "category": "ID",
  63.               "type": "DATASET",
  64.               "id": {
  65.                 "type": "CATALOGUE",
  66.                 "service": "soarse-core",
  67.                 "register": "element",
  68.                 "catalogue": "111e4567-e89b-12d3-a456-426655440002"
  69.               }
  70.             },
  71.             {
  72.               "category": "PREDICATE",
  73.               "operation": "EQ",
  74.               "operands": [
  75.                 {
  76.                   "category": "ENTITY_ATTRIBUTE",
  77.                   "type": "UUID",
  78.                   "field": {
  79.                     "schema": "public",
  80.                     "table": "entry_version",
  81.                     "field": "entry_id"
  82.                   }
  83.                 },
  84.                 {
  85.                   "category": "FUNCTION",
  86.                   "operation": "POINTER",
  87.                   "operands": [
  88.                     {
  89.                       "category": "ENTITY_ATTRIBUTE",
  90.                       "type": "REFERENCE",
  91.                       "collection": "outer_collection",
  92.                       "path": "country",
  93.                       "field": {
  94.                         "schema": "public",
  95.                         "table": "entry_version",
  96.                         "field": "data"
  97.                       },
  98.                       "referencedField": {
  99.                         "schema": "public",
  100.                         "table": "entry_version",
  101.                         "field": "entry_id"
  102.                       }
  103.                     }
  104.                   ]
  105.                 }
  106.               ]
  107.             },
  108.             {
  109.               "category": "PREDICATE",
  110.               "operation": "EQ",
  111.               "operands": [
  112.                 {
  113.                   "category": "ENTITY_ATTRIBUTE",
  114.                   "type": "STRING",
  115.                   "rank": "VALUE",
  116.                   "path": "title",
  117.                   "field": {
  118.                     "schema": "public",
  119.                     "table": "entry_version",
  120.                     "field": "data"
  121.                   }
  122.                 },
  123.                 {
  124.                   "category": "LITERAL",
  125.                   "type": "STRING",
  126.                   "value": "США"
  127.                 }
  128.               ]
  129.             }
  130.           ]
  131.         }
  132.       ]
  133.     }
  134.   ]
  135. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement